Skip to content

Commit

Permalink
ARTEMIS-5214 Trying to address intermittent failure on CuratorDistrib…
Browse files Browse the repository at this point in the history
…utedLockTest

To be honest I am not 100% sure this will fix the issue I saw, but it will certainly help me diagnose future failures,
by making sure the server is stopped and assigning a proper ID on each server.

For future record I am seeing the following exception occasionally on a CI:

Caused by: org.apache.zookeeper.server.quorum.QuorumPeerConfig$ConfigException: Client and election port must be different! Please update the configuration file on server.14
	at org.apache.zookeeper.server.quorum.QuorumPeer$QuorumServer.initializeWithAddressString(QuorumPeer.java:366)
  • Loading branch information
clebertsuconic committed Dec 16, 2024
1 parent e3c49e6 commit 0906893
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void setupEnv() throws Throwable {

clusterSpecs = new InstanceSpec[zkNodes];
for (int i = 0; i < zkNodes; i++) {
clusterSpecs[i] = new InstanceSpec(newFolder(tmpFolder, "node" + i), BASE_SERVER_PORT + i, -1, -1, true, -1, SERVER_TICK_MS, -1);
clusterSpecs[i] = new InstanceSpec(newFolder(tmpFolder, "node" + i), BASE_SERVER_PORT + i, -1, -1, true, i, SERVER_TICK_MS, -1);
}
testingServer = new TestingCluster(clusterSpecs);
testingServer.start();
Expand All @@ -90,6 +90,7 @@ public void setupEnv() throws Throwable {
@Override
public void tearDownEnv() throws Throwable {
super.tearDownEnv();
testingServer.stop();
testingServer.close();
}

Expand Down

0 comments on commit 0906893

Please sign in to comment.