Repository navigation
Refuse install.sh --db-replicated when a replica config dir aliases the source - #123180
Merged
Merged
Conversation
… the source With `--db-replicated`, `tests/config/install.sh` copies the installed server configs into `$DEST_SERVER_PATH/../clickhouse-server1` and `.../clickhouse-server2` and then removes and rewrites files there. The source-alias guard added in #111250 did not check these sibling directories, so a symlink or bind mount from one of them back to `tests/config` still rewrote the tracked configs. Factor the guard into `refuse_if_dest_aliases_source` and also call it for the replica directories, right after they are created, so `..` resolves the same way as for the subsequent `cp`/`rm`/redirects. Related: #111250 Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
Contributor
|
Workflow [PR], commit [1075169] Summary: ✅ AI ReviewSummaryThis PR factors the destination/source alias check in Final Verdict✅ No blockers or majors. LLVM Coverage ReportMeasured on commit 1075169.
Changed lines: Uncovered code analysis did not run: No coverable C/C++ source files changed (contrib/ is excluded from coverage). Newly covered: +120 lines in 41 files (-164 lines lost coverage) · Details |
alexey-milovidov
added a commit
that referenced
this pull request
Oct 16, 2026
- Resolve the `TODO: wait for the revert-of-revert.` on #123808: #124640 reverted only its `WindowTransform` part and no re-apply is planned, so the window functions are dropped from the entry instead. - Sort every category by significance, clustering related entries. - Move 21 entries between categories (efficiency entries to `Performance Improvement`, user-visible failures to `Bug Fix`, usability changes out of `Bug Fix`, new SQL surface to `New Feature`). - Merge 28 groups of entries describing the same feature or fix, including regressions of this release folded into the feature they broke. - Rewrite entries that described internal classes instead of the user-visible effect, and fix backticks and formatting. - Drop two pure CI/test-build entries from `Build/Testing/Packaging Improvement` (#123180, #125593). Related: #120500 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #111250, addressing the remaining review thread there: #111250 (comment) (bot finding on
--db-replicated).With
--db-replicated,tests/config/install.shcopies the installed server configs into$DEST_SERVER_PATH/../clickhouse-server1and.../clickhouse-server2, then removes and rewrites files there. The source-alias guard from #111250 did not cover these sibling directories, so if one of them was a symlink or bind mount back totests/config, the tracked configs were still rewritten.This factors the guard into
refuse_if_dest_aliases_sourceand also calls it for the replica directories (and theirconfig.d/users.d) right after they are created, so..resolves the same way as for the latercp/rm/redirects. Verified locally against a copiedtests/config:clickhouse-server1 -> srcandclickhouse-server2/config.d -> src/config.dboth refuse and leave the source untouched, and a normal--db-replicatedinstall succeeds.Related: #111250
Related: #90883
Changelog category (leave one):
🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/123180]
Version info
26.10.1.1187-master(included in26.10and later)