YARN-6304. Skip rm.transitionToActive call to RM if RM is already active. Contributed by Rohith Sharma K S.

This commit is contained in:
Junping Du 2017-04-17 15:51:10 -07:00
parent f1de2c8560
commit 6ed9d36224

View File

@ -286,6 +286,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 {