Sidekiq worker on Spinel: jobs lost when a fetch's read deadline fires on a full queue (unreproduced)
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- rust
- Domain
- backend, distributed-systems
Research direction
Start with the Sidekiq worker's fetch path, especially sp_net and the scheduler, and review #1047 and #1981 for the report and timeout context. Run a 100,000-job soak on current main with Spinel master and spinel-redis v0.3.3 at several thread counts, including arm64/macOS, and compare processed jobs with the queued count. Done means the soak shows no losses and the issue is closed, or the loss is reproduced and fixed.
Written by the indexing model from the issue text.
Description
rubys reported on #1047 (2026-10-26) that several 100,000-job runs of the Sidekiq worker on Spinel ended with 1 to 4 jobs never run and no failure logged. Each such run logged Redis fetch failed: redis: no reply within 3.0s on several threads at the same moment, while tens of thousands of jobs were still queued. By then Redis has already popped the job, so closing the connection loses it. CRuby never showed it.
We haven't reproduced it: ten Spinel runs of 100,000 jobs at 1 to 100 threads on Linux x86_64 (4 CPUs, Spinel 6577e8393) lost nothing. The report suggests a read deadline firing while BRPOP already has its reply, in sp_net or the scheduler. The repro shape (thread count, machine) was never shared.
Done when either:
- a soak on current main (Spinel master, spinel-redis
v0.3.3, the 3 s timeouts from #1981) runs 100,000+ jobs at several thread counts, including on arm64/macOS, and checks the processed count against the job count without loss, and this is closed; - or the loss is reproduced and fixed. A popped job that fails to return should be pushed back, or the deadline shouldn't fire once the reply has arrived.
From the Sidekiq roadmap, #1047.
· Generated with Claude Code · Claude Opus 5.5 ·
- Dominant language
- Rust
- Stars
- 504
- Forks
- 47
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from rubys/roundhouse
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
rubys/roundhouse#2473 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
rubys/roundhouse#2454 · 1 comment ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
rubys/roundhouse#2281 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
rubys/roundhouse#1917 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
rubys/roundhouse#1807 ·
All issues in rubys/roundhouse
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Test connection's password prompt says the password is never saved, also for a keychain profileOpenbug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
area: settings bug Haiku review: no-score ui
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
MMFoundation/WallpaperMachine#346 ·
Maintainers usually reply within 1 day
-
bug mod: quantum info
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Qiskit/qiskit#17699 · 2 comments ·
Maintainers usually reply within 1 day
-
Make the HTTP server's keep-alive and headers timeouts configurablePossibly taken @mattgodbolt claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
compiler-explorer/compiler-explorer#9902 ·
Maintainers usually reply within 1 day