apache / apache/dubbo

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.

Open
#14,660 4 comments 0 reactions 0 assignees View on GitHub
component/need-triage type/need-triage
Dominant language
Java
Stars
41.6k
Forks
26.4k
Avg merge
15h 13m
Merged PRs (30d)
4

Description

### 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 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](https://github.com/user-attachments/assets/58b068d6-5ba5-4c65-8803-0a1613208ee5)
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?

- [ ] 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)

Contributor guide

Open the contributing guide

Research direction

Start with the Apache Dubbo Java SDK at version 2.7.1 and trace provider notification from the logged "Notify urls for subscribe url" message through consumer connection handling. Reproduce the provider IP change if possible and use the logs to determine why the old offline IP remains in use; done means identifying the cause and the version containing the fix.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend-api-design, distributed-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.