Skip to content

Guard pause listener continuation and shutdown#2242

Closed
Joelgullander wants to merge 2 commits intoJasperFx:mainfrom
Joelgullander:rate-limit-null-guard
Closed

Guard pause listener continuation and shutdown#2242
Joelgullander wants to merge 2 commits intoJasperFx:mainfrom
Joelgullander:rate-limit-null-guard

Conversation

@Joelgullander
Copy link
Copy Markdown
Contributor

@Joelgullander Joelgullander commented Feb 25, 2026

Summary

  • Add unit coverage for null envelope/listener in PauseListenerContinuation.
  • Update RabbitMQ rate-limit E2E to assert the current bug

Suggestion / attempt:

  • Guard PauseListenerContinuation and harden listener shutdown against null/disposing races.

Test plan

  • dotnet test src/Testing/CoreTests/CoreTests.csproj --filter PauseListenerContinuationTests
  • dotnet test src/Transports/RabbitMQ/Wolverine.RabbitMQ.Tests/Wolverine.RabbitMQ.Tests.csproj --filter rate_limited_messages_do_not_throw_when_rescheduled

Cover null envelope/listener in PauseListenerContinuation and assert no NREs in the rate-limit RabbitMQ E2E.

Made-with: Cursor
Handle missing envelope/listener during pause and make listener shutdown more resilient during rapid stop cycles.

Made-with: Cursor
@jeremydmiller
Copy link
Copy Markdown
Member

@Joelgullander I got this with a local rebase + push. The "fix" is in too. Turned out to be a timing issue.

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.

2 participants