QingJuBaiTang opened a new issue, #15305: URL: https://github.com/apache/dubbo/issues/15305
### 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](https://github.com/apache/dubbo/issues?q=is%3Aissue) and found no similar issues. ### Apache Dubbo Component Java SDK (apache/dubbo) ### Dubbo Version dubbo 3.2.5 dubbo 3.3.4 ### Steps to reproduce this issue There is one consumer (`demo-consumer`) and two providers (`demo-provider` and `demo-provider2`). Both providers implement the `org.example.DemoService` interface, and the consumer continuously calls this interface in a loop. To make the results easier to observe, I customized a router via SPI so that the consumer only routes calls to instances of `demo-provider2`. At the beginning, only `demo-provider` is running, so all consumer calls fail. After `demo-provider2` comes online, the expected behavior is that the consumer should then be able to successfully make calls — but in reality, it still fails. One special thing I noticed is that I created **two references** to `DemoService` in the consumer. One reference is able to call `demo-provider2` successfully, while the other still fails. To reliably reproduce the issue, you must: 1. Delete the `.dubbo` folder under your home directory **before** starting the experiment. 2. Remove `demo-provider2` from the `org.example.DemoService` mapping file. This problem only occurs **the first time** `demo-provider2` comes online. I have created two demo projects to reproduce the issue: - https://gitee.com/BaiTang010/dubbo-provider - https://gitee.com/BaiTang010/dubbo-consumer **How to start the two providers:** ```bash java -jar -DappName=demo-provider -Dport=20880 target/provider.jar java -jar -DappName=demo-provider2 -Dport=20881 target/provider.jar ``` ### What you expected to happen everything goes fine ### Anything else _No response_ ### Are you willing to submit a pull request to fix on your own? - [ ] 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](https://www.apache.org/foundation/policies/conduct) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
