EntityGroupTransaction data = EntityGroupTransaction
.createEntityGroupTransition(
EventHandler.EventType.FSERVER_ZK_ENTITYGROUP_SPLITTING,
entityGroup.getEntityGroupName(), serverName);
String node = ZKAssign.getNodeName(zkw, entityGroup.getEncodedName());
if (!ZKUtil.createEphemeralNodeAndWatch(zkw, node, data.toByteArray())) {
throw new IOException("Failed create of ephemeral " + node);
}
// Transition node from SPLITTING to SPLITTING and pick up version so we
// can be sure this znode is ours; version is needed deleting.
return transitionNodeSplitting(zkw, entityGroup, serverName, -1);