The name of the binding in that message comes from the value of the
_AMQ_ClusterName property on the notification message received on the
cluster connection. That value is set on the notification message based on
the value of the "clusterName" variable of the local queue binding [1]. You
can see in the code that the value is the name of the queue with the node
ID concatenated to it. Since the name of the queue is a UUID that indicates
it is a randomly named subscription queue (e.g. for a non-durable JMS topic
subscriber). Both the queue name used here and the node ID values are
generated using the same UUID algorithm.


Justin

[1]
https://github.com/apache/activemq-artemis/blob/2.34.0/artemis-server/src/main/java/org/apache/activemq/artemis/core/postoffice/impl/LocalQueueBinding.java#L51

On Tue, Jun 11, 2024 at 5:26 PM William Crowell
<wcrow...@perforce.com.invalid> wrote:

> Justin,
>
> For instance, this log message: "Cannot find binding for
> 034b3024-1889-11ef-aeed-0242ac1100029a5d5fea-03fb-11ef-acb5-0242ac110002"
>
> This message comes out of
> org.apache.activemq.artemis.core.server.cluster.impl.ClusterConnectionImpl
> on line 1439:
>
>
> https://github.com/apache/activemq-artemis/blob/2.34.0/artemis-server/src/main/java/org/apache/activemq/artemis/core/server/cluster/impl/ClusterConnectionImpl.java#L1439
>
> Your explanation of the IDs on the source and target seem to explain it if
> that is the case.
>
> Regards,
>
> William Crowell
>
>
> From: Justin Bertram <jbert...@apache.org>
> Date: Tuesday, June 11, 2024 at 6:17 PM
> To: users@activemq.apache.org <users@activemq.apache.org>
> Subject: Re: Any idea on why the cluster name would be a concatenation of
> 2 cluster IDs
> Can you be more specific? Off the top of my head I'm not sure if this is
> expected or not. It might be that the name is based on the IDs of the
> source and target. I need more details in order to investigate.
>
>
> Justin
>
> On Mon, Jun 10, 2024 at 10:11 AM William Crowell
> <wcrow...@perforce.com.invalid> wrote:
>
> > Good morning,
> >
> > Does anyone have an idea why the name of cluster in certain bindings is a
> > concatenation of two cluster ids?  I keep seeing this in the logs.
> >
> > Regards,
> >
> > William Crowell
> >
> >
> > This e-mail may contain information that is privileged or confidential.
> If
> > you are not the intended recipient, please delete the e-mail and any
> > attachments and notify us immediately.
> >
> >
>
>
> CAUTION: This email originated from outside of the organization. Do not
> click on links or open attachments unless you recognize the sender and know
> the content is safe.
>
>
> This e-mail may contain information that is privileged or confidential. If
> you are not the intended recipient, please delete the e-mail and any
> attachments and notify us immediately.
>
>

Reply via email to