Skip to content

Revert "Use global stopMergesAndWait in replacePartitionFrom to fix race" - #100822

Merged
alesapin merged 1 commit into
masterfrom
revert-97105-fix-replace-partition-global-blocker
Mar 27, 2026
Merged

alesapin merged 1 commit into
masterfrom
revert-97105-fix-replace-partition-global-blocker

Conversation

@alesapin

@alesapin alesapin commented Mar 26, 2026 •

Copy link
Copy Markdown
Member

Reverts #97105
Reason: #97105 (comment)

Version info

  • Merged into: 26.4.1.324-master (included in 26.4 and later)
  • Backported to: 26.3.61.18

@clickhouse-gh

clickhouse-gh Bot commented Mar 26, 2026 •

Copy link
Copy Markdown
Contributor

Workflow [PR], commit [af098a3]

Summary: ✅


AI Review

Summary

This PR reverts the earlier change from stopMergesAndWait back to partition-scoped blocking in StorageMergeTree::replacePartitionFrom (except PARTITION ALL, which still uses global blocking). Given the current code path (including partition-aware blocker checks during mutation selection under currently_processing_in_background_mutex), the revert looks consistent and reduces unnecessary global blocking scope. I did not find correctness, safety, or performance regressions in the diff itself.

ClickHouse Rules
Item Status Notes
Deletion logging ➖
Serialization versioning ➖
Core-area scrutiny ✅
No test removal ✅
Experimental gate ➖
No magic constants ✅
Backward compatibility ✅
SettingsChangesHistory.cpp ➖
PR metadata quality ➖
Safe rollout ✅
Compilation time ✅
Final Verdict
  • Status: ✅ Approve

@clickhouse-gh clickhouse-gh Bot added the pr-not-for-changelog This PR should not be mentioned in the changelog label Mar 26, 2026
@clickhouse-gh

clickhouse-gh Bot commented Mar 26, 2026

Copy link
Copy Markdown
Contributor

LLVM Coverage Report

Metric Baseline Current Δ
Lines 78.20% 84.20% +6.00%
Functions 23.30% 24.50% +1.20%
Branches 70.70% 76.70% +6.00%

Changed lines: 93.33% (14/15) · Uncovered code

Full report · Diff report

@alesapin
alesapin added this pull request to the merge queue Mar 27, 2026
Merged via the queue into master with commit ee6fc02 Mar 27, 2026
149 checks passed
@alesapin
alesapin deleted the revert-97105-fix-replace-partition-global-blocker branch March 27, 2026 15:18
@robot-clickhouse-ci-1 robot-clickhouse-ci-1 added the pr-synced-to-cloud The PR is synced to the cloud repo label Mar 27, 2026
@robot-clickhouse robot-clickhouse added the pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR label Oct 26, 2026
@robot-ch-test-poll4 robot-ch-test-poll4 added the pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore label Oct 26, 2026
PedroTadim added a commit that referenced this pull request Oct 29, 2026
Backport #100822 to 26.3: Revert "Use global stopMergesAndWait in replacePartitionFrom to fix race"
leshikus pushed a commit that referenced this pull request Nov 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

pr-backports-created Backport PRs are successfully created, it won't be processed by CI script anymore pr-must-backport-synced The `*-must-backport` labels are synced into the cloud Sync PR pr-not-for-changelog This PR should not be mentioned in the changelog pr-synced-to-cloud The PR is synced to the cloud repo v26.3-must-backport

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants