-
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
owner: fix checkpoint ts calculate in owner #163
Conversation
@@ -494,18 +493,7 @@ func (o *ownerImpl) calcResolvedTs() error { | |||
minCheckpointTs := cfInfo.TargetTs | |||
|
|||
if len(cfInfo.tables) == 0 { |
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.
after this change when there no tables, the resolve ts can be forward and the checkpoint ts can not be forward?
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.
yes, in fact if there is no tables, the checkpoint ts
is meaningless until cdc meets an add table DDL.
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
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
What problem does this PR solve?
When the
StartTs
of a changefeed is smaller than any none-system table DDL, we should have a right way to calculateglobal resolved ts
andglobal checkpoint ts
What is changed and how it works?
global resolved ts
can use theddl resolved ts
valueglobal checkpoint ts
to the local checkpoint cache stored inChangeFeedInfo
Check List
Tests