Repository navigation
Bump delta-kernel-rs to fix a block_on hang when no thread can be spawned - #130544
Conversation
…wned delta-kernel's `block_on` handed the task result back through `tokio::task::spawn_blocking`. When the process could not create a thread, that call panicked after queueing the closure that owns the result sender, so the sender was never dropped and the caller's `recv()` waited forever (the query ignored KILL QUERY). The fix sends the result directly from the async task. The new pin is the merge commit of ClickHouse/delta-kernel-rs#19, a cherry-pick of delta-io/delta-kernel-rs#3202 onto `ClickHouse/v0.23.0`. It changes only `kernel/src/engine/default/executor.rs`; no Cargo manifest or lock change. Closes ClickHouse#128033 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Internal second-model review: adjudication log (click to expand)Pre-publication review by an independent model (engine: codex; 0 findings) plus my own cold review (0 blocker, 0 major).
Severity: ❌ blocker / Session id: cron:clickhouse-review-slot-8:20261110-160200 |
Pre-PR validation gate (click to expand)
Session id: cron:clickhouse-impl-slot-41:20261110-145400 |
|
cc @SmitaRKulkarni @Algunenano, could you review this and add the |
|
Workflow [PR], commit [6bb9871] Summary: ❌
AI ReviewSummaryPR #130544 updates ClickHouse-Specific Rule Notes💡 The Finish Workflow report reports only the missing ClickHouse test. The PR documents why deterministic server-level coverage is impractical and requests the Final Verdict✅ Approve |
Build profile diff (arm_release)Comparing ✅ No significant changes. Binary sizes
The official master build is compiled with Slowest function optimization changes (ThinLTO)Median per-function time ratio to the master baseline:
Compile time of recompiled translation units6 translation units recompiled, 4 s compile time in total, 6 of them have a recent master baseline. |
CI finish ledger - 09e9747Every failure below has an owner: a fixing PR (mine or external), or a full-effort fix task
Session id: cron:clickhouse-maint-slot-15:20261110-204300 |
Resolve the contrib/delta-kernel-rs submodule conflict by bumping to a commit that carries both master's 'ffi: pass the target platform to cbindgen' change and the block_on handoff deadlock fix (ClickHouse#3202). Co-Authored-By: Claude Opus 4.8 <[email protected]>
The previous pin `c915e4c7` was the head of the fork PR, not the branch tip `d10c6605` (its merge commit). The tip also carries the `block_on` handoff fix from ClickHouse#130544. Co-Authored-By: Claude Opus 5.5 <[email protected]>
b083ddd
Resolve the `contrib/delta-kernel-rs` conflict with ClickHouse#130544 by keeping the tip of `ClickHouse/v0.23.0` (`d10c6605`), which already contains the `block_on` handoff fix and the cbindgen target-platform change. Co-Authored-By: Claude Opus 5.5 <[email protected]>
|
@PedroTadim could this get #128033 was hit on 26.3.12.3, and the 26.3, 26.8, 26.9 and 26.10 branches still pin |
Closes: #128033
Related: ClickHouse/delta-kernel-rs#19
Related: delta-io/delta-kernel-rs#3202
Changelog category (leave one):
Changelog entry (a user-readable short description of the changes that goes into CHANGELOG.md):
Fixed
DeltaLakequeries hanging forever, without reacting toKILL QUERY, when delta-kernel could not create the thread that hands a result back (for example at a container PID limit).Description
On 26.3.12.3, a
DeltaLakequery hangs forever and ignoresKILL QUERYwhen the server cannot create a new thread: in #128033 aCREATE TABLE ... ENGINE = DeltaLakerun byDDLWorkerblocked for 26 hours at a Kubernetes PID limit and stalled the distributed DDL queue. Master and 26.8 to 26.10 pin the same kernel code.Cause: delta-kernel's
block_onhanded every result back throughtokio::task::spawn_blocking. When no thread can be created, tokio panics after queueing the closure that owns the result sender, so the sender is never dropped and the caller'srecv()waits forever. Every synchronous kernel call goes throughblock_on.Change:
contrib/delta-kernel-rsmoves from88ff5a94to86762ee5, the merge commit of ClickHouse/delta-kernel-rs#19 (a cherry-pick of delta-io/delta-kernel-rs#3202), which sends the result directly from the async task. It touches onlykernel/src/engine/default/executor.rs, with no Cargo manifest or lock change. The fork branch tip carries unrelated changes, so the pin is the fix commit, not the tip.Validation: a standalone kernel program that lowers
RLIMIT_NPROCbefore callingblock_onhangs on88ff5a94(panicOS can't spawn worker thread, caller blocked infutex_wait) and returns the result on86762ee5, in 6 of 6 runs each. The server builds with the new pin, and 59 local DeltaLake stateless tests pass. No ClickHouse test is added: running a server out of threads at exactly this point is not deterministic in a functional test.#130062 moves the pointer to
c694ca3e, which already contains this commit.🤖 Generated with Claude Code
Workflow [PR]
Sync PR [sync-upstream/pr/130544]
Version info
26.11.1.2124-master(included in26.11and later)