@@ -174,6 +118,7 @@ public class MasterServer implements IStoppable {
try{
// execute only once
if(Stopper.isStopped()){
logger.warn("MasterServer has been stopped ..., current cause: {}",cause);
return;
}
...
...
@@ -191,10 +136,13 @@ public class MasterServer implements IStoppable {
// close
this.schedulerApi.close();
this.masterSchedulerService.close();
this.nettyRemotingServer.close();
this.masterRPCServer.close();
this.masterRegistryClient.closeRegistry();
// close spring Context and will invoke method with @PreDestroy annotation to destory beans. like ServerNodeManager,HostManager,TaskResponseService,CuratorZookeeperClient,etc
// close spring Context and will invoke method with @PreDestroy annotation to destroy beans.
// like ServerNodeManager,HostManager,TaskResponseService,CuratorZookeeperClient,etc