Skip to content

Commit

Permalink
0003239: Observed that two load threads are loading the same batch at
Browse files Browse the repository at this point in the history
the same time during a pull
  • Loading branch information
maxwellpettit committed Sep 5, 2017
1 parent ddd4b62 commit e0a3589
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -569,7 +569,11 @@ protected List<IncomingBatch> loadDataFromTransport(final ProcessInfo processInf
outWriter.flush();
}
} else {
executor.awaitTermination(12, TimeUnit.HOURS);
long hours = 1;
while (!executor.awaitTermination(1, TimeUnit.HOURS)) {
log.info(String.format("Executor has been awaiting loader termination for %d hour(s).", hours));
hours++;
}
}

loadListener.isDone();
Expand Down

0 comments on commit e0a3589

Please sign in to comment.