You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@dubbo.apache.org by "Rafiaminhaj (via GitHub)" <gi...@apache.org> on 2025/12/24 13:21:46 UTC

[PR] fix(remoting): reconnect client before sending when provider is offline [dubbo]

Rafiaminhaj opened a new pull request, #15916:
URL: https://github.com/apache/dubbo/pull/15916

   ## What is the purpose of the change?
   
   When a provider goes offline, the consumer may still attempt to send requests
   using an already disconnected client channel, which results in send failures.
   
   This change ensures that the client explicitly attempts to reconnect before
   sending a request when the provider is offline and reconnection is enabled.
   
   ## What is changed?
   
   - Added a reconnect check in `AbstractClient#send` to reconnect before sending
     when the client is not connected.
   - Improved reconnect handling logic in `ReconnectTimerTask` to better align
     with offline provider scenarios.
   
   ## Which issue does this PR fix?
   
   Fixes #15913
   
   ## How was this tested?
   
   - Verified the reconnect behavior by simulating provider offline scenarios.
   - Ensured requests are sent successfully after reconnection.
   


-- 
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: [PR] fix(remoting): reconnect client before sending when provider is offline [dubbo]

Posted by "chensanpi (via GitHub)" <gi...@apache.org>.
chensanpi commented on PR #15916:
URL: https://github.com/apache/dubbo/pull/15916#issuecomment-3694964494

   Is there a plan to fix this issue in version 3.2.0?


-- 
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: [PR] fix(remoting): reconnect client before sending when provider is offline [dubbo]

Posted by "Rafiaminhaj (via GitHub)" <gi...@apache.org>.
Rafiaminhaj commented on PR #15916:
URL: https://github.com/apache/dubbo/pull/15916#issuecomment-3689825037

   Hi maintainers,
   
   thanks for the review.
   
   Some checks are failing due to CI issues (samples tests / Java 21), where test result
   files are not generated and the merge script fails with `No such file or directory`.
   It seems unrelated to the logic changes in this PR.
   
   Also, please let me know if you’d like me to update the branch with the latest `apache:3.3`.
   Thanks!
   


-- 
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: [PR] fix(remoting): reconnect client before sending when provider is offline [dubbo]

Posted by "zrlw (via GitHub)" <gi...@apache.org>.
zrlw commented on PR #15916:
URL: https://github.com/apache/dubbo/pull/15916#issuecomment-3692007588

   Please do not use AI tools to submit PR


-- 
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: [PR] fix(remoting): reconnect client before sending when provider is offline [dubbo]

Posted by "zrlw (via GitHub)" <gi...@apache.org>.
zrlw closed pull request #15916: fix(remoting): reconnect client before sending when provider is offline
URL: https://github.com/apache/dubbo/pull/15916


-- 
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