Fix global partitioning with Separated handler mode#2293
Merged
jeremydmiller merged 1 commit intomainfrom Mar 12, 2026
Merged
Conversation
…d handlers When global partitioning routes messages to companion local queues and MultipleHandlerBehavior.Separated moves all handlers to sticky handler- specific local queues, the fanout handler logic in HandlerFor(Type, Endpoint) was not triggered because it only activated for non-LocalQueue endpoints. Extend the fanout condition to also apply when the incoming local queue is part of a sharded/global partition topology (UsedInShardedTopology = true), so messages arriving on partition companion queues are correctly relayed to all sticky handler queues. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This was referenced Mar 13, 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.
Summary
NoHandlerForEndpointExceptionwhen combining global partitioning withMultipleHandlerBehavior.SeparatedHandlerGraph.HandlerFor(Type, Endpoint)to also activate when the incoming local queue is part of a sharded/global partition topology (UsedInShardedTopology = true)Problem
When global partitioning routes messages to companion local queues and
Separatedmode moves all handlers to sticky handler-specific local queues:local://partition-a2/(global partition companion queue)endpoint is not LocalQueue— but it IS aLocalQueuethrow new NoHandlerForEndpointExceptionFix
The fanout handler should also be created when the incoming
LocalQueueis part of a sharded topology (not a sticky handler's own queue). TheUsedInShardedTopologyproperty on the endpoint distinguishes partition queues from arbitrary local queues, preserving the existingNoHandlerForEndpointExceptionbehavior for misrouted messages.Test plan
get_an_explanatory_messagewhich validates thatNoHandlerForEndpointExceptionis still thrown for arbitrary unhandled local queuesSupersedes #2292
🤖 Generated with Claude Code