Repository navigation
Conversation
876e478 to
d6e75b9
Compare
|
Workflow [PR], commit [0e89a266] |
f08f59b to
f6c5819
Compare
|
hmm, It is also sometimes failing in master, but will double-check whether it is not related |
eff7a8f to
d8690fc
Compare
|
Workflow [PR], commit [fc8cfab] Summary: ✅
AI ReviewSummaryThe PR saves the Keeper metadata version alongside each replicated table definition and restores it through atomic version bumps and replicated Findings❌ Blockers
Missing context / blind spots
Final VerdictStatus: ❌ Block Synchronize the recovery status across the new restore reader and all writers, including |
417302e to
bdfbb08
Compare
37706cb to
1d0753a
Compare
|
Fails:
|
|
Could someone pls take a look? I think I resolved all issues here, I see no related test fails cc @GrigoryPervakov (tagging you as you were the first visitor here 🙃) |
…ary, flaky check)
RESTORE of a table defined as `AS file(...)` with a missing file failed with `CANNOT_STAT` in 05339_backup_table_function_table_without_source, because applying the saved metadata version cast the storage with `DeferredTable::Load`, which runs the table function behind a `StorageTableFunctionProxy`. Load only a lazily loaded table, as `BackupUtils` does. https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=79412&sha=19235e5f717b673bd3b84fdbbe5a507b410ba136&name_0=PR&name_1=Fast%20test ClickHouse#79412
`Stress test (amd_tsan)` on ClickHouse#79412 failed with `Cannot start clickhouse-server`: the restart could not load `test_7.in_subquery_ttl__fuzz_2`, a server-side AST fuzzer copy of the test's `TTL ... WHERE x IN (SELECT x FROM in_subquery_dist)` table, because `in_subquery_source` behind the `Distributed` table had been dropped (`Code: 60 ... Unknown table expression identifier`). Stress runs the test in the shared database `test_7`, which is loaded again on restart. The fuzzer copy is never dropped by the test and keeps `in_subquery_dist` alive, while `DROP TABLE in_subquery_source` succeeds. An ignored `DROP` (`ignore_drop_queries_probability = 0.2`) of `in_subquery_ttl` and `in_subquery_dist` leaves the original table in the same state; the fuzzer's own internal `DROP` replays mostly hide that path today, so pinning only the fuzzer would expose it. Set `ast_fuzzer_any_query = 0` and `ignore_drop_queries_probability = 0` at the top of the file, as ClickHouse#124548 did for 05321. `SELECT`s are still fuzzed. The leading `DROP TABLE IF EXISTS` lines now also drop dependents first, like the cleanup at the end: an in-place retry of a run that failed before its cleanup otherwise drops `in_subquery_source`, then stops on `in_subquery_dist`, which the leftover `in_subquery_ttl` depends on, and leaves the same unloadable table. Validated on a master debug build with restarts under `async_load_databases = false`: a surviving fuzzer copy, and the original table with only the fuzzer pin, both fail with the CI error, and so does a retry of the previous version of the file over a run cut before its cleanup (it stops with `HAVE_DEPENDENT_OBJECTS` on `in_subquery_dist`). With the change, 30 runs with the fuzzer on and every `DROP` ignored leave no tables, a run cut before the cleanup restarts cleanly, a retry over it drops every table, and 50/50 randomized runs pass. CI report: https://s3.amazonaws.com/clickhouse-test-reports/praktika.html?PR=79412&sha=fabad86e8e451c8e584218575118d6b2c258191d&name_0=PR&name_1=Stress%20test%20%28amd_tsan%29 Failing job: https://github.com/ClickHouse/ClickHouse/actions/runs/39813182646/job/120003879638 PR: ClickHouse#79412 Co-Authored-By: Claude Opus 5.5 <[email protected]>
The private CI replaces `ReplicatedMergeTree` with `SharedMergeTree` in stateless tests, and these tests check the metadata version handling of `StorageReplicatedMergeTree` on `BACKUP` and `RESTORE`, so their results differ there (CH Inc sync: ClickHouse/clickhouse-private#29473). Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
🕵 The |
…tach Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@alexey-milovidov the CI is green and there are no conflicts |
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Save table metadata_version on BACKUP and restore it on RESTORE. Resolves #67457
Documentation entry for user-facing changes
Details
Handle table metadata_version properly on BACKUP, RESTORE. Resolves #67457
Workflow [PR]
Sync PR [sync-upstream/pr/79412]