This is an automated email from the ASF dual-hosted git repository.
szetszwo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ratis.git
The following commit(s) were added to refs/heads/master by this push:
new 4c04d7d47 RATIS-2410. GrpcStubPool should use GrpcUtil for channel
shutdown. (#1351)
4c04d7d47 is described below
commit 4c04d7d4721513037dce2bd13d5f8008b75cd327
Author: slfan1989 <[email protected]>
AuthorDate: Tue Feb 17 02:52:21 2026 +0800
RATIS-2410. GrpcStubPool should use GrpcUtil for channel shutdown. (#1351)
---
.../src/main/java/org/apache/ratis/grpc/server/GrpcStubPool.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git
a/ratis-grpc/src/main/java/org/apache/ratis/grpc/server/GrpcStubPool.java
b/ratis-grpc/src/main/java/org/apache/ratis/grpc/server/GrpcStubPool.java
index fd27ac996..9667661d0 100644
--- a/ratis-grpc/src/main/java/org/apache/ratis/grpc/server/GrpcStubPool.java
+++ b/ratis-grpc/src/main/java/org/apache/ratis/grpc/server/GrpcStubPool.java
@@ -17,6 +17,7 @@
*/
package org.apache.ratis.grpc.server;
+import org.apache.ratis.grpc.GrpcUtil;
import org.apache.ratis.thirdparty.io.grpc.ManagedChannel;
import org.apache.ratis.thirdparty.io.grpc.netty.NegotiationType;
import org.apache.ratis.thirdparty.io.grpc.netty.NettyChannelBuilder;
@@ -77,7 +78,7 @@ final class GrpcStubPool<S extends AbstractStub<S>> {
}
void shutdown() {
- ch.shutdown();
+ GrpcUtil.shutdownManagedChannel(ch);
}
}