[ 
https://issues.apache.org/jira/browse/ARTEMIS-5941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18064070#comment-18064070
 ] 

ASF subversion and git services commented on ARTEMIS-5941:
----------------------------------------------------------

Commit 54c5124b7b96a36e1f83fb3e36e6bc1787ec448d in artemis's branch 
refs/heads/main from Timothy Bish
[ https://gitbox.apache.org/repos/asf?p=artemis.git;h=54c5124b7b ]

ARTEMIS-5941 Route wildcard subscriptions direct to demand bindings

Avoid using the WildcardAddressManager to route to an actual wild-card address
when a federation link is federating for demand on the wild-card address as that
method will throw if assertions are enabled and has likely not been tested for
that use.


> AMQP Federation of Wildcard subscriptions can fail if assertions enabled
> ------------------------------------------------------------------------
>
>                 Key: ARTEMIS-5941
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-5941
>             Project: Artemis
>          Issue Type: Bug
>          Components: AMQP, Federation
>    Affects Versions: 2.52.0
>            Reporter: Timothy A. Bish
>            Assignee: Timothy A. Bish
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.53.0
>
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> If AMQP federation is federating messages from a remote back to a wild-card 
> subscription binding it can currently fail if JVM assertions are enabled due 
> to 
> [this|https://github.com/apache/artemis/blob/8cc9f68ec67d2900fdf8291ad67937950fde98ee/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/WildcardAddressManager.java#L54]
>  method in the WildcardAddressManager which is an indication this method was 
> never meant to route direct sends into a wild-card address when treating it 
> as a literal string as this federation code would be doing. Instead of 
> attempting to route through this code in this manner we can use the 
> federation code that routes direct to the bindings that generated the demand 
> to ensure that we do not fail when federating a message if assertions are 
> enabled.  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to