HDFS-11759. Ozone : SCMNodeManager#close() should also close node pool manager object. Contributed by Chen Liang.
This commit is contained in:
parent
a704a24757
commit
2feec0045d
|
@ -622,6 +622,7 @@ public class SCMNodeManager
|
||||||
@Override
|
@Override
|
||||||
public void close() throws IOException {
|
public void close() throws IOException {
|
||||||
unregisterMXBean();
|
unregisterMXBean();
|
||||||
|
nodePoolManager.close();
|
||||||
executorService.shutdown();
|
executorService.shutdown();
|
||||||
try {
|
try {
|
||||||
if (!executorService.awaitTermination(5, TimeUnit.SECONDS)) {
|
if (!executorService.awaitTermination(5, TimeUnit.SECONDS)) {
|
||||||
|
|
Loading…
Reference in New Issue