-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Feature - reset cursor on Reader to current position #4331
Feature - reset cursor on Reader to current position #4331
Conversation
pulsar-broker/src/test/java/org/apache/pulsar/client/api/TopicReaderTest.java
Outdated
Show resolved
Hide resolved
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerImpl.java
Show resolved
Hide resolved
run java8 tests |
lgtm. Indeed there is needs for this case. |
79b6f07
to
4fa8153
Compare
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerImpl.java
Show resolved
Hide resolved
pulsar-client/src/main/java/org/apache/pulsar/client/impl/ReaderBuilderImpl.java
Outdated
Show resolved
Hide resolved
4fa8153
to
9e62a97
Compare
pulsar-broker/src/test/java/org/apache/pulsar/client/api/TopicReaderTest.java
Show resolved
Hide resolved
9e62a97
to
30584b1
Compare
30584b1
to
3f0d66f
Compare
@jiazhai Of course, I've just added, please take a look now, sorry for delay. |
run cpp tests |
3f0d66f
to
66b0f04
Compare
f75dc13
to
a6f6cd1
Compare
run cpp tests |
1 similar comment
run cpp tests |
@jiazhai cpp tests keeps failing without notice of any failed tests, any hint on this? keep trying? |
run cpp tests |
*Motivation* There are some cases in which is it useful to be able to include current position of message when reset of cursor was made. This was reported by a `vvy` on slack, no issue has been created to track this. *Modifications* - Add startMessageIdInclusive() to support include current position of reset on ReaderBuilder. - Add resetIncludeHead field for Reader and Consumer Configuration Data - Fix position of cursor for non durable consumer. - Improve discard if statement for batch enable mode. - Add discard if statement for batch disable mode. - Improve test case for latest Reader seek. - Add test case to assert the start of specific message id at the expected position with data provider scenarios: A. Batch enable and start inclusive enable. B. Batch enable and start inclusive disable. C. Batch disable and start inclusive enable. D. Batch disable and start inclusive disable.
ed8c5c7
to
91055f0
Compare
run cpp tests |
@lovelle right, seems no error in cpp, just timeout.
|
run cpp tests |
Python test failed:
|
Ok, now I found it, let me explore this a little bit further |
@lovelle I moved this to 2.5.0. if you think it should be 2.4.0, please let me know. |
run cpp tests |
Same error? |
00d47c7
to
863c0f3
Compare
863c0f3
to
b9f4c03
Compare
run java8 tests |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
LGTM 👍 |
Motivation
There are some cases in which is it useful to be able to include current
position of message when reset of cursor was made.
This was reported by a
vvy
on slack, no issue has been created to track this.Modifications
reset on ReaderBuilder.
position with data provider scenarios:
A. Batch enable and start inclusive enable.
B. Batch enable and start inclusive disable.
C. Batch disable and start inclusive enable.
D. Batch disable and start inclusive disable.