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 reader with start latest message id inclusive (#329) #467

Merged
merged 2 commits into from Feb 19, 2021

Conversation

rueian
Copy link
Contributor

@rueian rueian commented Feb 15, 2021

Fixes #356
Fixes #419

Motivtions

The changes made by the original PR #329 are no longer works.
This PR is trying to fix the bugs and make the test case be more robust.

Moditications

  • fix the wrong pc.startMessageID == lastestMessageID with pc.startMessageID.equal(lastestMessageID.(messageID))
  • fix the hanging pc.requestSeek(msgID.messageID) with pc.requestSeekWithoutClear(msgID.messageID) before the dispatch loop
  • make TestReaderLatestInclusiveHasNext test case be more robust

Verifying this change

  • Make sure that the change passes the CI checks.

This change is already covered by existing tests, such as TestReaderLatestInclusiveHasNext.

Does this pull request potentially affect one of the following parts:

If yes was chosen, please highlight the changes

  • Dependencies (does it add or upgrade a dependency): (no)
  • The public API: (no)
  • The schema: (no)
  • The default values of configurations: (no)
  • The wire protocol: (no)

Documentation

  • Does this pull request introduce a new feature? (no)

@rueian rueian force-pushed the master branch 4 times, most recently from 6f661bc to 77e7fff Compare February 16, 2021 04:49
Fixes apache#356
Fixes apache#419

Motivtions

The changes made by the original PR apache#329 are no longer works.
This PR is trying to fix the bugs and make the test case be more robust.

Moditications

* fix the wrong comparison `pc.startMessageID == lastestMessageID` with `pc.startMessageID.equal(lastestMessageID.(messageID))`
* fix the hanging `pc.requestSeek(msgID.messageID)` with `pc.requestSeekWithoutClear(msgID.messageID)` before the dispatch loop
* make the `TestReaderLatestInclusiveHasNext` test case be more robust
@wolfstudy wolfstudy added this to the 0.5.0 milestone Feb 19, 2021
@wolfstudy wolfstudy merged commit 7d53914 into apache:master Feb 19, 2021
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.

None yet

3 participants