mirror of
https://github.com/kvcache-ai/Mooncake.git
synced 2026-11-05 01:17:55 +00:00
[GH-ISSUE #797] [Bug]: 💩💩💩💩💩💩 close blocked without any logging #245
Labels
No labels
ascend
auto-closed
bug
bug
CI/Build
Common
documentation
enhancement
feature request
good first issue
help wanted
high priority
MetaX
nightly-failure
pull-request
PyTorch Backend
question
RFC
Roadmap
stale
Store
Tests
Transfer Engine
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/Mooncake#245
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @ActivePeter on GitHub (Sep 2, 2025).
Original GitHub issue: https://github.com/kvcache-ai/Mooncake/issues/797
Originally assigned to: @xiaguan on GitHub.
Bug Report
💩💩💩💩💩💩 There's always some unexpected error. We found many ways to check each of the error (not provided by Mooncake but supposed to be), but we still can't handle it ourselves because we can't properly close the old one.
Before submitting...
@mumupika commented on GitHub (Sep 2, 2025):
We have consistently encountered with the following problems which severely harms the stability of the system:
worker_pool.cppRDMA encountered with work queue local access violation. We noticed that you provided a Fault Handling mechanism that provides the solution to the signal NIC problem under multi-NIC environment. Can you provide a more specific solutions or suggestions on configurations, i.e., the ways to configure the substitutional RDMA NIC?closeoperation seems blocked and never send a return code to us. And the exceptions were raised by NCCL timeout. Maybe a timeout solution inDistributedStore.close()can be provided?We are eager for your suggestions and sincerely appreciated your patience!
@mumupika commented on GitHub (Sep 2, 2025):
It appears to me that this
local access violation work queue erroroccurs fromIBV_EVENT_QP_ACCESS_ERR. Suggested from NVIDIA's events documentation, this error may caused by:Which may possibly occurred from the user code. I am eagerly waiting for your suggestions! Thanks for your contribution and patience!
@alogfans commented on GitHub (Sep 3, 2025):
In our previous observations, the
local access violation work queue errormay have been caused by either (1) some network cards are unable to use, you can use--disaggregation-ib-deviceto set a whitelist (https://github.com/kvcache-ai/Mooncake/blob/main/doc/en/sglang-integration-v1.md); or (2) some inference processes crashed during execution.@mumupika commented on GitHub (Sep 3, 2025):
@alogfans Hello, Thanks for your patient and advice above!
We have done several reproduces that after transfer failed by
local access violation work queue error, we use a seperate thread to executeDistributedStore.close(), in order to avoid from the crash. But the process missed that... It seems that was blocked by the cpp backend and when torch send signal 15 SIGTERM to this process, thestore_py.cpphandled this signal and clean the resources. Did your team encountered with this problem before or this is also a NETWORK PROBLEM? Thanks for your patients and suggestions!And I am apology for the logs below... The machine is not connected to internet so I have to photo it...
PID 3555053 alives here
We start the closing thread like this after we encountered
local access violation work queue error...nonblocking calls here since we use a thread in the background and wait for limited time for the thread to join
(Apologies for watermarks that only pieces of log were typed from picture QAQ)
And I cannot see the PID alive log in our python interface after that until SIGTERM is sent
Have your teams ever encountered with
DistributedStore.close()blocked the output log on the above python process? Is there any suggestions available? Sincerely thanks for your advice!@alogfans commented on GitHub (Sep 3, 2025):
@mumupika I didn't encounter such error before. In the side of Mooncake Transfer Engine, a close operation only destroy all rdma resources, which should not take too much time. In the Mooncake Store side, can @ykwd respond on it?
Failure to shutdown pervious instance may be lead by hooking the SIGTERM signal (but I didn't use it in Transfer Engine). Can you try other signals?
@mumupika commented on GitHub (Sep 3, 2025):
Thanks! But it seems that the SIGTERM was sent by NCCL when the timeout reaches and the programs above is out of my control QAQ (which is managed by other teams). I will update as soon as I received new logs and training results from others.
Sincerely appreciate your patience and reply! @alogfans
@ykwd commented on GitHub (Sep 3, 2025):
Me neither. This is strange.
@xiaguan commented on GitHub (Sep 15, 2025):
https://github.com/kvcache-ai/Mooncake/pull/840, you could try this
@xiaguan commented on GitHub (Sep 17, 2025):
fixed by #840 , close this