YARN-6304. Skip rm.transitionToActive call to RM if RM is already active. Contributed by Rohith Sharma K S.
(cherry picked from commit 6ed9d36224
)
This commit is contained in:
parent
6f5912c106
commit
9289f4527d
|
@ -286,6 +286,9 @@ public class AdminService extends CompositeService implements
|
|||
@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…
Reference in New Issue