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

QPID-8538: Replenish the credit after drain by the drained amount of messages #27

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

morapet
Copy link

@morapet morapet commented Jun 21, 2021

There is a bug in the fetch code, which causes the drain to end by the call of the GET which top-up credit only by 1. If there is queued e.g 1-2 messages queued from broker and local client gave up whole credit by the drain cycle, it must be always replenished by the real amount of messages drained from broker, otherwise the fetch method is ended with credit 1 or 0. Then the performance is degraded to very small.

You can do whatever with this PR, consider this as free of charge contribution for open source community.

@gemmellr
Copy link
Member

@jiridanek jiridanek changed the title replenish the credit after drain by the drained amount of messages QPID-8538: Replenish the credit after drain by the drained amount of messages Aug 1, 2022
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