Skip to content

Commit

Permalink
fix extract start time and row counts
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Feb 26, 2019
1 parent 199662f commit 1c7aff2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,8 @@ public void checkSend(Statistics stats) {

if (!batchFromDatabase.getStatus().equals(Status.OK) && !batchFromDatabase.getStatus().equals(Status.IG)) {
this.outgoingBatch.setStatus(Status.NE);
this.outgoingBatch.setExtractRowCount(this.outgoingBatch.getDataRowCount());
this.outgoingBatch.setExtractInsertRowCount(this.outgoingBatch.getDataInsertRowCount());
checkSendChildRequests(batchFromDatabase, resource, stats);
this.dataExtractorService.outgoingBatchService.updateOutgoingBatch(this.outgoingBatch);
} else {
Expand Down Expand Up @@ -307,6 +309,7 @@ protected void nextBatch() {
this.outgoingBatch = this.batches.remove(0);
this.outgoingBatch.setDataRowCount(0);
this.outgoingBatch.setDataInsertRowCount(0);
this.outgoingBatch.setExtractStartTime(new Date());
if (this.finishedBatches.size() > 0) {
this.outgoingBatch.setExtractCount(this.outgoingBatch.getExtractCount() + 1);
}
Expand Down

0 comments on commit 1c7aff2

Please sign in to comment.