Failing test: global partitioning + Separated mode#2292
Closed
jeremydmiller wants to merge 1 commit intomainfrom
Closed
Failing test: global partitioning + Separated mode#2292jeremydmiller wants to merge 1 commit intomainfrom
jeremydmiller wants to merge 1 commit intomainfrom
Conversation
…andlerForEndpointException When multiple global partitions are configured for the same message types with MultipleHandlerBehavior.Separated, messages routed to the global partition's companion local queues fail with NoHandlerForEndpointException. The root cause is in HandlerGraph.HandlerFor(Type, Endpoint): the fanout handler logic only activates when `endpoint is not LocalQueue`, but global partition companion queues ARE LocalQueues. Since Separated mode moves all handlers to sticky ByEndpoint chains bound to handler-type-specific local queues, no handler matches the global partition local queue, and the fanout path is skipped. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2 tasks
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
MultipleHandlerBehavior.SeparatedthrowsNoHandlerForEndpointExceptionRoot Cause Analysis
When
Separatedmode is active, all handlers are moved to stickyByEndpointchains bound to handler-type-specific local queues (e.g.,local://partitionhandlerone/). Global partitioning routes messages to companion local queues (e.g.,local://partition-a2/).In
HandlerGraph.HandlerFor(Type, Endpoint)(line 196), the fanout handler logic has this guard:The fanout handler only activates when the incoming endpoint is not a
LocalQueue(i.e., an external transport endpoint). But global partition companion queues ARELocalQueueinstances, so the fanout path is skipped and the exception is thrown.Error Output
Test plan
🤖 Generated with Claude Code