Can you provide the address settings that correspond to this queue?

For what it's worth, setting the auto-delete message-count on the queue to
-1 is not normal as that means the broker will delete the queue regardless
of the number of messages it contains. It might make sense depending on
your use-case, but folks typically don't want to delete their messages
automatically.


Justin

On Tue, Oct 21, 2025 at 3:28 PM Illia <[email protected]> wrote:

> Hi team. Could you please help me with the next issue.
>
> My cluster consists of two nodes with replication mode (live and backup)
> that are configured to auto delete queues.
>
> When my active node fails, I see that only addresses are replicated to the
> backup node but not queues. Seems that the reason is that my queues are
> configured for auto delete. Queue replication works fine without the auto
> delete flag. I tried to set up an auto delete delay but it seems that it
> still doesn’t work with failover.
>
> My goal is to not delete queues immediately after failover when the queue
> auto delete flag is set to true.
>
> Is there any way to do this?
>
> Here is my queue configuration in Java code:
>
>
>
>
>
>
>
>
> *final QueueConfiguration queueConfig =
>
> QueueConfiguration.of(queueName).setAddress(addressName).setRoutingType(RoutingType.ANYCAST).setAutoDelete(true).setAutoDeleteDelay(30000L).setAutoDeleteMessageCount(-1L).setPurgeOnNoConsumers(false).setNonDestructive(false);*
>
> Thanks! Best regards.
>

Reply via email to