This is an automated email from the ASF dual-hosted git repository.

tswstarplanet pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo.git


The following commit(s) were added to refs/heads/master by this push:
     new 879a0c8  sync wait netty server to finish shutdown (#6281)
879a0c8 is described below

commit 879a0c8ea4cdb3a096affd20acc0c7ba3dfe0565
Author: tswstarplanet <tswstarpla...@apache.org>
AuthorDate: Mon Jun 15 22:46:44 2020 +0800

    sync wait netty server to finish shutdown (#6281)
---
 .../java/org/apache/dubbo/remoting/transport/netty4/NettyServer.java  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/dubbo-remoting/dubbo-remoting-netty4/src/main/java/org/apache/dubbo/remoting/transport/netty4/NettyServer.java
 
b/dubbo-remoting/dubbo-remoting-netty4/src/main/java/org/apache/dubbo/remoting/transport/netty4/NettyServer.java
index d4ca4b3..9c4f1b8 100644
--- 
a/dubbo-remoting/dubbo-remoting-netty4/src/main/java/org/apache/dubbo/remoting/transport/netty4/NettyServer.java
+++ 
b/dubbo-remoting/dubbo-remoting-netty4/src/main/java/org/apache/dubbo/remoting/transport/netty4/NettyServer.java
@@ -149,8 +149,8 @@ public class NettyServer extends AbstractServer implements 
RemotingServer {
         }
         try {
             if (bootstrap != null) {
-                bossGroup.shutdownGracefully();
-                workerGroup.shutdownGracefully();
+                bossGroup.shutdownGracefully().syncUninterruptibly();
+                workerGroup.shutdownGracefully().syncUninterruptibly();
             }
         } catch (Throwable e) {
             logger.warn(e.getMessage(), e);

Reply via email to