[
https://issues.apache.org/jira/browse/ARTEMIS-4354?focusedWorklogId=870860&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-870860
]
ASF GitHub Bot logged work on ARTEMIS-4354:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 13/Jul/23 20:23
Start Date: 13/Jul/23 20:23
Worklog Time Spent: 10m
Work Description: clebertsuconic commented on code in PR #4546:
URL: https://github.com/apache/activemq-artemis/pull/4546#discussion_r1263020340
##########
artemis-service-extensions/src/main/java/org/apache/activemq/artemis/service/extensions/xa/recovery/ActiveMQXAResourceWrapper.java:
##########
@@ -67,6 +67,15 @@ public ActiveMQXAResourceWrapper(XARecoveryConfig...
xaRecoveryConfigs) {
}
}
+ public void updateRecoveryConfig(XARecoveryConfig... xaRecoveryConfigs) {
+ synchronized (ActiveMQXAResourceWrapper.lock) {
+ if (delegate != null) {
+ delegate = null;
Review Comment:
of course you could have the close called with a try .. catch (Exception
ignored) {}
Issue Time Tracking
-------------------
Worklog Id: (was: 870860)
Time Spent: 40m (was: 0.5h)
> Update the recovery XAResource underlying session
> --------------------------------------------------
>
> Key: ARTEMIS-4354
> URL: https://issues.apache.org/jira/browse/ARTEMIS-4354
> Project: ActiveMQ Artemis
> Issue Type: Bug
> Components: Broker
> Affects Versions: 2.29.0
> Reporter: Emmanuel Hugonnet
> Priority: Major
> Time Spent: 40m
> Remaining Estimate: 0h
>
> Currently when the HA cluster status changes the underlying ClientSession of
> the ActiveMQXAResourceWrapper id not updated.
> Thus if the backup server starts after the initial connection, there is no
> way to update the underlying TransportConfigurations
--
This message was sent by Atlassian Jira
(v8.20.10#820010)