|
@@ -288,6 +288,9 @@ public class AdminService extends CompositeService implements
|
|
@Override
|
|
@Override
|
|
public synchronized void transitionToActive(
|
|
public synchronized void transitionToActive(
|
|
HAServiceProtocol.StateChangeRequestInfo reqInfo) throws IOException {
|
|
HAServiceProtocol.StateChangeRequestInfo reqInfo) throws IOException {
|
|
|
|
+ if (isRMActive()) {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
// call refreshAdminAcls before HA state transition
|
|
// call refreshAdminAcls before HA state transition
|
|
// for the case that adminAcls have been updated in previous active RM
|
|
// for the case that adminAcls have been updated in previous active RM
|
|
try {
|
|
try {
|