From 07afb7e32fbdf46f48ebbb9a3fc010282126f09c Mon Sep 17 00:00:00 2001 From: zhangduo Date: Mon, 25 Jun 2018 08:54:56 +0800 Subject: [PATCH] HBASE-20777 RpcConnection could still remain opened after we shutdown the NettyRpcServer --- .../main/java/org/apache/hadoop/hbase/ipc/NettyRpcServer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/NettyRpcServer.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/NettyRpcServer.java index fb2a8ebd13d..8ea2057e6d0 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/NettyRpcServer.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/NettyRpcServer.java @@ -69,7 +69,8 @@ public class NettyRpcServer extends RpcServer { private final CountDownLatch closed = new CountDownLatch(1); private final Channel serverChannel; - private final ChannelGroup allChannels = new DefaultChannelGroup(GlobalEventExecutor.INSTANCE); + private final ChannelGroup allChannels = + new DefaultChannelGroup(GlobalEventExecutor.INSTANCE, true); public NettyRpcServer(Server server, String name, List services, InetSocketAddress bindAddress, Configuration conf, RpcScheduler scheduler,