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