dubbo
dubbo copied to clipboard
[Bug] Unable to perceive the latest subscription services
Pre-check
- [X] I am sure that all the content I provide is in English.
Search before asking
- [X] I had searched in the issues and found no similar issues.
Apache Dubbo Component
Java SDK (apache/dubbo)
Dubbo Version
dubbo 3.2.12
Steps to reproduce this issue
- Get two instances here, one of which is about to die.
- Both instances establish NettyConnectionClient, synchronised connection server appears to wait. At this point one of the instances is offline. The local nacos local cache is already listening for the latest metadata info.
- Wait for all the NettyConnectionClient to complete, at which point the subscription relationship is done. Unable to trigger
What you expected to happen
Refreshing the service
Anything else
No response
Are you willing to submit a pull request to fix on your own?
- [X] Yes I am willing to submit a pull request on my own!
Code of Conduct
- [X] I agree to follow this project's Code of Conduct
We need a better way to get and listen service in one time. But maybe nacos not support?
Maybe we can adjust the order of events, such as registering a listener first and then getting the instance list for notify.
Maybe we can adjust the order of events, such as registering a listener first and then getting the instance list for notify.
- Will zk work as expected?
- Will nacos work as expected?
Maybe we can adjust the order of events, such as registering a listener first and then getting the instance list for notify.
- Will zk work as expected?
- Will nacos work as expected?
I think this will work, and I am currently drawing this flowchart.