You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Justin Bertram (Jira)" <ji...@apache.org> on 2025/01/15 14:28:00 UTC

[jira] [Resolved] (ARTEMIS-5205) Queue messages can become stuck if using noLocal

     [ https://issues.apache.org/jira/browse/ARTEMIS-5205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Justin Bertram resolved ARTEMIS-5205.
-------------------------------------
    Resolution: Fixed

> Queue messages can become stuck if using noLocal
> ------------------------------------------------
>
>                 Key: ARTEMIS-5205
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-5205
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: STOMP
>    Affects Versions: 2.37.0
>            Reporter: Tommy Lindgren
>            Priority: Major
>
> I have STOMP clients using noLocal. There are diverts routing topic messages to queues and I have observed that queue messages sometimes become stuck. Theory:
>  # A STOMP client sends a message to a topic with noLocal=true. The __AMQ_CID header is added to the message.
>  # There's a divert from that topic to a queue.
>  # The STOMP client happens to subscribe to that queue, also with noLocal=true. This client is the only consumer for that queue.
>  # The message is added to the queue and is now stuck, because the only consumer has a has selector expression filtering on that message's __AMQ_CID header.
> Not sure if this is an Artemis bug or an application/configuration issue but I don't believe I saw this behavior with ActiveMQ Classic. I suspect Classic solved noLocal filtering in a different way or simply didn't respect the setting for queues (the application filters messages locally as a fallback).
>  



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

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@activemq.apache.org
For additional commands, e-mail: issues-help@activemq.apache.org
For further information, visit: https://activemq.apache.org/contact