You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@artemis.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2026/03/09 11:31:00 UTC

[jira] [Commented] (ARTEMIS-5941) AMQP Federation of Wildcard subscriptions can fail if assertions enabled

    [ 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: issues-unsubscribe@artemis.apache.org
For additional commands, e-mail: issues-help@artemis.apache.org