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

Do not retry AMQP messages which violates a quota #1392

Merged
merged 1 commit into from
Jul 13, 2023

Conversation

memoos
Copy link
Contributor

@memoos memoos commented Jul 13, 2023

We had a case where a remote device sent an action state update, that violated the quota defined in hawkbit.server.security.dos.maxStatusEntriesPerAction. This caused an AssignmentQuotaExceededExceptionto be thrown, so AMQP message consumption was blocked (and thereby the Device Management Federation API not functional anymore) until a manual cleanup in the database.
This changes the behavior so messages which violate a quota are ignored so Device Management Federation API remains functional.

Copy link

@hawkbit-bot hawkbit-bot left a comment

Choose a reason for hiding this comment

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

Thanks @memoos for taking the time to contribute to hawkBit! We really appreciate this. Make yourself comfortable while I'm looking for a committer to help you with your contribution.
Please make sure you read the contribution guide and signed the Eclipse Contributor Agreement (ECA).

@hawkbit-bot
Copy link

Can one of the admins verify this patch?

Copy link
Contributor

@avgustinmm avgustinmm left a comment

Choose a reason for hiding this comment

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

LGTM

@strailov strailov merged commit bcc2616 into eclipse:master Jul 13, 2023
1 check passed
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.

4 participants