Skip to content
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

Merged
merged 7 commits into from
Oct 16, 2019
Merged

Add support for deciding the min resolvedTs of all pullers #53

merged 7 commits into from
Oct 16, 2019

Conversation

suzaku
Copy link
Contributor

@suzaku suzaku commented Oct 16, 2019

No description provided.

@suzaku suzaku added the status/ptal Could you please take a look? label Oct 16, 2019
}

func (c *SubChangeFeed) startOnSpan(ctx context.Context, span util.Span) error {
func (c *SubChangeFeed) getCheckpointTs() uint64 {
Copy link
Contributor

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

Copy link
Contributor Author

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
}
Copy link
Contributor

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

Copy link
Contributor Author

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?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fine

Copy link
Contributor

@amyangfei amyangfei left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zier-one
Copy link
Contributor

LGTM

@zier-one zier-one added LGT2 and removed status/ptal Could you please take a look? labels Oct 16, 2019
@suzaku
Copy link
Contributor Author

suzaku commented Oct 16, 2019

@amyangfei debug.go updated.

@suzaku suzaku merged commit 0616bd9 into pingcap:master Oct 16, 2019
5kbpers pushed a commit to 5kbpers/ticdc that referenced this pull request Aug 24, 2020
amyangfei added a commit to amyangfei/tiflow that referenced this pull request May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants