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 discard unacked messages #413

Merged
merged 1 commit into from
Dec 12, 2020

Conversation

hrsakai
Copy link
Contributor

@hrsakai hrsakai commented Dec 10, 2020

#389 (comment)

Motivation

When a consumer whose receive queue is not empty reconnects to a broker, unacked messages don't be redelivered to a client application and these are removed from backlog.
This is because StartMessageID is updated and the consumer implicitly acks redelivered unacked messages.
https://github.com/apache/pulsar-client-go/blob/v0.3.0/pulsar/consumer_partition.go#L972-L976
https://github.com/apache/pulsar-client-go/blob/v0.3.0/pulsar/consumer_partition.go#L507-L510

Modifications

@hrsakai hrsakai added this to the 0.4.0 milestone Dec 10, 2020
@hrsakai hrsakai self-assigned this Dec 10, 2020
@wolfstudy wolfstudy merged commit 0e48f3b into apache:master Dec 12, 2020
@hrsakai hrsakai deleted the fix-discard-unacked-messages branch December 13, 2020 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants