apache / dubbo

The java implementation of Apache Dubbo. An RPC and microservice framework.
https://dubbo.apache.org/
Apache License 2.0
40.5k stars 26.43k forks source link

Dubbo Java 2.7.1 occasionally problem. When the provider of dubbo deploying, and the IP is changed. The new provider's IP has been pushed to dubbo, but the error shows that the consumer still sends requests to the old IP that has been offline. #14660

Open Wide-wide opened 1 month ago

Wide-wide commented 1 month ago

Pre-check

Search before asking

Apache Dubbo Component

Java SDK (apache/dubbo)

Dubbo Version

Dubbo Iava 2.7.1

Steps to reproduce this issue

Our self-developed registration and discovery service relies on dubbo. During the release of the provider by the business side, their IPs changed. According to the dubbo 2.7.1 log tracking, the new provider's IP has been pushed to dubbo. Accoring to dubbo source cod log: logger.info("Notify urls for subscribe url " + url + ", urls: " + urls); Providers' ip typed out is correct. image However, this problem is sporadic. We tried to reproduce it many times locally but failed. The business side encountered this problem twice. The consumer failed to call the provider, and one of them was restored half an hour later,the consumer reconnected to the correct provider.

What you expected to happen

Normally, we push the correct provider IP to dubbo, then dubbo should push the correct provider IP to the consumer, and the consumer will establish a connection to the new provider.I hope to find out the cause of this BUG in Dubbo Java 2.7.1 and which version has fixed this problem.

Anything else

Occasional problem, difficult to reproduce

Are you willing to submit a pull request to fix on your own?

Code of Conduct

AlbumenJ commented 1 month ago

Please try on the latest version. For this problem, we have fixed several times for diferent scenarios.

Wide-wide commented 1 month ago

Please try on the latest version. For this problem, we have fixed several times for diferent scenarios.

It is difficult for the business side to upgrade the version. Do you have a detailed explanation about this problem? We want to fix and reproduce this problem in 2.7.1

AlbumenJ commented 1 month ago

Please try on the latest version. For this problem, we have fixed several times for diferent scenarios.

It is difficult for the business side to upgrade the version. Do you have a detailed explanation about this problem? We want to fix and reproduce this problem in 2.7.1

We have fixed it for more that 5 times and it is really hard to figure all of them out.