YARN-9639. DecommissioningNodesWatcher cause memory leak. Contributed by Bilwa S T.
(cherry picked from commit be80334cdf255616f589217726483194fb56dcc6)
This commit is contained in:
parent
1bae5c7024
commit
4f622ecad8
@ -207,6 +207,11 @@ public synchronized void remove(NodeId nodeId) {
|
||||
}
|
||||
}
|
||||
|
||||
public void stop() {
|
||||
pollTimer.cancel();
|
||||
pollTimer = null;
|
||||
}
|
||||
|
||||
/**
|
||||
* Status about a specific decommissioning node.
|
||||
*
|
||||
|
@ -260,6 +260,7 @@ protected void serviceStart() throws Exception {
|
||||
|
||||
@Override
|
||||
protected void serviceStop() throws Exception {
|
||||
decommissioningWatcher.stop();
|
||||
if (this.server != null) {
|
||||
this.server.stop();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user