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

Fixed increasing consumer permits after ack dedup operation #3787

Merged
merged 1 commit into from
Mar 8, 2019

Conversation

merlimat
Copy link
Contributor

@merlimat merlimat commented Mar 8, 2019

Motivation

With the delayed acknowledgment tracker, the deduping logic is used to ignore messages that are being resent from broker after reconnection but for which the application has already acked.
These acks are tracked in client library and sent later in batches (default 100ms).

When we ignore messages as dups for the above logic, we must always increase the available permits, otherwise the count will be off. In cases where the receiver queue size is small, that could lead to a consumer getting stuck, since it will not advertise more permits to the broker.

@merlimat merlimat added the type/bug The PR fixed a bug or issue reported a bug label Mar 8, 2019
@merlimat merlimat added this to the 2.3.1 milestone Mar 8, 2019
@merlimat merlimat self-assigned this Mar 8, 2019
@merlimat
Copy link
Contributor Author

merlimat commented Mar 8, 2019

run java8 tests
run cpp tests

@merlimat
Copy link
Contributor Author

merlimat commented Mar 8, 2019

run java8 tests

Copy link
Contributor

@massakam massakam left a comment

Choose a reason for hiding this comment

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

LGTM

@massakam massakam merged commit ded732c into apache:master Mar 8, 2019
@merlimat
Copy link
Contributor Author

merlimat commented Apr 1, 2019

Merged in 2.3.1 at
7f6d36d

@merlimat merlimat deleted the fix-consumer-dedup-permits branch April 1, 2019 17:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug The PR fixed a bug or issue reported a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants