-
Notifications
You must be signed in to change notification settings - Fork 130
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
Skip the tiflash job. #941
Conversation
test: 1. create table t(id int); 2. ALTER TABLE t SET TIFLASH REPLICA 3 LOCATION LABELS "rack", "host", "abc"; // model.ActionSetTiFlashReplica 3. curl -X POST -d '{"id":45,"region_count":3,"flash_region_count":3}' https://127.0.0.1:10080/tiflash/replica // model.ActionUpdateTiFlashReplicaStatus 4. performance write on table t and check can still replicate. ref: pingcap/tidb#12453
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
/run-all-tests |
/run-all-tests |
drainer/schema.go
Outdated
switch job.Type { | ||
case model.ActionUpdateTiFlashReplicaStatus: // empty job.Query | ||
return true | ||
case model.ActionSetTiFlashReplica: |
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.
No need to skip ActionSetTiFlashReplica
DDL job? this DDL has Query
, How about synchronize this DDL and ignore the error?
/run-all-tests tidb=release-4.0 tikv=release-4.0 pd=release-4.0 |
/run-all-tests tidb=release-4.0 tikv=release-4.0 pd=release-4.0 |
/run-all-tests tidb=release-4.0 tikv=release-4.0 pd=release-4.0 |
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
cherry pick to release-3.1 in PR #942 |
What problem does this PR solve?
Fix abort when there'a
model.ActionUpdateTiFlashReplicaStatus
job caused the job.Query is empty:tidb-binlog/drainer/schema.go
Line 280 in cd9a4d1
What is changed and how it works?
Skip the tiflash job.
Check List
Tests
test:
ref: pingcap/tidb#12453
Related changes
Need to cherry-pick to the release branch
Need to be included in the release note