Skip to content

Commit

Permalink
0003762: Jdbc Batch bulk data loader causes missing rows on initial load
Browse files Browse the repository at this point in the history
  • Loading branch information
jumpmind-josh committed Oct 24, 2018
1 parent 00c474c commit 1e69027
Showing 1 changed file with 10 additions and 1 deletion.
Expand Up @@ -1047,7 +1047,16 @@ protected IDataWriter chooseDataWriter(Batch batch) {
ctx.put(ContextConstants.CONTEXT_BULK_WRITER_TO_USE, "default");
listener.currentBatch.setStatus(Status.OK);
processor.setDataReader(buildDataReader(batchInStaging, resource));
processor.process(ctx);
try {
listener.getBatchesProcessed().remove(listener.currentBatch);
processor.process(ctx);
} catch (Exception retryException) {
isError = true;
incomingBatch = listener.currentBatch;
incomingBatch.setStatus(Status.ER);
incomingBatchService.updateIncomingBatch(incomingBatch);
throw e;
}
} else {
isError = true;
throw e;
Expand Down

0 comments on commit 1e69027

Please sign in to comment.