-
Notifications
You must be signed in to change notification settings - Fork 63
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
[FLINK-36180] Fix batch message data loss #95
Conversation
...src/main/java/org/apache/flink/connector/pulsar/source/enumerator/cursor/CursorPosition.java
Show resolved
Hide resolved
...rc/main/java/org/apache/flink/connector/pulsar/source/reader/PulsarPartitionSplitReader.java
Show resolved
Hide resolved
Thanks for your pull request @wenbingshen. I left some questions here. Can you check them? |
@syhily I responded above, PTAL. Thanks. |
After discussing with @wenbingshen I think this PR do fixed the batch message consuming issues when the connector is recovered from the checkpoint. LGTM. @reswqa @tisonkun Can you double confirm this PR and merge it? |
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.
Thanks for your contribution! Merging ...
Awesome work, congrats on your first merged pull request! |
Purpose of the change
When restoring from the state, the unconsumed messages of the batch will be lost.
we should return the next batch index single message for current batch.