Skip to content

Add seek logic for reader - #356

Merged
wolfstudy merged 5 commits into
apache:masterfrom
wolfstudy:xiaolong/add-reader-seek
Aug 24, 2020
Merged

Add seek logic for reader#356
wolfstudy merged 5 commits into
apache:masterfrom
wolfstudy:xiaolong/add-reader-seek

Conversation

@wolfstudy

@wolfstudy wolfstudy commented Aug 24, 2020

Copy link
Copy Markdown
Member

Signed-off-by: xiaolong.ran rxl@apache.org

Fixes #218

Motivation

Follow #222 and add the seek logic for reader

Modifications

  • Add seek by msgID interface
  • Add seek by time interface
  • Add test case

Verifying this change

  • Make sure that the change passes the CI checks.

Signed-off-by: xiaolong.ran <rxl@apache.org>
@wolfstudy wolfstudy self-assigned this Aug 24, 2020
@wolfstudy wolfstudy added this to the 0.2.0 milestone Aug 24, 2020
Signed-off-by: xiaolong.ran <rxl@apache.org>
Signed-off-by: xiaolong.ran <rxl@apache.org>
Signed-off-by: xiaolong.ran <rxl@apache.org>
Signed-off-by: xiaolong.ran <rxl@apache.org>
@wolfstudy
wolfstudy merged commit f9b3c0f into apache:master Aug 24, 2020
wuYin added a commit to wuYin/pulsar-client-go that referenced this pull request Aug 24, 2020
rueian added a commit to rueian/pulsar-client-go that referenced this pull request Feb 15, 2021
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 `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 `HasNext()` return true in case of `StartMessageIdInclusive` and `LastestMessageID`
* make `TestReaderLatestInclusiveHasNext` test case be more robust
rueian added a commit to rueian/pulsar-client-go that referenced this pull request Feb 16, 2021
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 `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
rueian added a commit to rueian/pulsar-client-go that referenced this pull request Feb 16, 2021
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 `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 `HasNext()` return true in case of `StartMessageIdInclusive` and `LastestMessageID`
* make the `TestReaderLatestInclusiveHasNext` test case be more robust
rueian added a commit to rueian/pulsar-client-go that referenced this pull request Feb 16, 2021
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 `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
rueian added a commit to rueian/pulsar-client-go that referenced this pull request Feb 16, 2021
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 pushed a commit that referenced this pull request Feb 19, 2021
* Fix reader with start latest message id inclusive (#329)

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

* Renew the expired certs in integration-tests with script
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.

Seek function is missing in Reader

2 participants