Repository navigation
Add test: StorageFileLog silent-return branch for path outside user_files_path (ATTACH/SECONDARY_CREATE/FORCE_ATTACH/FORCE_RESTORE) untested - #104056
Merged
alexey-milovidov merged 1 commit intoMay 7, 2026
Conversation
Contributor
|
Workflow [PR], commit [32654c2] Summary: ✅ AI ReviewSummaryThis PR adds a stateless shell test ( ClickHouse Rules
Final VerdictStatus: ✅ Approve |
alexey-milovidov
approved these changes
May 7, 2026
alexey-milovidov
left a comment
Member
There was a problem hiding this comment.
Almost pointless, but okay.
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.
Found via ClickGap automated review. Please close or comment if this is incorrect or needs adjustment.
Retrospective finding from a historical scan of PR #62421 (merged 2024-04-09). Confirmed on current codebase — close with a note if already fixed.
This is a test-only PR — no source code changes. Please review: test quality, whether the claimed coverage gaps are real, and whether test output makes sense.
Adds test coverage for 1 untested code path(s), found during automated review of PR #62421.
That PR Single-line change in
StorageFileLogconstructor (src/Storages/FileLog/StorageFileLog.cpp:195). The path-outside-user_files_pathguard now treatsLoadingStrictnessLevel::SECONDARY_CREATE(used forRESTOREfrom backup and for non-initial-queryDDLpropagation inDatabaseReplicated) the1.
StorageFileLogsilent-return branch for path outsideuser_files_path(ATTACH/SECONDARY_CREATE/FORCE_ATTACH/FORCE_RESTORE) untestedsrc/Storages/FileLog/StorageFileLog.cpp:195,src/Storages/FileLog/StorageFileLog.cpp:198Risk: Call chain:
InterpreterCreateQuery::createTable(src/Interpreters/InterpreterCreateQuery.cpp:1559) computes `mode = getLoadingStrictnessLevel(create.attach, ..., is_secondary_query || is_restore_fWhat's unique vs PR tests: PR ships zero tests. Existing 02125/02126 tests cover only the throw side at line 200 with default CREATE mode. My test is the first to exercise the silent-return side (line 195-198) — the exact branc
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Not applicable — test-only change.
Documentation entry for user-facing changes