yandrey321 commented on code in PR #1679:
URL: https://github.com/apache/ratis/pull/1679#discussion_r4464721707
##########
ratis-grpc/src/main/java/org/apache/ratis/grpc/server/GrpcServerProtocolClient.java:
##########
@@ -191,6 +228,7 @@ public void resetConnectBackoff() {
if (useSeparateHBChannel) {
hbChannel.resetConnectBackoff();
}
- channel.resetConnectBackoff();
+ // the first one is the main channel
+ appendEntriesChannels.forEach(ManagedChannel::resetConnectBackoff);
Review Comment:
`ManagedChannel.resetConnectBackoff()` doesn't block. It only schedules an
immediate reconnect attempt on the channel's own executor, and returns. Running
K of these in a loop already takes effect at the same time, so running them in
parallel wouldn't gain anything. I left it as it is.
--
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]