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: complete MessageReplay immediately if there is no entry to replay which will not block further reads as current Replay is finished #103

Merged
merged 1 commit into from
Nov 4, 2016

Conversation

rdhabalia
Copy link
Contributor

Motivation

While doing messageReplay: if all the replay-entries are already acked then Dispatcher was not replaying any entry and also was not receiving a ReadEntriesCallback which keeps messagesToReplay in pending state and further reads couldn't read next entries.

Modifications

If all the replay-entries are already acked

  • Dispatcher should remove it from messagesToReplay bucket
  • mark messagesToReplay flag complete
  • continue to do next readMoreEntries

Result

Dispatcher will immediately mark messagesToReplay flag complete incase of all invalid-entries for replay and continue reading more messages and consumer will not be blocked while receiving messages.

…ich will not block reads from other consumer
@yahoocla
Copy link

yahoocla commented Nov 3, 2016

CLA is valid!

@rdhabalia rdhabalia added the type/bug The PR fixed a bug or issue reported a bug label Nov 3, 2016
@rdhabalia rdhabalia added this to the 1.16 milestone Nov 3, 2016
@rdhabalia rdhabalia self-assigned this Nov 3, 2016
Copy link
Contributor

@merlimat merlimat left a comment

Choose a reason for hiding this comment

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

👍

@rdhabalia rdhabalia merged commit 15683fd into apache:master Nov 4, 2016
@rdhabalia rdhabalia deleted the stuck_master branch November 11, 2016 23:02
sijie pushed a commit to sijie/pulsar that referenced this pull request Mar 4, 2018
hrsakai pushed a commit to hrsakai/pulsar that referenced this pull request Dec 10, 2020
hangc0276 pushed a commit to hangc0276/pulsar that referenced this pull request May 26, 2021
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.

3 participants