Closed chenzhiguo closed 2 years ago
I think there is a code in the doInvoke
method of DubboInvoker
:
inv.setAttachment(VERSION_KEY, version);
About this position, it missing set group
.
Retry only work in one group. Group selection only failback when the providers size is 0.
Retry only work in one group. Group selection only failback when the providers size is 0.
You mean this is normal abnormal and normal error address? I don't think so. This error sometimes appears, when matches the wrong version and group, but when matches the correct version and group, it is not. I mean, the version and group in Invocation should not only modify one. Because only one is changed, it is likely to have no such instance.
Multi group is design like multi registry subscription, work only for fallback if address is empty. If you need retry for all providers, specify them as the same group.
The above answer should solve your problem, temporarily close the issue, if there is still a problem, you can reopen it.
Environment
Steps to reproduce this issue
group2 / com.xxxx.demo.DemoService: 2.0.0: 20880
andgroup1 / com.xxxx.demo.DemoService: 1.0.0: 20880
.Pls. provide [GitHub address] to reproduce this issue.
Expected Behavior
Actual Behavior
If there is an exception, please attach the exception trace: