YARN-6304. Skip rm.transitionToActive call to RM if RM is already active. Contributed by Rohith Sharma K S.
(cherry picked from commit 6ed9d362242d36bfae4083bf3b1c2eb32fbb2f72)
This commit is contained in:
parent
cafee1109c
commit
b60e11e6bf
@ -289,6 +289,9 @@ public synchronized void monitorHealth()
|
||||
@Override
|
||||
public synchronized void transitionToActive(
|
||||
HAServiceProtocol.StateChangeRequestInfo reqInfo) throws IOException {
|
||||
if (isRMActive()) {
|
||||
return;
|
||||
}
|
||||
// call refreshAdminAcls before HA state transition
|
||||
// for the case that adminAcls have been updated in previous active RM
|
||||
try {
|
||||
|
Loading…
x
Reference in New Issue
Block a user