[FLINK-27399][Connector/Pulsar] Change initial consuming position setting logic for better handle the checkpoint.#19972
Merged
Conversation
Collaborator
a49a
reviewed
Jun 21, 2022
cbf393b to
1ae927b
Compare
imaffe
reviewed
Jul 10, 2022
imaffe
left a comment
Contributor
There was a problem hiding this comment.
I reviewed until the NormlSplitAssigner. Will continue review tomorrow.
Contributor
|
@PatrickRen Can you also have a look at this PR? I've understood that this PR should help resolve this blocker test stability FLINK-26721 |
1ae927b to
12049bf
Compare
Contributor
Member
|
@MartijnVisser Thank you. I'll review the patch in this week. Actually I ever try to request myself as a reviewer but forget several times >_< |
tisonkun
reviewed
Jul 14, 2022
Contributor
|
@syhily Can you resolve the latest review comments? |
imaffe
reviewed
Jul 25, 2022
imaffe
reviewed
Jul 25, 2022
12049bf to
21eda6f
Compare
2baa322 to
f807c4a
Compare
f807c4a to
938be57
Compare
…top cursor for better handle the consuming behaviors.
…ad seek every time. This should fix the wrong position setting.
…it stops at correct space
938be57 to
7ea6b3c
Compare
Contributor
Author
|
@tisonkun Finally, the ci turns green. |
tisonkun
approved these changes
Aug 12, 2022
syhily
added a commit
to streamnative/flink
that referenced
this pull request
Aug 13, 2022
…ting logic for better handle the checkpoint. (apache#19972) * Change the initial start cursor and stop cursor to better handle the consuming behaviors. * Create the initial subscription instead seek every time. This should fix the wrong position setting. * Fix the wrong stop cursor, make sure it stops at the correct space * Drop Consumer.seek() for apache/pulsar#16171 (cherry picked from commit 18d21a0)
syhily
added a commit
to streamnative/flink
that referenced
this pull request
Aug 13, 2022
…ting logic for better handle the checkpoint. (apache#19972) * Change the initial start cursor and stop cursor to better handle the consuming behaviors. * Create the initial subscription instead seek every time. This should fix the wrong position setting. * Fix the wrong stop cursor, make sure it stops at the correct space * Drop Consumer.seek() for apache/pulsar#16171
syhily
added a commit
to streamnative/flink
that referenced
this pull request
Aug 13, 2022
…ting logic for better handle the checkpoint. (apache#19972) * Change the initial start cursor and stop cursor to better handle the consuming behaviors. * Create the initial subscription instead seek every time. This should fix the wrong position setting. * Fix the wrong stop cursor, make sure it stops at the correct space * Drop Consumer.seek() for apache/pulsar#16171
syhily
added a commit
to streamnative/flink
that referenced
this pull request
Aug 13, 2022
…ting logic for better handle the checkpoint. (apache#19972) * Change the initial start cursor and stop cursor to better handle the consuming behaviors. * Create the initial subscription instead seek every time. This should fix the wrong position setting. * Fix the wrong stop cursor, make sure it stops at the correct space * Drop Consumer.seek() for apache/pulsar#16171
syhily
added a commit
to streamnative/flink
that referenced
this pull request
Aug 14, 2022
…ting logic for better handle the checkpoint. (apache#19972) * Change the initial start cursor and stop cursor to better handle the consuming behaviors. * Create the initial subscription instead seek every time. This should fix the wrong position setting. * Fix the wrong stop cursor, make sure it stops at the correct space * Drop Consumer.seek() for apache/pulsar#16171
tisonkun
pushed a commit
that referenced
this pull request
Aug 14, 2022
…ting logic for better handle the checkpoint. (#19972) (#20565) * Change the initial start cursor and stop cursor to better handle the consuming behaviors. * Create the initial subscription instead seek every time. This should fix the wrong position setting. * Fix the wrong stop cursor, make sure it stops at the correct space * Drop Consumer.seek() for apache/pulsar#16171
tisonkun
pushed a commit
that referenced
this pull request
Aug 14, 2022
…ting logic for better handle the checkpoint. (#19972) (#20564) * Change the initial start cursor and stop cursor to better handle the consuming behaviors. * Create the initial subscription instead seek every time. This should fix the wrong position setting. * Fix the wrong stop cursor, make sure it stops at the correct space * Drop Consumer.seek() for apache/pulsar#16171
Closed
15 tasks
huangxiaofeng10047
pushed a commit
to huangxiaofeng10047/flink
that referenced
this pull request
Nov 3, 2022
…ting logic for better handle the checkpoint. (apache#19972) * Change the initial start cursor and stop cursor to better handle the consuming behaviors. * Create the initial subscription instead seek every time. This should fix the wrong position setting. * Fix the wrong stop cursor, make sure it stops at the correct space * Drop Consumer.seek() for apache/pulsar#16171
Rodger-zk
pushed a commit
to Rodger-zk/Rodger-zk-bkbase-flink
that referenced
this pull request
Dec 3, 2024
…ting logic for better handle the checkpoint. (apache#19972) * Change the initial start cursor and stop cursor to better handle the consuming behaviors. * Create the initial subscription instead seek every time. This should fix the wrong position setting. * Fix the wrong stop cursor, make sure it stops at the correct space * Drop Consumer.seek() for apache/pulsar#16171
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What is the purpose of the change
Brief change log
This task modifies the
flink-connector-pulsarmodule, adds some new mechanisms to set the initial consuming position.StartCursor, add new useful methods, and deprecate the confusedfromMessageTime()method.StopCursor, and add new useful methods.SplitAssignerfor assigning the splits among the Pulsar readers. Make the partition assignment logic clear and testable.Verifying this change
This change is already covered by existing tests, such as:
PulsarSourceITCasePulsarSourceEnumeratorTestPulsarOrderedPartitionSplitReaderTestWe add new tests for new partition assign logic:
NormalSplitAssignerTestSharedSplitAssignerTestDoes this pull request potentially affect one of the following parts:
@Public(Evolving): (yes)Documentation