Skip to content

If an Error is thrown in the application's @KafkaListener listener code #3843

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
artembilan opened this issue Apr 16, 2025 · 1 comment · Fixed by #3845
Closed

If an Error is thrown in the application's @KafkaListener listener code #3843

artembilan opened this issue Apr 16, 2025 · 1 comment · Fixed by #3845

Comments

@artembilan
Copy link
Member

Discussed in #3841

Originally posted by directlx April 15, 2025
If an Error is thrown in the application's @KafkaListener listener code, such as an OOM, Spring Kafka catches this in MessagingMessageListenerAdapter and allows processing to continue, so the offsets are committed, and the message lost. (Unlike for an Exception where the offsets are not committed and message is retried). What is the rationale for this?

@artembilan
Copy link
Member Author

The regression since: #3528

ryanswech pushed a commit to ryanswech/spring-kafka that referenced this issue Apr 16, 2025
ryanswech pushed a commit to ryanswech/spring-kafka that referenced this issue Apr 16, 2025
spring-builds pushed a commit that referenced this issue Apr 16, 2025
Fixes: #3843
Issue link: #3843

Signed-off-by: Ryan Swech <[email protected]>

[[email protected] Improve commit message]

Signed-off-by: Artem Bilan <[email protected]>
(cherry picked from commit bef69c3)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants