Skip to content

Commit

Permalink
Avoid couting rejected messages as consume failures
Browse files Browse the repository at this point in the history
* They are already counted as failed acknowledgements

Signed-off-by: Yannic Klem <yannic.klem@bosch.io>
  • Loading branch information
Yannic92 committed Sep 3, 2021
1 parent ece8ad3 commit de950ac
Showing 1 changed file with 0 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,6 @@ private void handleStreamCompletion(@Nullable final Done done, @Nullable final T
sourceAddress,
"Consumer closed", now);
} else if (realCause instanceof MessageRejectedException) {
final MessageRejectedException cause = (MessageRejectedException) throwable.getCause();
inboundMonitor.exception(cause);
status = ConnectivityStatus.CLOSED;
self().tell(realCause, ActorRef.noSender());
statusUpdate = ConnectivityModelFactory.newStatusUpdate(
Expand Down

0 comments on commit de950ac

Please sign in to comment.