Skip to content
This repository has been archived by the owner on Nov 24, 2023. It is now read-only.

syncer/: fix flush checkpoint for ddls for situations that IsSharding is false(#587) #624

Merged
merged 11 commits into from
Apr 27, 2020

Conversation

lichunzhu
Copy link
Contributor

cherry-pick #587


What problem does this PR solve?

#514

  • When IsSharding is false, table checkpoint which contains schema tracker info was not updated in dm_meta instantly. But global checkpoint is updated. If worker fails now, it will cause a mismatch between tracker and global checkpoint.
  • Fix a dead lock bug.

What is changed and how it works?

Update table point when we update global checkpoint.

Check List

Tests

  • Unit test
  • Integration test

Related changes

  • Need to cherry-pick to the release branch

@lichunzhu lichunzhu added priority/normal Minor change, requires approval from ≥1 primary reviewer status/PTAL This PR is ready for review. Add this label back after committing new changes type/bug-fix Bug fix type/cherry-pick This PR is just a cherry-pick (backport) labels Apr 21, 2020
@lichunzhu
Copy link
Contributor Author

@csuzhangxc @WangXiangUSTC PTAL

@codecov
Copy link

codecov bot commented Apr 21, 2020

Codecov Report

Merging #624 into release-1.0 will increase coverage by 0.1146%.
The diff coverage is 73.9130%.

@@                 Coverage Diff                 @@
##           release-1.0       #624        +/-   ##
===================================================
+ Coverage      57.8206%   57.9352%   +0.1146%     
===================================================
  Files              166        166                
  Lines            16968      17000        +32     
===================================================
+ Hits              9811       9849        +38     
+ Misses            6207       6196        -11     
- Partials           950        955         +5     

@csuzhangxc csuzhangxc added this to the v1.0.5 milestone Apr 23, 2020
Copy link
Member

@csuzhangxc csuzhangxc left a comment

Choose a reason for hiding this comment

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

rest LGTM

syncer/syncer.go Outdated Show resolved Hide resolved
syncer/syncer.go Show resolved Hide resolved
syncer/syncer.go Outdated Show resolved Hide resolved
Copy link
Member

@csuzhangxc csuzhangxc left a comment

Choose a reason for hiding this comment

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

LGTM

@csuzhangxc csuzhangxc added status/LGT1 One reviewer already commented LGTM and removed status/PTAL This PR is ready for review. Add this label back after committing new changes labels Apr 27, 2020
@csuzhangxc
Copy link
Member

@WangXiangUSTC PTAL

Copy link
Contributor

@WangXiangUSTC WangXiangUSTC left a comment

Choose a reason for hiding this comment

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

LGTM

@lichunzhu lichunzhu merged commit 294a4f2 into pingcap:release-1.0 Apr 27, 2020
@lichunzhu lichunzhu deleted the cherrypick587 branch April 27, 2020 02:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
priority/normal Minor change, requires approval from ≥1 primary reviewer status/LGT1 One reviewer already commented LGTM type/bug-fix Bug fix type/cherry-pick This PR is just a cherry-pick (backport)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants