apache / apache/dubbo

多注册中心使用default属性的问题

Open
#10,505 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
41.6k
Forks
26.4k
Avg merge
15h 13m
Merged PRs (30d)
4

Description

2.x里,两个注册中心,其中一个default为true,其余一个没有设置default,provider会同时注册到两个注册中心上
3.x里,两个注册中心,其中一个default为true,其余一个没有设置default,provider只会注册到default为true的注册中心上
请问这样的改动是为什么
配置文件配置
![image](https://user-images.githubusercontent.com/52063999/186644326-7009e0f8-aa61-426d-9c81-98b5d5c74f75.png)

2.7.4.1代码
![image](https://user-images.githubusercontent.com/52063999/186636135-dff24e0f-9132-43d0-8887-f9b1bcd15e4c.png)

3.0.10代码
![image](https://user-images.githubusercontent.com/52063999/186636484-a4d2f0a8-dadc-4f12-9091-84f5dba9c3c0.png)
![image](https://user-images.githubusercontent.com/52063999/186636580-f1d60b96-5e7e-4ca5-bba2-1502a3c6a6ce.png)

Contributor guide

Open the contributing guide

Research direction

Reproduce the two-registry configuration described in the issue against Dubbo 2.7.4.1 and 3.0.10, then compare the provider-registration code shown in the screenshots. Trace how the default property selects registries; done means documenting whether the version difference is intentional or a regression, with a focused test or reproduction if a fix is needed.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.