Sidekiq worker on Spinel: jobs lost when a fetch's read deadline fires on a full queue (unreproduced)

Open
#2,467 0 comments 0 reactions 0 assignees View on GitHub

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

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rubys/roundhouse

All issues in rubys/roundhouse

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.