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

Throw ConnectException due to failed exchanges #273

Merged
merged 2 commits into from
Jun 16, 2020
Merged

Conversation

omarsmak
Copy link
Member

In case we have failed Camel exchanges, we throw ConnectException in order to avoid the committing the offsets on failed messages and hence result of loss messages downstream. With this small modification, the task will directly shutdown upon failed exchanges and hence avoid any offsets being committed

@oscerd oscerd requested a review from valdar June 15, 2020 05:50
Copy link
Member

@valdar valdar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@omarsmak error handling is a theme in need of more love, so glad you contributed there!

Because it is of great importance as well can I ask you if you could add a test to this PR?

@omarsmak
Copy link
Member Author

Indeed @valdar, unit tests here are very important to ensure this always checked as such small modification has a significant semantics impact. I would definitely update this PR with unit tests. Will keep you posted!

@omarsmak
Copy link
Member Author

@valdar added unit tests

Copy link
Member

@valdar valdar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@valdar valdar merged commit 9d1fc3d into master Jun 16, 2020
@valdar valdar deleted the add-exception branch June 16, 2020 20:11
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.

None yet

3 participants