public void leaveBarrier(BSPJobID jobId, TaskAttemptID taskId,
long superstep) throws SyncException {
try {
barrier.await();
} catch (Exception e) {
throw new SyncException(e.toString());
}
if (superstep > superStepCount)
superStepCount = superstep;
}