Skip to content
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

Fix losing messages. #1

Merged
merged 1 commit into from
Feb 5, 2025
Merged

Fix losing messages. #1

merged 1 commit into from
Feb 5, 2025

Conversation

JavierMonton
Copy link

When the client.send fails during the put operation, as it's asynchronous, it might commit offsets before getting the error, so messages might be lost.

This is what happens when using a wrong SQS URL, it consumes a few messages and then it stops.

According to the docs, returning a RetriableException rather than RuntimeException forces Kafka Connect to retry the operation, which also ensures that messages are not committed.

Tested manually and it doesn't lose messages.

This PR was opened to the original repo too, but not merged yet. Nordstrom#57

@JavierMonton JavierMonton merged commit d533116 into master Feb 5, 2025
1 check passed
@JavierMonton JavierMonton deleted the fix/retriable-exception branch February 21, 2025 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants