Skip to content

Commit

Permalink
Handle receiveAsync() failures in MultiTopicsConsumer (#11843)
Browse files Browse the repository at this point in the history
  • Loading branch information
merlimat committed Aug 31, 2021
1 parent 6486a55 commit 91bc3cc
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -269,6 +269,10 @@ private void receiveMessageFromConsumer(ConsumerImpl<T> consumer) {
// recursion and stack overflow
internalPinnedExecutor.execute(() -> receiveMessageFromConsumer(consumer));
}
}).exceptionally(ex -> {
log.error("Receive operation failed on consumer {} - Retrying later", consumer, ex);
internalPinnedExecutor.schedule(() -> receiveMessageFromConsumer(consumer), 10, TimeUnit.SECONDS);
return null;
});
}

Expand Down

0 comments on commit 91bc3cc

Please sign in to comment.