Skip to content

Adopt JasperFx 2.57.0 (#4167) - #4169

Merged
jeremydmiller merged 1 commit into
mainfrom
gh-4167-adopt-jasperfx-2.57
Aug 27, 2026
Merged

jeremydmiller merged 1 commit into
mainfrom
gh-4167-adopt-jasperfx-2.57

Conversation

@jeremydmiller

Copy link
Copy Markdown
Member

Picks up JasperFx/jasperfx#714 — a Block no longer runs its action on the publisher's thread — and closes out the fix side of #4167.

What this gets us

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. Measured against 2.56.0, publishing a burst of 20 into a queue configured with MaximumParallelMessages(5):

after publishing 20: processed=21, inline-on-publisher=20

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:

channel net9.0 net10.0
Unbounded (buffered local queue, GH-3287) inline inline
Bounded (broker BufferedReceiver, DurableReceiver) not inline inline

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 Timer plus worker tasks per duplicate BatchingProcessor; 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:

  • CoreTests 2664 passed / 2 skipped / 0 failed
  • wolverine.slnx clean under -c Release -f net9.0, after dotnet nuget locals http-cache --clear and a full restore

🤖 Generated with Claude Code

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>
@jeremydmiller
jeremydmiller merged commit 9125686 into main Aug 27, 2026
38 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant