YARN-6827. [ATS1/1.5] NPE exception while publishing recovering applications into ATS during RM restart. Contributed by Rohith Sharma K S.
(cherry picked from commit 7d06806dfdeb3252ac0defe23e8c468eabfa8b5e)
This commit is contained in:
parent
aa64def228
commit
162db6e826
@ -1273,8 +1273,6 @@ synchronized void transitionToStandby(boolean initialize)
|
||||
protected void serviceStart() throws Exception {
|
||||
if (this.rmContext.isHAEnabled()) {
|
||||
transitionToStandby(false);
|
||||
} else {
|
||||
transitionToActive();
|
||||
}
|
||||
|
||||
startWepApp();
|
||||
@ -1284,6 +1282,11 @@ protected void serviceStart() throws Exception {
|
||||
WebAppUtils.setRMWebAppPort(conf, port);
|
||||
}
|
||||
super.serviceStart();
|
||||
|
||||
// Non HA case, start after RM services are started.
|
||||
if (!this.rmContext.isHAEnabled()) {
|
||||
transitionToActive();
|
||||
}
|
||||
}
|
||||
|
||||
protected void doSecureLogin() throws IOException {
|
||||
|
Loading…
x
Reference in New Issue
Block a user