Skip to content

Commit

Permalink
0004489: Node host channel stats sent count inflated
Browse files Browse the repository at this point in the history
  • Loading branch information
erilong committed Jul 30, 2020
1 parent a6a19e3 commit d64b8d8
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1402,8 +1402,10 @@ protected OutgoingBatch sendOutgoingBatch(ProcessInfo processInfo, Node targetNo

targetResource.setState(State.DONE);
isRetry = true;
statisticManager.incrementDataSent(currentBatch.getChannelId(), currentBatch.getDataRowCount());
statisticManager.incrementDataBytesSent(currentBatch.getChannelId(), extractedBatch.getFile().length());
if (currentBatch.getSentCount() == 1) {
statisticManager.incrementDataSent(currentBatch.getChannelId(), currentBatch.getDataRowCount());
statisticManager.incrementDataBytesSent(currentBatch.getChannelId(), extractedBatch.getFile().length());
}
} catch (Exception e) {
FileUtils.deleteQuietly(targetResource.getFile());
throw new RuntimeException(e);
Expand Down

0 comments on commit d64b8d8

Please sign in to comment.