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

ARTEMIS-5215 Credit handler reset in progress flag when stopped #5480

Merged
merged 1 commit into from
Jan 31, 2025

Conversation

tabish121
Copy link
Contributor

When a pull mode federation consumer is stopped due to demand being removed and the credit tup-up handler is also awaiting the Queue backlog to clear in order to grant a new batch of credit it might exit that cycle an leave the in-progress flag set to true. Currently this likely won't trigger a stuck consumer but if the code was to be altered to hold open a link for some period of time before fully closing in order to avoid needless attach / detach cycles then it would be possible for the credit replenishment to get stuck because the previous attempt left the in-progress flag set to true.

When a pull mode federation consumer is stopped due to demand being
removed and the credit tup-up handler is also awaiting the Queue backlog
to clear in order to grant a new batch of credit it might exit that
cycle an leave the in-progress flag set to true. Currently this likely
won't trigger a stuck consumer but if the code was to be altered to hold
open a link for some period of time before fully closing in order to
avoid needless attach / detach cycles then it would be possible for the
credit replenishment to get stuck because the previous attempt left the
in-progress flag set to true.
@gemmellr gemmellr merged commit 1633b8b into apache:main Jan 31, 2025
6 checks 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.

2 participants