-
Notifications
You must be signed in to change notification settings - Fork 286
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
Add support for deciding the min resolvedTs of all pullers #53
Conversation
cdc/changefeed.go
Outdated
} | ||
|
||
func (c *SubChangeFeed) startOnSpan(ctx context.Context, span util.Span) error { | ||
func (c *SubChangeFeed) getCheckpointTs() uint64 { |
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.
L162 GetResolvedTS
is mean that get the local resolved TS in this SubChangeFeed
but getCheckpointTs
is mean that get the global checkpointTS from ETCD? it's confusing.
and we also need to calculate loacl checkpointTS, then push it to ETCD
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.
Updated
minResolvedTs = ts | ||
} | ||
} | ||
return minResolvedTs | ||
} |
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.
we need a public func to get loacl checkpoint ts in this sub changed feed
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.
Let's leave that for another PR?
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.
fine
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
LGTM |
This reverts commit 8ffa3ac.
@amyangfei debug.go updated. |
No description provided.