YARN-3641. NodeManager: stopRecoveryStore() shouldn't be skipped when exceptions happen in stopping NM's sub-services. Contributed by Junping Du
(cherry picked from commit 711d77cc54a64b2c3db70bdacc6bf2245c896a4b) (cherry picked from commit a81ad814610936a02e55964fbe08f7b33fe29b23) (cherry picked from commit aa82b0684554be8d09f6fcd88826f167922280cc)
This commit is contained in:
parent
6c0ad99b9d
commit
778da79e6f
@ -135,6 +135,9 @@ Release 2.6.1 - UNRELEASED
|
|||||||
YARN-3464. Race condition in LocalizerRunner kills localizer before
|
YARN-3464. Race condition in LocalizerRunner kills localizer before
|
||||||
localizing all resources. (Zhihai Xu via kasha)
|
localizing all resources. (Zhihai Xu via kasha)
|
||||||
|
|
||||||
|
YARN-3641. NodeManager: stopRecoveryStore() shouldn't be skipped when
|
||||||
|
exceptions happen in stopping NM's sub-services. (Junping Du via jlowe)
|
||||||
|
|
||||||
Release 2.6.0 - 2014-11-18
|
Release 2.6.0 - 2014-11-18
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -269,9 +269,14 @@ protected void serviceStop() throws Exception {
|
|||||||
if (isStopping.getAndSet(true)) {
|
if (isStopping.getAndSet(true)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
super.serviceStop();
|
try {
|
||||||
stopRecoveryStore();
|
super.serviceStop();
|
||||||
DefaultMetricsSystem.shutdown();
|
DefaultMetricsSystem.shutdown();
|
||||||
|
} finally {
|
||||||
|
// YARN-3641: NM's services stop get failed shouldn't block the
|
||||||
|
// release of NMLevelDBStore.
|
||||||
|
stopRecoveryStore();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getName() {
|
public String getName() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user