You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "jkoChen (via GitHub)" <gi...@apache.org> on 2025/10/17 07:03:46 UTC
[I] [Bug] Consumer keep trying to reconnect when Provider is killed [dubbo]
jkoChen opened a new issue, #15725:
URL: https://github.com/apache/dubbo/issues/15725
### 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.3.5 JDK21
When dubbo.consumer.check=false, and when the client executes the connect() in org.apache.dubbo.remoting.transport.AbstractClient#AbstractClient(org.apache.dubbo.common.URL, org.apache.dubbo.remoting.ChannelHandler), if a certain Provider is killed at this time, the consumer side will keep reconnecting and print the following logs:
<img width="2433" height="286" alt="Image" src="https://github.com/user-attachments/assets/c48925f6-cfde-4792-be1d-5dc7680213d3" />
### Steps to reproduce this issue
1. Start more than one Provider
2. Configure dubbo.consumer.check=false for the Consumer
3. Set a breakpoint at line 93 of org.apache.dubbo.remoting.transport.AbstractClient
4. Run the Consumer in debug mode
5. When the code reaches line 93 of org.apache.dubbo.remoting.transport.AbstractClient, execute kill -9 on one of the Providers
6. Resume the Consumer, and you will see it keeps reconnecting and print error log
### What you expected to happen
When the Invoker is still being created, a Provider offline notification is received, which causes the Invoker being created to not be properly destroyed. This is just my guess, and I haven't had time to carefully check the corresponding logic.
### 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: notifications-unsubscribe@dubbo.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
Re: [I] [Bug] Consumer keep trying to reconnect when Provider is killed [dubbo]
Posted by "jkoChen (via GitHub)" <gi...@apache.org>.
jkoChen closed issue #15725: [Bug] Consumer keep trying to reconnect when Provider is killed
URL: https://github.com/apache/dubbo/issues/15725
--
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: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
Re: [I] [Bug] Consumer keep trying to reconnect when Provider is killed [dubbo]
Posted by "jkoChen (via GitHub)" <gi...@apache.org>.
jkoChen commented on issue #15725:
URL: https://github.com/apache/dubbo/issues/15725#issuecomment-3420850945
> I am willing to take on this task. plz assign it to me.
This issue may be related to my local Nacos version. My local Nacos version is 2.3.2, which causes an infinite loop of errors. When I switch to Nacos version 2.5.1 (the version used by Dubbo 3.3.5), the errors stop after occurring for a period of time. However, I haven't found the reason for this yet.
--
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: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
Re: [I] [Bug] Consumer keep trying to reconnect when Provider is killed [dubbo]
Posted by "jkoChen (via GitHub)" <gi...@apache.org>.
jkoChen commented on issue #15725:
URL: https://github.com/apache/dubbo/issues/15725#issuecomment-3424986545
The method for adding a service instance listener, org.apache.dubbo.registry.nacos.NacosServiceDiscovery#addServiceInstancesChangedListener, is executed after the connect method. Therefore, if the server goes offline while the connect method is executing, the service offline event will not be handled by this listener (in nacos-client version 2.3.2) — because the listener does not exist at the time of the offline event. In nacos-client version 2.5.1, when the listener is added, it is directly triggered once, so the retry task can be stopped correctly.
--
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: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org
Re: [I] [Bug] Consumer keep trying to reconnect when Provider is killed [dubbo]
Posted by "fang-tech (via GitHub)" <gi...@apache.org>.
fang-tech commented on issue #15725:
URL: https://github.com/apache/dubbo/issues/15725#issuecomment-3418600868
I am willing to take on this task. plz assign it to me.
--
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: notifications-unsubscribe@dubbo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@dubbo.apache.org
For additional commands, e-mail: notifications-help@dubbo.apache.org