-
Notifications
You must be signed in to change notification settings - Fork 289
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
non-reentrant DDLs can be executed twice, which can lead inconsistency #6927
Comments
/severity major |
/remove-label may-affects-4.0 |
/label effects-6.0 |
@hicqu: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
/label affects-6.0 |
@hicqu: The label(s) In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
/label affects-6.2 |
1 similar comment
/label affects-6.2 |
What did you do?
Steps:
create table x(id int primary key, val int)
;insert into x (id, val) values (1, 1)
;truncate table x
;insert into x (id, val) values (2, 2)
;What did you expect to see?
consistency check on upstream and down stream should always pass.
What did you see instead?
However, a test case shows that the consistency check can't pass after owner resign if
checkpointTs=DDL(truncate).Ts
andresolvedTs>checkpointTs
to etcd, andinsert into x (id, val) values (2,2)
had already been executed before owner resign finished.So why the inconsistency happens?
I think the reason is the new owner executes
DDL(truncate)
again.Versions of the cluster
master branch.
The text was updated successfully, but these errors were encountered: