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

executor: fix admin cleanup index for non-unique handles in a unique index #7248

Merged
merged 5 commits into from
Aug 2, 2018

Conversation

jackysp
Copy link
Member

@jackysp jackysp commented Aug 2, 2018

What have you changed? (mandatory)

When we need to delete darling indices, we can not assume the unique darling indices have the unique handles as its values. It means if the darling indices look like:

key value
1 0
2 0

we can delete the last one only. This pr fix it.

What is the type of the changes? (mandatory)

  • Bug fix (non-breaking change which fixes an issue)

How has this PR been tested? (mandatory)

Unit test.

Does this PR affect documentation (docs/docs-cn) update? (mandatory)

No.

Does this PR affect tidb-ansible update? (mandatory)

No.

Does this PR need to be added to the release notes? (mandatory)

release note:
Fix a corner case of ADMIN CLEANUP INDEX when dealing with a unique index.

PTAL @coocood @winkyao

@jackysp jackysp added type/bugfix This PR fixes a bug. sig/execution SIG execution labels Aug 2, 2018
Copy link
Member

@coocood coocood left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@zimulala zimulala left a comment

Choose a reason for hiding this comment

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

LGTM

@zimulala
Copy link
Contributor

zimulala commented Aug 2, 2018

/run-all-tests

@zimulala zimulala added the status/LGT2 Indicates that a PR has LGTM 2. label Aug 2, 2018
Copy link
Contributor

@winkyao winkyao left a comment

Choose a reason for hiding this comment

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

LGTM

@jackysp
Copy link
Member Author

jackysp commented Aug 2, 2018

/run-mybatis-test
/run-unit-test

@jackysp
Copy link
Member Author

jackysp commented Aug 2, 2018

/run-all-tests

1 similar comment
@jackysp
Copy link
Member Author

jackysp commented Aug 2, 2018

/run-all-tests

@ciscoxll ciscoxll merged commit 55d8eff into pingcap:master Aug 2, 2018
jackysp added a commit to jackysp/tidb that referenced this pull request Aug 2, 2018
shenli pushed a commit that referenced this pull request Aug 3, 2018
…index (#7248) (#7265)

* fix one handle to multi unique indices
@jackysp jackysp deleted the fix_cleanup branch August 7, 2018 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sig/execution SIG execution status/LGT2 Indicates that a PR has LGTM 2. type/bugfix This PR fixes a bug.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants