You are viewing a plain text version of this content. The canonical link for it is here.
Posted to gitbox@activemq.apache.org by "ehsavoie (via GitHub)" <gi...@apache.org> on 2023/07/10 14:29:39 UTC
[GitHub] [activemq-artemis] ehsavoie opened a new pull request, #4546: ARTEMIS-4354 Allow the recovery XAResource to be osing and reconnceting
ehsavoie opened a new pull request, #4546:
URL: https://github.com/apache/activemq-artemis/pull/4546
the underlying CLientSession.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [activemq-artemis] clebertsuconic commented on a diff in pull request #4546: ARTEMIS-4354 Allow the recovery XAResource to be osing and reconnceting
Posted by "clebertsuconic (via GitHub)" <gi...@apache.org>.
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) {}
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [activemq-artemis] jbertram commented on pull request #4546: ARTEMIS-4354 Allow the recovery XAResource to be osing and reconnceting
Posted by "jbertram (via GitHub)" <gi...@apache.org>.
jbertram commented on PR #4546:
URL: https://github.com/apache/activemq-artemis/pull/4546#issuecomment-1629195727
Couple of typos in the commit message.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [activemq-artemis] clebertsuconic commented on a diff in pull request #4546: ARTEMIS-4354 Allow the recovery XAResource to be osing and reconnceting
Posted by "clebertsuconic (via GitHub)" <gi...@apache.org>.
clebertsuconic commented on code in PR #4546:
URL: https://github.com/apache/activemq-artemis/pull/4546#discussion_r1263019989
##########
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:
shouldn't close be called here instead? the previous resource will probably leak?
isn't there a way to write a test for this?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [activemq-artemis] clebertsuconic merged pull request #4546: ARTEMIS-4354 Allow the recovery XAResource to be osing and reconnceting
Posted by "clebertsuconic (via GitHub)" <gi...@apache.org>.
clebertsuconic merged PR #4546:
URL: https://github.com/apache/activemq-artemis/pull/4546
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: gitbox-unsubscribe@activemq.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org