completedPartitionThreads.take();
}
jobContext.getBatchEnvironment().getExecutorService().submit(runner1);
}
BatchStatus consolidatedBatchStatus = BatchStatus.STARTED;
final List<StepExecutionImpl> fromAllPartitions = new ArrayList<StepExecutionImpl>();
ut.begin();
try {
while (fromAllPartitions.size() < numOfPartitions) {
final Serializable data = collectorDataQueue.take();
if (data instanceof StepExecutionImpl) {
final StepExecutionImpl s = (StepExecutionImpl) data;
fromAllPartitions.add(s);
final BatchStatus bs = s.getBatchStatus();
if (bs == BatchStatus.FAILED || bs == BatchStatus.STOPPED) {
final List<Integer> idxes = s.getPartitionPropertiesIndex();
Integer idx = null;
if (idxes != null && idxes.size() > 0) {