HDFS-12129. Ozone: SCM http server is not stopped with SCM#stop(). Contributed by Weiwei Yang.
This commit is contained in:
parent
ea5e24c925
commit
a4cbd33dd5
|
@ -509,8 +509,16 @@ public class StorageContainerManager
|
||||||
LOG.info("Stopping the RPC server for DataNodes");
|
LOG.info("Stopping the RPC server for DataNodes");
|
||||||
datanodeRpcServer.stop();
|
datanodeRpcServer.stop();
|
||||||
} catch (Exception ex) {
|
} catch (Exception ex) {
|
||||||
LOG.error("Storage Container Manager httpServer stop failed.", ex);
|
LOG.error("Storage Container Manager datanodeRpcServer stop failed.", ex);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
try {
|
||||||
|
LOG.info("Stopping Storage Container Manager HTTP server.");
|
||||||
|
httpServer.stop();
|
||||||
|
} catch (Exception ex) {
|
||||||
|
LOG.error("Storage Container Manager HTTP server stop failed.", ex);
|
||||||
|
}
|
||||||
|
|
||||||
unregisterMXBean();
|
unregisterMXBean();
|
||||||
IOUtils.closeQuietly(scmContainerManager);
|
IOUtils.closeQuietly(scmContainerManager);
|
||||||
IOUtils.closeQuietly(scmBlockManager);
|
IOUtils.closeQuietly(scmBlockManager);
|
||||||
|
|
Loading…
Reference in New Issue