Remove gracefullyShutdown of EventLoopGroops 22/29322/2
authorClaudio D. Gasparini <cgaspari@cisco.com>
Thu, 5 Nov 2015 15:20:10 +0000 (16:20 +0100)
committerGerrit Code Review <gerrit@opendaylight.org>
Mon, 9 Nov 2015 20:50:13 +0000 (20:50 +0000)
When instance is closed, boosgroud and workergroop
shouldnt be shutdown since they are required in case
of new instance created. If new instance is created
it will cause
RejectedExecutionException: event executor terminated

Change-Id: I58f9328140bc209aeafc7bfad14f883887447a59
Signed-off-by: Claudio D. Gasparini <cgaspari@cisco.com>
bgp/bmp-impl/src/main/java/org/opendaylight/protocol/bmp/impl/BmpDispatcherImpl.java
bgp/rib-impl/src/main/java/org/opendaylight/protocol/bgp/rib/impl/BGPDispatcherImpl.java

index 34ec1499a0b27d340d5fd2def6260b89cee0158e..9143974115226027e853eff66454d0f450e2467c 100644 (file)
@@ -135,11 +135,6 @@ public class BmpDispatcherImpl implements BmpDispatcher {
 
     @Override
     public void close() {
-        try {
-            this.workerGroup.shutdownGracefully();
-        } finally {
-            this.bossGroup.shutdownGracefully();
-        }
     }
 
     private class BootstrapListener implements ChannelFutureListener {
index fac6fa696f1c92840c74c3efadae653bfe0c522c..4034eec7a381dc516125d4209e4865f25373bae1 100644 (file)
@@ -109,11 +109,6 @@ public class BGPDispatcherImpl implements BGPDispatcher, AutoCloseable {
 
     @Override
     public void close() {
-        try {
-            this.workerGroup.shutdownGracefully();
-        } finally {
-            this.bossGroup.shutdownGracefully();
-        }
     }
 
     @Override