Repository navigation
Backport #117034 to 26.7: Keep Distributed spool files after transient split errors - #118140
Conversation
…ent split errors
|
Workflow [BackportPR], commit [51abcf0] Summary: ✅ |
On 26.7 the materialized view inner query is analyzed by the old analyzer,
which rejects a non-trivial `ARRAY JOIN` value without an alias with
`ALIAS_REQUIRED` ("No alias for non-trivial value in ARRAY JOIN"). The test
therefore never reached the intended `ARGUMENT_OUT_OF_BOUND` transient error
and failed on both integration shards. Adding `AS r` keeps the query valid
under both analyzers and restores the scenario the test exercises. Same fix
as on the 26.3 backport (#118138).
CI: https://s3.amazonaws.com/clickhouse-test-reports/json.html?PR=118140&sha=fb2738e337fba925152ab28603a23fbb26c034a5&name_0=BackportPR&name_1=Integration%20tests%20%28amd_tsan%2C%201%2F6%29
Co-Authored-By: Claude Fable 5.1 <[email protected]>
|
Heads-up before merging: this backport also carries the regression tracked in #118153 — after #117034, Suggest either waiting for the #118153 fix and backporting both together, or noting the known regression in the release notes for this branch. |
`DistributedAsyncInsertBatch::recoverBatch` treated a twin in the `broken/` directory as proof that every file listed before it in `current_batch.txt` had been acknowledged, and finalized them with `markAsSend`. That inference only holds for servers with ordered split retries. The previous `sendSeparateFiles` skipped a file after a transient error and continued with the next one, so a server being upgraded can leave an unsent file in front of a quarantined one. Recovery then deleted rows that never reached any shard. Keep such files and let the normal queue resend them: the missing quarantined member already makes `recoverBatch` return `false`, and the surviving files are processed from `pending_files`. Duplicates are possible, data loss is not. The recovery test now models the pre-upgrade state and asserts that the unsent predecessor is delivered. Closes: #118153 (cherry picked from commit b4f8ebf)
|
🕵 Confirmed, and thank you for the heads-up. The 26.7 base still has the old Following the "backport both together" suggestion, this PR now carries the fix as an extra commit (6c07cae, the same change as on the 26.3 backport #118138): the broken-twin inference is removed from |
Original pull-request #117034
This pull-request is a last step of an automated backporting.
Treat it as a standard pull-request: look at the checks and resolve conflicts.
Merge it only if you intend to backport changes to the target branch, otherwise just close it.
The PR source
The PR is created in the CI job
Version info
26.7.7.31