YARN-9507. Fix NPE in NodeManager#serviceStop on startup failure. Contributed by Bilwa S T.
This commit is contained in:
parent
2185249481
commit
4530f4500d
@ -526,9 +526,11 @@ protected void serviceStop() throws Exception {
|
|||||||
DefaultMetricsSystem.shutdown();
|
DefaultMetricsSystem.shutdown();
|
||||||
|
|
||||||
// Cleanup ResourcePluginManager
|
// Cleanup ResourcePluginManager
|
||||||
ResourcePluginManager rpm = context.getResourcePluginManager();
|
if (null != context) {
|
||||||
if (rpm != null) {
|
ResourcePluginManager rpm = context.getResourcePluginManager();
|
||||||
rpm.cleanup();
|
if (rpm != null) {
|
||||||
|
rpm.cleanup();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
} finally {
|
} finally {
|
||||||
// YARN-3641: NM's services stop get failed shouldn't block the
|
// YARN-3641: NM's services stop get failed shouldn't block the
|
||||||
|
Loading…
Reference in New Issue
Block a user