-
Notifications
You must be signed in to change notification settings - Fork 289
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
gc (ticdc): optimize the algorithm calculating gc safepoint (#8464) #8887
gc (ticdc): optimize the algorithm calculating gc safepoint (#8464) #8887
Conversation
…s, put the error changefeed into failed state and calculate the ticdc global gc safepoint based on checkpoint ts of all changefeeds and give users 24 hours grace period to handle the failed changefeed. e.g., Have two ChangeFeeds, cf1(failed) with checkpointTs ts1 cf2(normal) with checkpointTs ts2 the global gc safepoint will be: min(ts2, max(ts1, currentPDTs - 24 hours))
[REVIEW NOTIFICATION] This pull request has not been approved. 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: 86544a3
|
This is an automated cherry-pick of #8464
What problem does this PR solve?
Issue Number: close #8403
What is changed and how it works?
gc (ticdc): Instead of keeping restarting error changefeed in 24 hours, put the error changefeed into failed state and calculate the ticdc global gc safepoint based on checkpoint ts of all changefeeds and give users 24 hours grace period to handle the failed changefeed.
e.g.,
Have two ChangeFeeds,
cf1(failed) with checkpointTs ts1
cf2(normal) with checkpointTs ts2
the global gc safepoint will be:
min(ts2, max(ts1, currentPDTs - 24 hours))
After this pr being merged:
gcsafepoint
, changefeed has been failed for more than 24 hours will be ignoredCheck List
Tests
Questions
No
Will it cause performance regression or break compatibility?
No
Do you need to update user documentation, design documentation or monitoring documentation?
No
Release note