synchronized (leaderGroupMembers) {
barrier = new OrbFastAllDoneBarrier(getOrbConf(), jobInProgressPath + "/" + barrierName,
leaderGroupMembers.size(), Integer.toString(getPartitionID()), zk);
}
try {
boolean entered = barrier.enter(iAmDone);
LOG.debug("p{} entered {}", getPartitionID(), barrierName);
return entered;
} catch (OrbZKFailure e) {
LOG.error("p{} failed to complete barrier: {}" + e.getMessage(), getPartitionID(), barrierName);
e.printStackTrace();