You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The shared SendTracing pool has a fixed retention capacity of 64 states (src/Relayer/Telemetry/SendTracing.cs:26, Rent at 173 and Return at 183). Rent allocates a new State when all slots are busy; Return drops a state when every slot is full. A steady workload with more than 64 overlapping traced sends therefore allocates State objects and their arrays on every burst, even after warm-up. This is Relayer-owned state, separate from the Activity allocations allowed by the telemetry contract.
Reproduction:
Enable an ActivityListener for an isolated MessageTracing.Source.
Construct SendTracing with a deterministic send delegate held behind a completion gate.
Start 128 overlapping sends, release the gate, and await all sends.
Repeat after warm-up and measure allocations. Only 64 states can be retained for the next burst.
Expected: retain the observed concurrency high-water mark without introducing per-message locks, or use another measured allocation-free design. The existing segmented pools in SendRoute and SenderPool provide a local pattern; the Kafka producer implementation in #125 also follows that pattern.
Acceptance criteria:
Add deterministic coverage with more than 64 overlapping single and batch sends; verify warm-up eliminates Relayer state allocations and that states remain exclusively owned until completion.
Recorded #143 as the native prerequisite for #131's PR #148. The earlier Performance run 41351870604 has finished; its missing-harness failure was fixed by rebasing #148 to current main. Claude and Codex both approve current head 2b519c0.
The remaining required-CI failure is the Testcontainers resource-reaper collision tracked by #143 and fixed by #149. Blocker-first handoff attempted to acquire pr-149, but another worker holds it. No additional blocker comment was added to #148, whose latest loop comment already records this condition. After #149 lands, incorporate its fix into #148 and repeat current-head draft review before ready CI.
Activity
fix: skip atomic reservations for busy tracing slots (#131)
fix: retain send tracing states above 64 concurrent sends (#131)
fix: skip atomic reservations for busy tracing slots (#131)
thomhurst commentedon Nov 1, 2026
Recorded #143 as the native prerequisite for #131's PR #148. The earlier Performance run 41351870604 has finished; its missing-harness failure was fixed by rebasing #148 to current main. Claude and Codex both approve current head 2b519c0.
The remaining required-CI failure is the Testcontainers resource-reaper collision tracked by #143 and fixed by #149. Blocker-first handoff attempted to acquire pr-149, but another worker holds it. No additional blocker comment was added to #148, whose latest loop comment already records this condition. After #149 lands, incorporate its fix into #148 and repeat current-head draft review before ready CI.
fix: retain send tracing states above 64 concurrent sends (#131)
fix: skip atomic reservations for busy tracing slots (#131)
Retain SendTracing state above 64 overlapping sends (#148)