Repository navigation
Conversation
zkf-qwj
requested review from
alogfans,
chestnut-Q,
doujiang24 and
staryxchen
as code owners
November 5, 2026 11:32
jfeng18
added a commit
to jfeng18/Mooncake
that referenced
this pull request
Nov 9, 2026
* upstream/main: (28 commits) [Store] Remove unreachable dead code in reserved OpLog paths (kvcache-ai#5043) [Store][BUGFIX]: Avoid repeated NoF cleanup for unregistered buffers (kvcache-ai#5301) [Store] Fence the local disk tier on the first unrecoverable disk error (kvcache-ai#4490) [Store] Add opt-in aligned O_DIRECT bucket writes (kvcache-ai#4820) [Store] posix support Read DFS replicas straight into host buffers (kvcache-ai#5201) [TENT] Pipeline RDMA slice preparation with worker posting (kvcache-ai#5277) [TE] HipTransport: submit copies asynchronously, one stream and event per device (kvcache-ai#4953) [Misc] Add staryxchen as a HIP transport code owner (kvcache-ai#5351) [Doc] nvlink_intra works over PCIe P2P, not only NVLink (kvcache-ai#5266) [Bugfix][TENT] Propagate io_uring staging copy failures (kvcache-ai#5335) [Bugfix][TENT] Make UB batch submission all-or-nothing (kvcache-ai#5274) Add store rs tone tests (kvcache-ai#5282) [EP] Validate XPU Buffer constructor arguments (kvcache-ai#5329) [EP] Decouple PG builds and add TCPStore bootstrap (kvcache-ai#5312) [Bugfix][PG] Serialize RPC socket operations and drain shutdown (kvcache-ai#5098) [EP] Enable the native XPU EP over RDMA (kvcache-ai#5207) [Store] Use the AWS default credential chain when S3 static keys are unset (kvcache-ai#5303) [Bugfix][Store] Register dummy query RPC handlers in mooncake_client (kvcache-ai#5200) [Store] Preserve variadic RPC compatible fields with NDEBUG (kvcache-ai#5269) [TransferEngine] Avoid false CQ timeout diagnostics after idle periods (kvcache-ai#5281) ...
11 of 20 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Fixes #5205.
This PR fixes false-positive
CQ completion timeout diagnosticerrors that can occur after an RDMA worker pool has been idle.When the worker pool is idle, the polling worker may park and
last_poll_ts_ns_stops advancing. If a new transfer is posted after a long idle period, the monitor can observe both:poll_gap_msinherited from the preceding idle period.The previous logic treated the stale poll gap alone as a stalled poller, even when the tracked slices had only been posted for a few milliseconds.
The new logic separates two conditions:
The diagnostic now reports:
cq_nonzero_age_ms: how long the CQ has continuously contained outstanding work;no_progress_age_ms: how long the processed-slice counter has remained unchanged;poll_gap_ms: how long it has been since the last CQ polling pass.The timeout decision was extracted into a small stateful helper so it can be tested deterministically without RDMA hardware or real-time sleeps.
Module
mooncake-transfer-engine)Type of Change
How Has This Been Tested?
The added hardware-independent unit tests cover:
Test commands: