Skip to content

Fix reader with start latest message id inclusive (#329) - #467

Merged
wolfstudy merged 2 commits into
apache:masterfrom
rueian:master
Feb 19, 2021
Merged

Fix reader with start latest message id inclusive (#329)#467
wolfstudy merged 2 commits into
apache:masterfrom
rueian:master

Conversation

@rueian

@rueian rueian commented Feb 15, 2021

Copy link
Copy Markdown
Contributor

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.

3 participants