mirror of
https://github.com/kvcache-ai/Mooncake.git
synced 2026-11-05 01:17:55 +00:00
[GH-ISSUE #4213] [CI] FilereadWorkerPoolTest.AcceptsTypedTrailingWhitespaceAndCaches is flaky on the 1s teardown window #1058
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#1058
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 @he-yufeng on GitHub (Sep 18, 2026).
Original GitHub issue: https://github.com/kvcache-ai/Mooncake/issues/4213
FilereadWorkerPoolTest.AcceptsTypedTrailingWhitespaceAndCaches(mooncake-store/tests/fileread_worker_pool_test.cpp) fails intermittently in theCTest unit testsjob on threads-teardown timing.Data points (two consecutive failures on the same PR, different heads, with nothing related changed in between):
[ FAILED ] FilereadWorkerPoolTest.AcceptsTypedTrailingWhitespaceAndCaches (1000 ms)—fileread_worker_pool_test.cpp:76,WaitForProcessThreadCount(baseline)returned false.Build & Test (Linux)from the same day passes the test (run 35241301803), so this is load-sensitive, not deterministic.Mechanism:
WaitForProcessThreadCountpolls for exactly 1 second (1 ms sleep loop) for the destroyed pool's two worker threads to exit. The failing run's total test time is exactly 1000 ms, i.e. the deadline expired before teardown completed on a loaded runner. The test was restructured recently by #4166, so the 1 s margin is new-ish and unproven under CI load.This is the same timing-margin flake family as #4136, with an even tighter window. Suggest either widening the wait to a generous bound (e.g. 10 s; the test only cares that teardown eventually returns to baseline) or making the pool teardown deterministic (join before the assertion instead of racing a fixed window).
@github-actions[bot] commented on GitHub (Sep 18, 2026):
Thanks for opening this issue, @he-yufeng!
40085740A maintainer will triage this when possible. To help us respond faster, please include:
Useful links: Documentation · Contributing guide
@ykwd commented on GitHub (Sep 18, 2026):
Thanks for reporting this. It is addressed in this pr: https://github.com/kvcache-ai/Mooncake/pull/4210
@ToLiveAndLove commented on GitHub (Sep 20, 2026):
Another data point on an unrelated PR (#4221, TENT-only change): the same case failed in run 35496873470 with
ProcessThreadCount()= 6 vs expectedbaseline + 2= 4 atfileread_worker_pool_test.cpp:74, then the teardown wait at line 76 timed out. It reproduced identically across three heads of that PR while alltent-ci/build/format checks stayed green, consistent with the etcd/glog background-thread root cause already noted in #4210 and #4226.@quantz8a commented on GitHub (Sep 23, 2026):
Closing as fixed by #4210 on
main(same flake class: assert pool worker count instead of process-wide/procthread count). Our follow-up #4226 is closed as redundant.