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 #102

Merged
merged 2 commits into from
Nov 3, 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.

@yahoocla
Copy link

yahoocla commented Nov 3, 2016

CLA is valid!

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.

Looks good

@rdhabalia rdhabalia merged commit 8ab57c9 into apache:branch-1.15 Nov 3, 2016
@rdhabalia rdhabalia deleted the stuck branch November 11, 2016 23:02
@merlimat merlimat added this to the 1.15.2 milestone Nov 15, 2016
sijie added a commit to sijie/pulsar that referenced this pull request Mar 4, 2018
massakam pushed a commit to massakam/pulsar that referenced this pull request Aug 6, 2020
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
* do the rename
* change target dir for release finding
dragonls pushed a commit to dragonls/pulsar that referenced this pull request Oct 21, 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.

3 participants