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 that redeliveries for acknowledgeable connectivity messages were issued too often #1657

Merged
merged 1 commit into from Jun 16, 2023

Conversation

thjaeckle
Copy link
Member

  • removed generic acknowledgeableMessage.reject(true) on encountered exceptions
  • the logic where the status code of the DittoRuntimeException is handled did not even take a part in the redelivery

…ssued to often

* removed generic `acknowledgeableMessage.reject(true)` on encountered exceptions
* the logic where the status code of the DittoRuntimeException is handled did not even take a part in the redelivery

Signed-off-by: Thomas Jäckle <thomas.jaeckle@beyonnex.io>
@thjaeckle thjaeckle added the bug label Jun 15, 2023
@thjaeckle thjaeckle added this to the 3.3.0 milestone Jun 15, 2023
@thjaeckle thjaeckle changed the title Fix that redeliveries for acknowledgeable connectivity messages were issued to often Fix that redeliveries for acknowledgeable connectivity messages were issued too often Jun 15, 2023
@thjaeckle
Copy link
Member Author

@kalinkostashki @alstanchev a review would be great.

This is a small bugfix which however causes that e.g. 403 (forbidden) or 404 (not found) errors are retried over and over again - without the chance of ever succeeding.
There already was logic to only retry for 408 and 424, but this logic was only invoked after
acknowledgeableMessage.reject(true);
was called - which redelivered the message for any encountered exception.

Copy link
Contributor

@kalinkostashki kalinkostashki left a comment

Choose a reason for hiding this comment

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

LGTM :)

@thjaeckle thjaeckle self-assigned this Jun 16, 2023
@thjaeckle thjaeckle merged commit 8f26635 into master Jun 16, 2023
3 checks passed
@thjaeckle thjaeckle deleted the bugfix/kafka-redelivery branch June 16, 2023 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

None yet

2 participants