Repository navigation
Conversation
EventForwardingRouter filtered the explicit and local routes for IEvent<T> to MessageRoute, which silently dropped the ShardedMessageRoute a partitioned topology returns. Forwarded events then ran on their conventional local queue instead of the topology's slot queues. Keep every IMessageRoute. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Member
|
Hey @carcer, are you okay with this only landing in 7.0, or would you want it back ported? And thanks Chris! |
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.
Fixes #6115
EventForwardingRouterfiltered the explicit and local routes forIEvent<T>toMessageRouteonly. That silently dropped theShardedMessageRoutea partitioned topology returns, so forwarded events skipped partitioning. This change keeps everyIMessageRoute. The router is shared, so the fix covers Marten, Polecat and Fisher.Tests:
MartenTests.Bugs.forwarded_events_to_partitioned_local_messagingcovers:MessagesImplementing<IEvent<T>>();Message<IEvent<T>>();Both matching cases fail on main, sending events to
local://ieventpartitionedfeatureenabled/, and pass with the fix. The existing event-forwarding test classes in MartenTests (11 classes, 23 tests, net10.0) still pass, includingevent_forwarding_routing_bug, which covers the 2024 explicit-routing fix. I haven't run the Polecat or Fisher suites.🤖 Generated with Claude Code