-
Notifications
You must be signed in to change notification settings - Fork 26.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Compatible with nacos grouping via group #8320
Conversation
Codecov Report
@@ Coverage Diff @@
## 3.0 #8320 +/- ##
============================================
- Coverage 63.93% 63.51% -0.42%
- Complexity 311 312 +1
============================================
Files 1078 1099 +21
Lines 45728 46050 +322
Branches 6862 6953 +91
============================================
+ Hits 29235 29250 +15
- Misses 13237 13527 +290
- Partials 3256 3273 +17
Continue to review full report at Codecov.
|
@@ -183,6 +183,8 @@ | |||
|
|||
String GROUP_KEY = "group"; | |||
|
|||
String NACOS_GROUP_KEY = "nacos.group"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be better if we move this constant to dubbo-registry-nacos module
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good idea. i will modify it.
@@ -91,7 +93,9 @@ public static ServiceInstance toServiceInstance(Instance instance) { | |||
* @since 2.7.5 | |||
*/ | |||
public static String getGroup(URL connectionURL) { | |||
return connectionURL.getParameter("nacos.group", DEFAULT_GROUP); | |||
// Compatible with nacos grouping via group. | |||
String group = connectionURL.getParameter(GROUP_KEY, DEFAULT_GROUP); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Use dubbo
as the default group will be better?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If it is modified to dubbo, then the nacos registration center and configuration center side also need to be adjusted synchronously. This impact is relatively large.
* Compatible with nacos grouping via group * move nacos.group to dubbo.registry.nacos module
What is the purpose of the change
Compatible with nacos grouping via group
see #8317
Brief changelog
Verifying this change
Checklist