File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed
ratis-server/src/main/java/org/apache/ratis/server/impl Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -416,6 +416,13 @@ private void startImpl() throws IOException {
416416 public void close () {
417417 lifeCycle .checkStateAndClose (() -> {
418418 LOG .info ("{}: close" , getId ());
419+
420+ try {
421+ ConcurrentUtils .shutdownAndWait (implExecutor .get ());
422+ } catch (Exception ignored ) {
423+ LOG .warn (getId () + ": Failed to shutdown implExecutor" , ignored );
424+ }
425+
419426 impls .close ();
420427
421428 try {
@@ -430,12 +437,6 @@ public void close() {
430437 LOG .warn (getId () + ": Failed to close " + SupportedDataStreamType .NETTY + " server" , ignored );
431438 }
432439
433- try {
434- ConcurrentUtils .shutdownAndWait (implExecutor .get ());
435- } catch (Exception ignored ) {
436- LOG .warn (getId () + ": Failed to shutdown implExecutor" , ignored );
437- }
438-
439440 try {
440441 ConcurrentUtils .shutdownAndWait (executor .get ());
441442 } catch (Exception ignored ) {
You can’t perform that action at this time.
0 commit comments