Repository navigation
Remove bad tests - #111968
Remove bad tests#111968
Conversation
|
Workflow [PR], commit [3f88c37] Summary: ✅ AI ReviewSummaryThis PR deletes the five Findings
Tests
Final Verdict
|
| #!/usr/bin/env bash | ||
| # Tags: no-ordinary-database, no-replicated-database, no-shared-merge-tree, no-encrypted-storage, no-object-storage | ||
| # | ||
| # Regression test for the child re-parenting path in `PartLoadingTree::add`. |
There was a problem hiding this comment.
Deleting this family without adding an integration replacement drops the only regression coverage I can find for the rollback-specific branches in MergeTreeData::PartLoadingTree::add. The remaining tests that touch txn_version.txt.tmp (04104, 04492, 04493, test_broken_tmp_txn_version_startup) only cover simpler stale-metadata startup/attach cases; they never build the intersecting/containing part shapes that exercise read_txn_status on an existing rolled-back part, the evict_and_reinsert re-parenting/order invariant, or the tmp-only intersection path added in src/Storages/MergeTree/MergeTreeData.cpp. If these stateless tests are not allowed to fabricate parts, the replacement needs to land as an integration test in the same PR; otherwise a future change can silently reintroduce those ATTACH/startup regressions with no coverage left to catch them.
There was a problem hiding this comment.
I've asked @groeneai to rewrite them in #111922 (comment)
|
@groeneai, investigate the failures in Stateless tests (amd_llvm_coverage, ParallelReplicas, s3 storage, parallel) and provide fixes in separate PRs. If a fix is already in progress, link it here. This pull request only deletes five stateless test files, so none of the three reds can be caused by it:
I have merged |
|
@alexey-milovidov Thanks - you are right that none of the three can come from this PR (it changes only ten files under Item 1 - already fixed in #111689, and the
|
| label / STID | rows | coordinator frame | ASTIdentifier frame |
real bug |
|---|---|---|---|---|
!part.empty() (2735-47bf) |
94 | 0 | 0 | FunctionBinaryArithmetic<MultiplyImpl>::executeImpl2 in 197/197 rows = #110133 |
!part.empty() (5217-5b3d) |
32 | 32 | 0 | unknown-stream throw = #110518 / #111689 (this PR's row) |
!part.empty() (5217-505b) |
15 | 15 | 0 | same unknown-stream family |
!part.empty() (2508-3750) |
4 | 0 | 4 | the genuine ASTIdentifier one, AST fuzzer only |
| 10 further STIDs | 12 | 0 | 0 | unrelated |
So no new issue is needed for this row, and two things follow:
- The tracking issue exists: Logical error: Got read request from replica A for unknown stream B. (STID: 5217-5b3d) #110518, open, "Logical error: Got read request from replica A for unknown stream B. (STID: 5217-5b3d)". Your search missed it because it carries the real message in its title, not the
!part.empty()label. - Logical error '!part.empty()' (STID: 2735-47bf) #112049 was closed correctly. It is STID 2735-47bf, not 5217-5b3d, and its stack is the
multiplytype-mismatch one in 197 of 197 rows, so Test03915_exchange_tables_raceregularly fails: race betweenEXCHANGE TABLESandSELECTcauses logical error "Arguments of 'multiply' have incorrect data types" #110133 really is its duplicate. My earlier reply on that issue argued the same thing; the confusion is that the!part.empty()title made it look like it should cover this row too, and it never did.
Your own #111435 already fixed the mislabel at the source, and your master merge here picked it up: b849a6c2 (the #111435 merge, 2026-07-26T22:07:49Z) is not an ancestor of 3084113c but is an ancestor of 32b08ca8. The relabelling is already visible in CIDB - across all rows carrying !part.empty(), 183 before that merge and 1 after, while rows named Got read request from replica A for unknown stream B. went from 50 to 8 for the same STID 5217-5b3d. So on the next run this row should surface under its real message.
The remaining reporter-side half (naming a logical error after query-echoed text in general) is my open #111708.
Your "widespread" characterisation is confirmed. For the real signature over the last 7 days:
| check | hits | distinct PRs | master |
|---|---|---|---|
| Stateless tests (amd_llvm_coverage, ParallelReplicas, s3 storage, parallel) | 76 | 67 | 3 |
ten Stress test (*) / AST fuzzer flavours |
1 each | 1 each | 0 |
Daily 4 to 21 hits, 1 master hit on each of 2026-07-22, 07-26 and 07-27.
Mechanism, for the record: when the aggregate or normal projection short-circuit fires on the initiator with has_parent_parts == false, the optimizer replaces the initiator's ReadFromMergeTree with a prepared NullSource, so initializePipeline never runs and the only empty-stream announce path (ReadFromMergeTree.cpp:4091-4093) is bypassed. The coordinator therefore registers no stream, and a follower's read request hits the throw above. There is an asymmetry that makes it fatal rather than benign: the announce handler drops an unknown stream gracefully, the request handler throws. #111689 extracts that block into announceEmptyReadRangesToCoordinatorIfInitiator() and calls it from all four short-circuit branches; the throw itself is not weakened. Onset traced to #101434.
Server died on the same job is the abort above, not a third failure.
Item 2 - 02465_limit_trivial_max_rows_to_read: no owner, I am taking it
Confirmed: no open issue, no open fixing PR (the only two open PRs mentioning the test are this one and an unrelated PR of mine). Over 30 days CIDB has 4 hits on 4 unrelated PRs (#111968, #109366, #111414, #111278), 0 on master, all four exclusively on Stateless tests (amd_llvm_coverage, ParallelReplicas, s3 storage, parallel).
One correction to the framing: the moved value is a row value, not a rows-read counter. The failing statement is SELECT a FROM t_max_rows_to_read LIMIT 1, and 0 vs 32 is the returned value of column a. In all 4 occurrences the wrong value is exactly 32, never anything else, which is a useful constraint: the table is 100 rows at index_granularity = 4, so 25 marks over 3 replicas puts a work-distribution boundary at mark 8, whose first row is 32. That statement has no ORDER BY, so under parallel replicas any row is a legal answer and whichever replica's segment arrives first wins - the test is asserting an unspecified result, and the always-32 value points at the second replica's first segment rather than at anything random.
I could not reproduce it locally: 145 runs against a 3-replica cluster on a debug build, including the full test file, a multi-part variant, sweeps over max_threads, max_parallel_replicas, parallel_replicas_local_plan, parallel_replicas_mark_segment_size and merge_tree_min_rows_for_concurrent_read, and 60 runs under concurrent load - all returned 0. So the fix will have to be reasoned from the distribution boundary rather than from a local repro, and I will not loosen max_rows_to_read = 20, which is what the test actually measures.
I will send that as its own PR and post the link here. Nothing is needed from you on it.
|
Item 2 follow-up, as promised: #112199 I did reproduce it after all, with the exact CI value. It needed an object-storage server rather The fix makes the asserted output invariant instead of pinning the reader: the statement projects One residual is disclosed there and not fixed: the same statement has a second, unrelated failure |
|
Merged
|
# Conflicts: # tests/queries/0_stateless/04063_part_loading_tree_rollback_reparent.sh # tests/queries/0_stateless/04241_part_loading_tree_rollback_contains.sh # tests/queries/0_stateless/04417_part_loading_tree_rollback_evict_reinsert_contains.sh # tests/queries/0_stateless/04500_part_loading_tree_rollback_tmp_metadata.sh # tests/queries/0_stateless/04624_part_loading_tree_rollback_startup_recovery.sh
|
Merged The single red on The only unresolved review thread is the AI Major about losing the rollback coverage, already dispositioned above — the rewrite is being done in #111922, not here. |
The failure was reported with a CI report link, so record it here as well as in the pull request description. CI report: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=111968&sha=3084113c10b2726a333dc26732034c039ac441ab&name_0=PR&name_1=Stateless%20tests%20%28amd_llvm_coverage%2C%20ParallelReplicas%2C%20s3%20storage%2C%20parallel%29 Pull request the report belongs to: ClickHouse#111968 No change to the tree: the fix and its test edit are in the previous commits.
Picks up @alexey-milovidov's ClickHouse#111968 (3084113, merged 2026-07-30), which deleted the five part_loading_tree_rollback stateless tests. Those tests were never in this branch's base (b361f3f, 2026-07-15); CI injected them from master when it built refs/pull/111169/merge, and their poisoned detached-table metadata is what made Stress test (amd_msan) fail server startup, which in turn got this PR ejected from the merge queue. The tree produced by this merge contains none of them.
Changelog category (leave one):
See #111922 (comment)