Repository navigation
Adopt JasperFx 2.57.0 (#4167) - #4169
Merged
Merged
Conversation
Picks up #714: a Block no longer runs its action on the publisher's thread. Block built its channel with AllowSynchronousContinuations = true, so a reader parked in WaitToReadAsync was resumed by TryWrite on the publishing thread, and Post() executed the action inline instead of enqueuing it. For Wolverine that meant a buffered local queue got no parallelism at all after its workers went idle: a burst of 20 published messages all ran inline and serialized on the publishing thread, and that thread -- a broker listener loop, an HTTP request -- stalled for the full duration of each handler. Adds the local-queue reproduction from GH-4167 as this bump's acceptance test. It was deliberately held out of #4168 because it cannot pass against 2.56.0 and would have made CI red; it passes from 2.57.0 onward. Note the reported ".NET 10 regression" framing is only half right, and the test comments record why: an UNBOUNDED channel (what a buffered local queue uses, GH-3287) ran continuations inline on every runtime. dotnet/runtime#116021 changed the BOUNDED case, which is what broker-backed BufferedReceivers and DurableReceiver use. The companion Wolverine fix for the batching race this exposes is already on main (29d49a6), so this bump is safe to take. Verified against the published 2.57.0 packages, not a local build: CoreTests 2664 passed / 2 skipped / 0 failed, and wolverine.slnx clean under -c Release -f net9.0 after a cleared HTTP cache and full restore. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This was referenced Aug 28, 2026
This was referenced Sep 4, 2026
This was referenced Sep 11, 2026
This was referenced Sep 14, 2026
This was referenced Sep 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Picks up JasperFx/jasperfx#714 — a
Blockno longer runs its action on the publisher's thread — and closes out the fix side of #4167.What this gets us
Blockbuilt its channel withAllowSynchronousContinuations = true, so a reader parked inWaitToReadAsyncwas resumed byTryWriteon the publishing thread, andPost()executed the action inline instead of enqueuing it.For Wolverine that meant a buffered local queue got no parallelism at all after its workers went idle. Measured against 2.56.0, publishing a burst of 20 into a queue configured with
MaximumParallelMessages(5):All 20 ran inline, serialized on the publishing thread — and that thread (a broker listener loop, an HTTP request) stalled for the full duration of every handler. Against 2.57.0 the same burst reports
inline-on-publisher=0.The held-out acceptance test
local_queue_idle_wakeup_tests— the reproduction from #4167 — lands here. It was deliberately kept out of #4168 because it cannot pass against 2.56.0 and would have made CI red. It fails on 2.56.0 and passes from 2.57.0 onward, so it is the acceptance test for this bump rather than a test that merely happens to be green.On the ".NET 10 regression" framing
Only half right, and the test comments now record why:
BufferedReceiver,DurableReceiver)An unbounded channel ran continuations inline on every runtime, so local queues were never a net10-specific problem. What dotnet/runtime#116021 actually changed is the bounded case.
Safety
The Wolverine-side fix for the batching race this exposes is already on main (29d49a6, #4168). Taking this bump without that commit would fragment batches and leak a
Timerplus worker tasks per duplicateBatchingProcessor; with it, this is safe.Verification
Against the published 2.57.0 packages, not a local build — DLL hash in the test output confirmed identical to the NuGet package and different from 2.56.0:
CoreTests2664 passed / 2 skipped / 0 failedwolverine.slnxclean under-c Release -f net9.0, afterdotnet nuget locals http-cache --clearand a full restore🤖 Generated with Claude Code