ARTEMIS-1029 Fixing Scaledown tests
This commit is contained in:
parent
5534d00fab
commit
761f42277d
|
@ -109,9 +109,15 @@ public class ClusterController implements ActiveMQComponent {
|
|||
//latch so we know once we are connected
|
||||
replicationClusterConnectedLatch = new CountDownLatch(1);
|
||||
//and add the quorum manager as a topology listener
|
||||
defaultLocator.addClusterTopologyListener(quorumManager);
|
||||
//start the quorum manager
|
||||
quorumManager.start();
|
||||
if (defaultLocator != null) {
|
||||
defaultLocator.addClusterTopologyListener(quorumManager);
|
||||
}
|
||||
|
||||
if (quorumManager != null) {
|
||||
//start the quorum manager
|
||||
quorumManager.start();
|
||||
}
|
||||
|
||||
started = true;
|
||||
//connect all the locators in a separate thread
|
||||
for (ServerLocatorInternal serverLocatorInternal : locators.values()) {
|
||||
|
|
|
@ -247,9 +247,7 @@ public final class ClusterManager implements ActiveMQComponent {
|
|||
/*
|
||||
* only start if we are actually in a cluster
|
||||
* */
|
||||
if (clusterConnections.size() > 0) {
|
||||
clusterController.start();
|
||||
}
|
||||
clusterController.start();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue