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

checkpoint(dm): check outdated should respect snapshot create time #5160

Merged
merged 4 commits into from
Apr 18, 2022

Conversation

lance6716
Copy link
Contributor

Signed-off-by: lance6716 [email protected]

What problem does this PR solve?

Issue Number: close #5063

What is changed and how it works?

Old CheckGlobalPoint didn't check Snapshot creating time. Because we always use Snapshot to do a flush no matter it's a sync or async flush, we can always check that time

Check List

Tests

  • Unit test

Code changes

  • Has interface methods change

Side effects

Related changes

  • Need to cherry-pick to the release branch

Release note

Fix a bug that checkpoint flushing will be called too frequently

@ti-chi-bot
Copy link
Member

ti-chi-bot commented Apr 13, 2022

[REVIEW NOTIFICATION]

This pull request has been approved by:

  • Ehco1996
  • lichunzhu

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment.
After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by submitting an approval review.
Reviewer can cancel approval by submitting a request changes review.

@ti-chi-bot ti-chi-bot added release-note Denotes a PR that will be considered when it comes time to generate release notes. needs-cherry-pick-release-5.4 Should cherry pick this PR to release-5.4 branch. needs-cherry-pick-release-6.0 Should cherry pick this PR to release-6.0 branch. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Apr 13, 2022
@codecov-commenter
Copy link

codecov-commenter commented Apr 13, 2022

Codecov Report

Merging #5160 (e1d675b) into master (687e248) will decrease coverage by 0.0672%.
The diff coverage is 57.1346%.

Flag Coverage Δ
cdc 60.8333% <52.7915%> (+0.2347%) ⬆️
dm 52.2785% <76.5822%> (-0.1911%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@@               Coverage Diff                @@
##             master      #5160        +/-   ##
================================================
- Coverage   56.1240%   56.0568%   -0.0672%     
================================================
  Files           522        526         +4     
  Lines         65325      68031      +2706     
================================================
+ Hits          36663      38136      +1473     
- Misses        25094      26156      +1062     
- Partials       3568       3739       +171     

@lance6716 lance6716 added the area/dm Issues or PRs related to DM. label Apr 14, 2022
@ti-chi-bot ti-chi-bot added the status/LGT1 Indicates that a PR has LGTM 1. label Apr 15, 2022
Copy link
Contributor

@Ehco1996 Ehco1996 left a comment

Choose a reason for hiding this comment

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

LGTM

@ti-chi-bot ti-chi-bot added status/LGT2 Indicates that a PR has LGTM 2. and removed status/LGT1 Indicates that a PR has LGTM 1. labels Apr 18, 2022
@lance6716
Copy link
Contributor Author

/merge

@ti-chi-bot
Copy link
Member

This pull request has been accepted and is ready to merge.

Commit hash: e0c0656

@ti-chi-bot ti-chi-bot added the status/can-merge Indicates a PR has been approved by a committer. label Apr 18, 2022
@lance6716
Copy link
Contributor Author

/run-leak-test

@lance6716
Copy link
Contributor Author

/run-dm-integration-test

@lance6716 lance6716 removed the needs-cherry-pick-release-6.0 Should cherry pick this PR to release-6.0 branch. label Apr 18, 2022
@ti-chi-bot ti-chi-bot added the needs-cherry-pick-release-6.0 Should cherry pick this PR to release-6.0 branch. label Apr 18, 2022
@lance6716
Copy link
Contributor Author

/run-dm-integration-test

keepalive is 1s so caused an unstable test

@lance6716
Copy link
Contributor Author

/run-dm-integration-test
/run-verify

@lance6716
Copy link
Contributor Author

/run-dm-integration-test
/run-dm-compatibility-test

@lance6716
Copy link
Contributor Author

/run-verify

1 similar comment
@lance6716
Copy link
Contributor Author

/run-verify

@ti-chi-bot ti-chi-bot merged commit 4d6f44d into pingcap:master Apr 18, 2022
ti-chi-bot pushed a commit to ti-chi-bot/tiflow that referenced this pull request Apr 18, 2022
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created: #5201.

ti-chi-bot pushed a commit to ti-chi-bot/tiflow that referenced this pull request Apr 18, 2022
@ti-chi-bot
Copy link
Member

In response to a cherrypick label: new pull request created: #5202.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/dm Issues or PRs related to DM. needs-cherry-pick-release-5.4 Should cherry pick this PR to release-5.4 branch. needs-cherry-pick-release-6.0 Should cherry pick this PR to release-6.0 branch. release-note Denotes a PR that will be considered when it comes time to generate release notes. size/M Denotes a PR that changes 30-99 lines, ignoring generated files. status/can-merge Indicates a PR has been approved by a committer. status/LGT2 Indicates that a PR has LGTM 2.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

DM-worker may has high CPU usage and flood log after start a GTID task
5 participants