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/04/13 15:54:00 UTC
[jira] [Commented] (ARTEMIS-5423) Impossible to set failover-on-shutdown to true when ha policy is shared store and broker is primary
[ https://issues.apache.org/jira/browse/ARTEMIS-5423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17943932#comment-17943932 ]
Justin Bertram commented on ARTEMIS-5423:
-----------------------------------------
Setting {{failover-on-shutdown}} to {{true}} in the element {{/configuration/core/ha-policy/shared-store/primary}} of {{broker.xml}} _does_ actually prevent failover when the primary broker is shutdown. The only problem here is that the MBean which gets & sets the value of this parameter only works when the broker is a shared-store backup.
bq. ...I do not see any workaround to make primary broker fail over to back up in case of graceful shutdown.
This should work as expected. I don't see any problems with the actual fail over functionality.
> Impossible to set failover-on-shutdown to true when ha policy is shared store and broker is primary
> ---------------------------------------------------------------------------------------------------
>
> Key: ARTEMIS-5423
> URL: https://issues.apache.org/jira/browse/ARTEMIS-5423
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Components: Broker, Clustering
> Affects Versions: 2.40.0
> Reporter: Jean-Baptiste Angelelli
> Priority: Major
>
> When I set the parameter {{failover-on-shutdown}} to {{true}} in the element {{/configuration/core/ha-policy/shared-store/primary}} of broker.xml, it is not taken into account and remains false (which is default value) at runtime. By contrast, it works perfect when broker is backup instead of primary.
> The same problem exists when I try to update this parameter value via JMX in Web console at runtime.
> Priority set to major as I do not see any workaround to make primary broker fail over to back up in case of graceful shutdown.
--
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