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

*: Use insert for non safe-mode instead of replace #199

Merged
merged 5 commits into from
Jul 19, 2019

Conversation

july2993
Copy link
Contributor

What problem does this PR solve?

*: Use insert for non safe-mode instead of replace

What is changed and how it works?

check safe-mode as update event, and use insert for non safe-mode instead of replace

Check List

Tests

Code changes

Side effects

Related changes

@july2993 july2993 added the status/WIP This PR is still work in progress label Jul 10, 2019
@july2993
Copy link
Contributor Author

/run-all-tests

@july2993
Copy link
Contributor Author

/run-all-tests

july2993 and others added 3 commits July 10, 2019 14:43
1. if exits in sharindg resync, safe mode must be enabled.
2. if exits before sharding ddl executes, we first flush checkpoints to
avoid DML reentrance after DDL owner restarts.
3. we check safe mode in scenario 2 only, as in scenario it is always true
@july2993
Copy link
Contributor Author

/run-all-tests

1 similar comment
@july2993
Copy link
Contributor Author

/run-all-tests

@codecov
Copy link

codecov bot commented Jul 19, 2019

Codecov Report

Merging #199 into master will not change coverage.
The diff coverage is n/a.

@@             Coverage Diff             @@
##             master       #199   +/-   ##
===========================================
  Coverage   59.0651%   59.0651%           
===========================================
  Files           123        123           
  Lines         14440      14440           
===========================================
  Hits           8529       8529           
  Misses         5050       5050           
  Partials        861        861

@july2993 july2993 added status/PTAL This PR is ready for review. Add this label back after committing new changes and removed status/WIP This PR is still work in progress labels Jul 19, 2019
@july2993 july2993 requested review from csuzhangxc and amyangfei and removed request for csuzhangxc July 19, 2019 04:03
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

@amyangfei amyangfei added priority/normal Minor change, requires approval from ≥1 primary reviewer status/LGT1 One reviewer already commented LGTM type/enhancement Performance improvement or refactoring and removed status/PTAL This PR is ready for review. Add this label back after committing new changes labels Jul 19, 2019
@amyangfei
Copy link
Contributor

PTAL @csuzhangxc

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/LGT2 Two reviewers already commented LGTM, ready for merge and removed status/LGT1 One reviewer already commented LGTM labels Jul 19, 2019
@july2993 july2993 merged commit 8c893bd into pingcap:master Jul 19, 2019
@july2993 july2993 deleted the hjh/use_insert branch July 19, 2019 05:23
lichunzhu pushed a commit to lichunzhu/dm that referenced this pull request Apr 6, 2020
also fix fix safe mode test case:
1. if exits in sharindg resync, safe mode must be enabled.
2. if exits before sharding ddl executes, we first flush checkpoints to
avoid DML reentrance after DDL owner restarts.
3. we check safe mode in scenario 2 only, as in scenario it is always true
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/LGT2 Two reviewers already commented LGTM, ready for merge type/enhancement Performance improvement or refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants