workerBaseNode = getWorkerBaseNode(context.getAppId(), context.getCurrentIteration() + 1)
.toString();
getZooKeeper().createExt(workerBaseNode, null, Ids.OPEN_ACL_UNSAFE, CreateMode.PERSISTENT, false);
} catch (KeeperException.NodeExistsException e) {
LOG.warn("Node exists: {}", workerBaseNode);
String znode = getMasterNode(context.getAppId(), context.getCurrentIteration() - 2).toString();
try {
getZooKeeper().deleteExt(znode, -1, false);
if(isSplit) {
znode = getCurrentMasterSplitNode(context.getAppId(), context.getCurrentIteration() - 2)
.toString();
getZooKeeper().deleteExt(znode, -1, true);