Skip to content

Fix mutation may hang after REPLACE/DROP PARTITION#15537

Merged
tavplubix merged 5 commits intomasterfrom
mutation_hangs_after_replace_partition
Oct 7, 2020
Merged

Fix mutation may hang after REPLACE/DROP PARTITION#15537
tavplubix merged 5 commits intomasterfrom
mutation_hangs_after_replace_partition

Conversation

@tavplubix
Copy link
Copy Markdown
Member

@tavplubix tavplubix commented Oct 2, 2020

I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en

Changelog category (leave one):

  • Bug Fix

Changelog entry (a user-readable short description of the changes that goes to CHANGELOG.md):
Mutation might hang waiting for some non-existent part after MOVE or REPLACE PARTITION or, in rare cases, after DETACH or DROP PARTITION. It's fixed.

Detailed description / Documentation draft:
Actually fixes two independent bugs: wrong covering part for partition in REPLACE_RANGE and excess virtual parts in parts_to_do

@robot-clickhouse robot-clickhouse added doc-alert pr-feature Pull request with new product feature labels Oct 2, 2020
@alesapin alesapin self-assigned this Oct 2, 2020
@tavplubix tavplubix force-pushed the mutation_hangs_after_replace_partition branch from 2a7432d to bd790f3 Compare October 2, 2020 19:35
@alesapin alesapin removed their assignment Oct 5, 2020
@tavplubix tavplubix marked this pull request as ready for review October 5, 2020 19:17
@tavplubix tavplubix changed the title Add test: Mutation may hang after REPLACE PARTITION Fix mutation may hang after REPLACE/DROP PARTITION Oct 5, 2020
@robot-clickhouse robot-clickhouse added pr-bugfix Pull request with bugfix, not backported by default and removed pr-feature Pull request with new product feature labels Oct 5, 2020
@abyss7 abyss7 self-assigned this Oct 6, 2020
@abyss7 abyss7 self-requested a review October 6, 2020 14:24
@tavplubix
Copy link
Copy Markdown
Member Author

AST fuzzer — Received signal 6 - reported
Performance - unrelated

tavplubix added a commit that referenced this pull request Oct 7, 2020
* Merge pull request #15537 from ClickHouse/mutation_hangs_after_replace_partition

Fix mutation may hang after REPLACE/DROP PARTITION

(cherry picked from commit 0410155)

* Update 01149_zookeeper_mutation_stuck_after_replace_partition.sql
tavplubix added a commit that referenced this pull request Oct 7, 2020
…TITION (#15728)

* Backport #15537 to 20.6: Fix mutation may hang after REPLACE/DROP PARTITION

* Update 01149_zookeeper_mutation_stuck_after_replace_partition.sql

Co-authored-by: tavplubix <[email protected]>
tavplubix added a commit that referenced this pull request Oct 7, 2020
…TITION (#15727)

* Backport #15537 to 20.7: Fix mutation may hang after REPLACE/DROP PARTITION

* Update 01149_zookeeper_mutation_stuck_after_replace_partition.sql

Co-authored-by: tavplubix <[email protected]>
tavplubix added a commit that referenced this pull request Oct 7, 2020
…TITION (#15725)

* Backport #15537 to 20.9: Fix mutation may hang after REPLACE/DROP PARTITION

* Update 01149_zookeeper_mutation_stuck_after_replace_partition.sql

Co-authored-by: tavplubix <[email protected]>
tavplubix added a commit that referenced this pull request Oct 7, 2020
…TITION (#15726)

* Backport #15537 to 20.8: Fix mutation may hang after REPLACE/DROP PARTITION

* Update 01149_zookeeper_mutation_stuck_after_replace_partition.sql

Co-authored-by: tavplubix <[email protected]>
@tavplubix tavplubix mentioned this pull request Jan 22, 2021
tavplubix added a commit that referenced this pull request Jan 26, 2021
robot-clickhouse pushed a commit that referenced this pull request Jan 26, 2021
robot-clickhouse pushed a commit that referenced this pull request Jan 26, 2021
robot-clickhouse pushed a commit that referenced this pull request Jan 26, 2021
robot-clickhouse pushed a commit that referenced this pull request Jan 26, 2021
tavplubix added a commit that referenced this pull request Jan 26, 2021
tavplubix added a commit that referenced this pull request Jan 26, 2021
tavplubix added a commit that referenced this pull request Jan 26, 2021
tavplubix added a commit that referenced this pull request Jan 26, 2021
robot-clickhouse pushed a commit that referenced this pull request Feb 18, 2021
tavplubix added a commit that referenced this pull request Feb 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-bugfix Pull request with bugfix, not backported by default

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants