YARN-9639. DecommissioningNodesWatcher cause memory leak. Contributed by Bilwa S T.

This commit is contained in:
bibinchundatt 2019-06-27 09:59:44 +05:30
parent 4848280437
commit be80334cdf
2 changed files with 6 additions and 0 deletions

View File

@ -194,6 +194,11 @@ public class DecommissioningNodesWatcher {
}
}
public void stop() {
pollTimer.cancel();
pollTimer = null;
}
/**
* Status about a specific decommissioning node.
*

View File

@ -268,6 +268,7 @@ public class ResourceTrackerService extends AbstractService implements
@Override
protected void serviceStop() throws Exception {
decommissioningWatcher.stop();
if (this.server != null) {
this.server.stop();
}