YARN-9507. Fix NPE in NodeManager#serviceStop on startup failure. Contributed by Bilwa S T.
(cherry picked from commit 4530f4500d
)
This commit is contained in:
parent
056bb773ce
commit
e027c87da2
|
@ -526,10 +526,12 @@ public class NodeManager extends CompositeService
|
|||
DefaultMetricsSystem.shutdown();
|
||||
|
||||
// Cleanup ResourcePluginManager
|
||||
if (null != context) {
|
||||
ResourcePluginManager rpm = context.getResourcePluginManager();
|
||||
if (rpm != null) {
|
||||
rpm.cleanup();
|
||||
}
|
||||
}
|
||||
} finally {
|
||||
// YARN-3641: NM's services stop get failed shouldn't block the
|
||||
// release of NMLevelDBStore.
|
||||
|
|
Loading…
Reference in New Issue