// what follows will fail because not in expected state.
entityGroupState = entityGroupStates.updateEntityGroupState(
egTransition, EntityGroupState.State.CLOSED);
if (entityGroupState != null) {
removeClosedEntityGroup(entityGroupState.getEntityGroup());
this.executorService.submit(new ClosedEntityGroupHandler(server,
this, entityGroupState.getEntityGroup()));
}
break;
case FSERVER_ZK_ENTITYGROUP_FAILED_OPEN:
if (entityGroupState != null
&& !entityGroupState.isPendingOpenOrOpeningOnServer(sn)) {
LOG.warn("Received FAILED_OPEN for entityGroup " + encodedName
+ " from server " + sn + " but entityGroup was in the state "
+ entityGroupState
+ " and not in expected PENDING_OPEN or OPENING states,"
+ " or not on the expected server");
return;
}
// Handle this the same as if it were opened and then closed.
entityGroupState = entityGroupStates.updateEntityGroupState(
egTransition, EntityGroupState.State.CLOSED);
// When there are more than one entityGroup server a new FSERVER is
// selected as the
// destination and the same is updated in the entityGroupplan.
// (HBASE-5546)
if (entityGroupState != null) {
getEntityGroupPlan(entityGroupState.getEntityGroup(), sn, true);
this.executorService.submit(new ClosedEntityGroupHandler(server,
this, entityGroupState.getEntityGroup()));
}
break;
case FSERVER_ZK_ENTITYGROUP_OPENING: