ARTEMIS-179 fix scale-down
This commit is contained in:
parent
682cad63f3
commit
3bb88c60ca
|
@ -579,7 +579,7 @@ public class ClientSessionFactoryImpl implements ClientSessionFactoryInternal, C
|
||||||
sessionsToClose = new HashSet<ClientSessionInternal>(sessions);
|
sessionsToClose = new HashSet<ClientSessionInternal>(sessions);
|
||||||
}
|
}
|
||||||
callFailoverListeners(FailoverEventType.FAILOVER_FAILED);
|
callFailoverListeners(FailoverEventType.FAILOVER_FAILED);
|
||||||
callSessionFailureListeners(me, true, false);
|
callSessionFailureListeners(me, true, false, scaleDownTargetNodeID);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
|
|
|
@ -565,7 +565,7 @@ public class BridgeImpl implements Bridge, SessionFailureListener, SendAcknowled
|
||||||
catch (Throwable dontCare) {
|
catch (Throwable dontCare) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (scaleDownTargetNodeID != null && !scaleDownTargetNodeID.equals(nodeUUID)) {
|
if (scaleDownTargetNodeID != null && !scaleDownTargetNodeID.equals(nodeUUID.toString())) {
|
||||||
synchronized (this) {
|
synchronized (this) {
|
||||||
try {
|
try {
|
||||||
ActiveMQServerLogger.LOGGER.debug("Moving " + queue.getMessageCount() + " messages from " + queue.getName() + " to " + scaleDownTargetNodeID);
|
ActiveMQServerLogger.LOGGER.debug("Moving " + queue.getMessageCount() + " messages from " + queue.getName() + " to " + scaleDownTargetNodeID);
|
||||||
|
|
Loading…
Reference in New Issue