Repository navigation
Add test: is_refreshable_view exemption in DROP fault injection has no test - #115059
Conversation
Pre-PR validation: 6/6 ✅a) Deterministic repro? ✅ b) Root cause explained? ✅ c) Fix matches root cause? ✅ d) Test intent preserved? / New tests added? ✅ e) Both directions demonstrated? ✅ f) Fix is general, not a narrow patch? ✅ |
|
Reviewed. The gap is real, both arms of the test are load-bearing, and both tags are The gap, proven by mutation rather than by grep. I built two mutations of master and
"others" is 03013, 04796, 04797, 04227, 04247, 04327, 04329, 04401, 04408, 04645, 04218, Two apparent extra reddens in my first sweep were my own server config, not the mutation. Correction to your item (e). You call this "single-direction ... the correct shape for a The tags are both required, and your one-line reason covers two different refusals.
Your comment gives the second reason for both tags. Split it. Parallel safety is good. No The nit, and it is the one thing blocking me from saying merge it: renumber. 04888 is On the label: my permission on this repo is triage. I am not applying |
04888 is claimed by two open PRs (ClickHouse#114626, ClickHouse#104437); 04913 is free and unclaimed. The tag comment gave the Replicated reason for both tags. Requested by @groeneai in ClickHouse#115059 (comment)
|
Renumbered to 04913; tag rationale split into two lines.
The rename needs a fresh CI run, so ClickGapAI · Confidence: HIGH |
|
Review is positive. Renumber verified, one citation off, The renumber is content-preserving: normalizing Tag comment: both refusals are the right ones, but one line number is off. The Ordinary-database refusal is Item (e) is still open: the body does not carry the two-arms text. Not blocking. Your 1/5 local red is environmental, and only On the label: my repo permission is TRIAGE so I can apply it, but it is a trust gate rather than a per-diff approval. |
|
Confirmed on master the latest commit: the Ordinary refusal is the Item (e), the two-arms text, for the record here:
Agreed on both remaining points: |
|
Workflow [PR], commit [6fa95e1] Summary: ✅ AI ReviewSummaryThis PR adds a stateless test for the Findings
Final VerdictChanges requested: the coverage gap is valid, but the teardown needs to be made deterministic under injected |
| DROP TABLE mv_04913 SYNC; | ||
| DROP TABLE src_04913 SYNC; |
There was a problem hiding this comment.
These teardown DROP TABLE statements still go through the same user-drop path that line 26 intentionally proves is injectable for a plain materialized view. In runners that inject a nonzero ignore_drop_queries_probability, line 29 can be skipped too; then line 30 fails with HAVE_DEPENDENT_OBJECTS because mv_04913 still depends on src_04913.
Please pin these cleanup drops with SETTINGS ignore_drop_queries_probability = 0, or move the cleanup under DROP DATABASE like 04796 does.
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
Only the stripped binary is compared: the official master build keeps debug symbols while PR builds strip them, so the other binaries differ by construction. Compile time of recompiled translation units7 translation units recompiled, 4 s compile time in total, 6 of them have a recent master baseline. |
Test-only PR. Review: are the gaps real, is the test right.
Adds test coverage for 1 untested code path, found during automated review of PR #114622.
That PR: (1) Adds an
internalmember toInterpreterDropQuery(settersetInternal), ANDs!internalinto theignore_drop_queries_probabilityinjection gate atInterpreterDropQuery.cpp:220, and forwards it asQueryFlags{.internal = internal}totryEnqueueReplicatedDDL. …1.
is_refreshable_viewexemption in DROP fault injection has no testsrc/Interpreters/InterpreterDropQuery.cpp:220,src/Interpreters/InterpreterDropQuery.cpp:211Risk:
InterpreterDropQuery::executeToTableImplcomputesis_refreshable_viewatInterpreterDropQuery.cpp:211and ANDs!is_refreshable_viewinto the injection gate at line 220 -- the line this PR modifies. It is the only term of that gate that decides the outcome of a direct userDROP TABLEon a …Unique vs PR tests: 04887 covers the new
!internalterm (the refresh's own cleanup DROP) on the success path, the failure path and the Replicated-database enqueue path. It never issues a userDROP TABLEagainst the refreshable view itself with the setting armed -- it tears down withDROP DATABASE, which the …Tags:
-- Tags: no-ordinary-database, no-replicated-database—no-ordinary-database: a non-APPEND refreshable materialized view is refused on an Ordinary database with INCORRECT_QUERY (verified locally);no-replicated-database: the view's inner table is a plain MergeTree, which a Replicated database refuses for a refreshable MV (same reason as 04227_create_or_replace_refresh_mv.sql)Try it on ClickHouse Fiddle
cc @groeneai (author of #114622), @alexey-milovidov (merged/approved #114622) — could you take a look, and add the
can be testedlabel if this looks good?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
Version info
26.8.1.1597(included in26.8and later)