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);
|
||||
}
|
||||
callFailoverListeners(FailoverEventType.FAILOVER_FAILED);
|
||||
callSessionFailureListeners(me, true, false);
|
||||
callSessionFailureListeners(me, true, false, scaleDownTargetNodeID);
|
||||
}
|
||||
}
|
||||
finally {
|
||||
|
|
|
@ -565,7 +565,7 @@ public class BridgeImpl implements Bridge, SessionFailureListener, SendAcknowled
|
|||
catch (Throwable dontCare) {
|
||||
}
|
||||
|
||||
if (scaleDownTargetNodeID != null && !scaleDownTargetNodeID.equals(nodeUUID)) {
|
||||
if (scaleDownTargetNodeID != null && !scaleDownTargetNodeID.equals(nodeUUID.toString())) {
|
||||
synchronized (this) {
|
||||
try {
|
||||
ActiveMQServerLogger.LOGGER.debug("Moving " + queue.getMessageCount() + " messages from " + queue.getName() + " to " + scaleDownTargetNodeID);
|
||||
|
|
Loading…
Reference in New Issue