Repository navigation
Sync a batch of private changes to public files - #124599
Conversation
|
Workflow [PR], commit [49ca36c] Summary: ✅
AI ReviewSummaryThis PR syncs a batch of private changes into public sources: query-cancellation blocker propagation into thread-pool jobs, shared-catalog Findings
Final VerdictLLVM Coverage ReportMeasured on commit 49ca36c.
Changed lines: Changed C/C++ lines covered: 44/55 (80.00%) · Uncovered code |
…d write thread Sync from private: the background thread now creates its own blocker when the caller had one, so a cancelled merge cannot throw from `MergeTreeTransaction::afterCommit`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Tags such as `no-shared-merge-tree`, `no-shared-catalog` and `no-distributed-cache` were added in private only, for tests that do not apply to cloud-only configurations. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…mutation applied Sync from private: lower the stress timeout so the drain after it fits the test timeout on slow storage, and assert that at least one `ALTER UPDATE` reached the visible data. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…tualColumns` Sync from private: constant virtual columns are taken from the data part only when it is a loaded part, so the cloud-only borrowed part info no longer returns early. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…backup Sync from private: the cloud-only masking policy entity was missing in `AccessRestorerFromBackup::getRequiredAccess`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…mporary files Sync from private: server availability is checked by the temporary file holder itself, and the error is `CANNOT_USE_DISTRIBUTED_CACHE` instead of `LOGICAL_ERROR`. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sync from private: also set the Keeper component for the query. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Sync from private: the mismatch comes from data read from disk, so it is not a logical error. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ache Sync from private: a server of another version may keep its own files there, and opening one as a directory failed the whole load. Co-Authored-By: Claude Opus 5.5 <[email protected]>
b1dd92f to
49ca36c
Compare
… mask `StringBytesUniqImpl::process` kept a 32-byte `UInt64 mask[4]` on the stack and, for every row, zeroed it with one 32-byte store, did a load-or-store per byte and reloaded all 32 bytes for the popcount. On aarch64 the speed of that per-row store/reload depends on the alignment of `mask`, which is decided by the stack depth at the call, i.e. by unrelated caller frames: `executeImpl` is identical in 8 arm builds, 4 fast and 4 slow, and the slow ones are exactly those where `mask` lands 32-byte aligned (depth at entry mod 32 = 16). ClickHouse#124599 (thread pool worker frame 592 -> 608 bytes) flipped master to fast, ClickHouse#112705 (`ExpressionTransform::transform` 400 -> 480 bytes) flipped it back to slow, so `string_bytes_functions #0` runs at 0.050 or 0.061 s per arm binary and is reported `slower` on PRs whose binary draws the other mode than its reference (21 PRs plus master in 30 days on arm_release, none on amd_release). Count with a per-call table of the last row number in which each byte value occurred instead. It is zeroed once per `executeImpl` call and never cleared between rows, so the only per-row stack traffic left is the 8-byte, 8-aligned load and store of the table entry per byte. `alignas` on `mask` was rejected: the 32-byte-aligned placement is the slow one, so it would pin every build to the slow mode. A register-resident mask was measured 1.2-1.85x slower on x86. `FunctionStringBytes::executeImpl` now calls `process` on a local `Impl`, and `StringBytesEntropyImpl::process` becomes a `const` member; entropy's machine code is unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Move a batch of changes made to public files in private to public, to reduce the drift between both repositories. Each commit is a separate change:
QueryCancellationBlockerinto the distributed cache background write thread01076_parallel_alter_replicated_zookeeperand check that a mutation appliedIMergeTreeReader::fillVirtualColumnsCREATE MASKING POLICYwhen restoring masking policies from a backupUNDROP TABLEon aShareddatabase through the shared catalogINCORRECT_DATAon mismatched internal columns ofDynamicChangelog category (leave one):
Workflow [PR]
Sync PR [sync-upstream/pr/124599]
Version info
26.10.1.1879-master(included in26.10and later)