HDFS-11759. Ozone : SCMNodeManager#close() should also close node pool manager object. Contributed by Chen Liang.

This commit is contained in:
Weiwei Yang 2017-05-06 23:12:54 +08:00 committed by Owen O'Malley
parent d9be9a8c30
commit fc9130f6c5

View File

@ -622,6 +622,7 @@ private void updateNodeStat(String datanodeID, SCMNodeReport nodeReport) {
@Override
public void close() throws IOException {
unregisterMXBean();
nodePoolManager.close();
executorService.shutdown();
try {
if (!executorService.awaitTermination(5, TimeUnit.SECONDS)) {