Skip to content

Fatal exceptions using RetryTopicConfiguration #1820

Answered by garyrussell
einarjohnson asked this question in Q&A
Discussion options

You must be logged in to vote

For normal retry processing, see https://docs.spring.io/spring-kafka/docs/current/reference/html/#seek-to-current

Starting with version 2.3, the SeekToCurrentErrorHandler considers certain exceptions to be fatal, and retries are skipped for such exceptions; the recoverer is invoked on the first failure. The exceptions that are considered fatal, by default, are:

DeserializationException

MessageConversionException

ConversionException

MethodArgumentResolutionException

NoSuchMethodException

ClassCastException

since these exceptions are unlikely to be resolved on a retried delivery.

You can add more exception types to the not-retryable category, or completely replace the map o…

Replies: 1 comment 8 replies

Comment options

You must be logged in to vote
8 replies
@garyrussell
Comment options

@tomazfernandes
Comment options

@garyrussell
Comment options

@tomazfernandes
Comment options

@einarjohnson
Comment options

Answer selected by garyrussell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants