[ 
https://issues.apache.org/jira/browse/ARTEMIS-5423?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17944308#comment-17944308
 ] 

Jean-Baptiste Angelelli edited comment on ARTEMIS-5423 at 4/14/25 9:56 AM:
---------------------------------------------------------------------------

Thank you Justin for your answer but it does not work as expected on my side. 
Here is what I did :
 * On my workstation (Debian 12), I start two instances of Artemis, clustered 
and ha shared store, primary on localhost:61616 and backup on localhost:61716.
 * I gracefully stop primary broker (Ctrl + C). I see in backup broker log that 
it correctly detects primary backup shutdown (see attachment) but then I expect 
backup broker to become active, which it does not. In backup broker JMX, 
parameter {{Active}} is still {{false}} and my JMS client can not create 
session factory with backup broker.

Did I do something wrong ? I attach my primary and backup brokers config.

[^artemis.log]

[^backup_broker.xml]


was (Author: JIRAUSER309339):
Thank you Justin for your answer but it does not work as expected on my side. 
Here is what I did :
 * On my workstation (Debian 12), I start two instances of Artemis, clustered 
and ha shared store, primary on localhost:61616 and backup on localhost:61716.
 * I gracefully stop primary broker (Ctrl + C). I see in backup broker log that 
it correctly detects primary backup shutdown (see attachment) but then I expect 
backup broker to become active, which it does not. In backup broker JMX, 
parameter {{Active}} is still {{false}} and my JMS client can not create 
session factory with backup broker.

Did I do something wrong ? I attach my primary and backup brokers config.

[^artemis.log]

[^primary_broker.xml]

[^backup_broker.xml]

> 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
>            Assignee: Justin Bertram
>            Priority: Minor
>         Attachments: artemis.log, backup_broker.xml
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]
For further information, visit: https://activemq.apache.org/contact


Reply via email to