Skip to content

Trying to fix 'Tagging already tagged part'#24961

Merged
alesapin merged 1 commit intomasterfrom
more_general_check_in_queue
Jun 7, 2021
Merged

Trying to fix 'Tagging already tagged part'#24961
alesapin merged 1 commit intomasterfrom
more_general_check_in_queue

Conversation

@alesapin
Copy link
Copy Markdown
Member

@alesapin alesapin commented Jun 4, 2021

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):
Fix extremely rare error Tagging already tagged part in replication queue during concurrent alter move/replace partition. Possibly fixes #22142.

Example error: https://clickhouse-test-reports.s3.yandex.net/24775/bc763981fc961a3460df1a042e08991a3434ce89/stress_test_(undefined).html#fail1

@robot-clickhouse robot-clickhouse added the pr-bugfix Pull request with bugfix, not backported by default label Jun 4, 2021
{
/// If our entry produce part which is already covered by
/// some other entry which is currently executing, then we can postpone this entry.
if (entry.type == LogEntry::MERGE_PARTS
Copy link
Copy Markdown
Member Author

@alesapin alesapin Jun 4, 2021

Choose a reason for hiding this comment

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

I just don't understand why this if exists. If we already executing some entry that will produce new_part_name (or part covering it) then we should postpone anything that will produce the same or covered part (even DROP_RANGE, REPLACE_RANGE and so on).

@alesapin
Copy link
Copy Markdown
Member Author

alesapin commented Jun 7, 2021

No related failures.

@alesapin alesapin merged commit 170c49d into master Jun 7, 2021
@alesapin alesapin deleted the more_general_check_in_queue branch June 7, 2021 08:52
alesapin added a commit that referenced this pull request Jun 11, 2021
Backport #24961 to 21.6: Trying to fix 'Tagging already tagged part'
alexey-milovidov added a commit that referenced this pull request Jun 12, 2021
Backport #24961 to 21.5: Trying to fix 'Tagging already tagged part'
vitlibar pushed a commit that referenced this pull request Jun 22, 2021
Backport #24961 to 21.3: Trying to fix 'Tagging already tagged part'
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.

Stress test: tagging already tagged part

2 participants