Skip to content

Commit

Permalink
[Java Client] Remove unnecessary stats incremement (apache#12229)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljmarshall authored Sep 30, 2021
1 parent 14fc0d3 commit 9d30914
Showing 1 changed file with 0 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1677,7 +1677,6 @@ public void run(Timeout timeout) throws Exception {
format("The producer %s can not send message to the topic %s within given timeout",
producerName, topic), firstMsg.sequenceId);
failPendingMessages(cnx(), te);
stats.incrementSendFailed(pendingMessages.size());
// Since the pending queue is cleared now, set timer to expire after configured value.
timeToWaitMs = conf.getSendTimeoutMs();
} else {
Expand Down

0 comments on commit 9d30914

Please sign in to comment.