-
Notifications
You must be signed in to change notification settings - Fork 287
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
sink: add barrier in underlying sink to support accruate stop (#2417) #2494
sink: add barrier in underlying sink to support accruate stop (#2417) #2494
Conversation
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. Reviewer can indicate their review by submitting an approval review. |
/merge |
This pull request has been accepted and is ready to merge. Commit hash: fc58f2c
|
/run-all-tests |
1 similar comment
/run-all-tests |
/merge |
This is an automated cherry-pick of #2417
What problem does this PR solve?
Fix #2230
This PR introduces a new
Barrier
API in sink interface, which is a synchronous function to wait all events to be flushed in underlying sink, note onceBarrier
is called, the resolved ts can't be pushed until the Barrier call returns.We call
Barrier
when table sink is closing (via theClose
method of table sink), and beforeBarrier
is called, we draw back all existing events in sink buffer.Note the cherry-pick cannot be merged into release-4.0, release-5.0 until new owner is enabled in these branches.
What is changed and how it works?
Barrier
implementationCheck List
Tests
Release note