-
Notifications
You must be signed in to change notification settings - Fork 26.5k
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
Fix use generic invocation via API , lost "version" value [#4784] #4787
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4787 +/- ##
============================================
- Coverage 63.92% 63.86% -0.07%
+ Complexity 451 450 -1
============================================
Files 769 769
Lines 33180 33182 +2
Branches 5230 5218 -12
============================================
- Hits 21211 21192 -19
- Misses 9547 9558 +11
- Partials 2422 2432 +10
Continue to review full report at Codecov.
|
This pr can solve the problem, but I found the code is confusing. If we don't use direct invoke, and either group or version of ReferenceConfig and ServiceConfig is different, it will not go into the ClusterUtils.merge method. Maybe we can split the ClusterUtils.merge method into two methods, one is used by direct invoke. The other is used by the indirect invoke. |
I read the code ZookeeperRegistry.toUrlsWithEmpty, I found
So I think , when provider does not have "group" or "version" (generally direct invoke) ,then do not remove "group" or "version" key from local map,it can meet both direct invoke and from registry. |
LGTM |
Test if other parameters have have the same problem |
1. fix dubbo 2.7.3 Generic bug apache/dubbo#4787 2. support implicit parameters. #85
* migratte dist (#67) * 2.7.3 (#82) * Update README.md * migratte dist (#67) * 1. Optimize the code structure 2. Add configuration component #43 3. Upgrade dubbo2.7.3, support dubbo2.7.x, dubbo2.6.x, dubbo2.5.x 4. Optimize samples performance report #81,#76 5. Optimize the view tree #78 5.1. Character encoding of response data: UTF-8 5.2. Response data json format 5.3. Response data time format * Optimization dependencies * Support implicit parameters (#87) 1. fix dubbo 2.7.3 Generic bug apache/dubbo#4787 2. support implicit parameters. #85
What is the purpose of the change
fix use generic invocation via API , lost "version" value
Brief changelog
dubbo-cluster/src/main/java/org/apache/dubbo/rpc/cluster/support/ClusterUtils.java
Issues