[sync/server] wtc race maybe cause zero worker thread
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- rust
- Domain
- networking
Research direction
Start in src/sync/server.rs at the linked lines around 111-112 and reproduce the race by adding the reported 1-second sleep before line 112. Trace accepted socket handling and worker-thread creation, then verify that every accepted socket fd has at least one worker thread and that the reproduction no longer leaves it unserved.
Written by the indexing model from the issue text.
Description
Description of problem
wtc race maybe cause zero worker thread here.
https://github.com/containerd/ttrpc-rust/blob/152ac12c30f65b79407d4411c40d8c86bc5ae949/src/sync/server.rs#L111
could reproduce it by add sleep 1s before
https://github.com/containerd/ttrpc-rust/blob/152ac12c30f65b79407d4411c40d8c86bc5ae949/src/sync/server.rs#L112
Expected result
There is at least one worker thread for the accepted socket fd.
Actual result
Mabye there is no worker thread for the accepted socket fd.
- Dominant language
- Rust
- Stars
- 374
- Forks
- 64
- Avg merge
- 3d 5h
- Merged PRs (30d)
- 6
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 containerd/ttrpc-rust
-
Async server reorders and drops client-stream DATA framesPossibly taken @shvbsle claimed this 19 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 15/100
containerd/ttrpc-rust#340 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 72/100
containerd/ttrpc-rust#338 ·
-
Difficulty 5/5 Over a week Newbie friendliness 35/100
containerd/ttrpc-rust#317 · 1 comment ·
-
Add single connection support to ServerPossibly taken @KarstenB claimed this 204 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 42/100
containerd/ttrpc-rust#293 ·
-
Can the asynchronous client connect operation support asynchronous mode to avoid connect blocking?Open
Difficulty 4/5 3-5 days Newbie friendliness 35/100
containerd/ttrpc-rust#265 · 1 comment ·
All issues in containerd/ttrpc-rust
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 79/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
longbridge/nsh#4201 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
moq-dev/moq#10463 · 1 comment · 1 reaction ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day