Commit 83b105f2 authored by Flavio Paiva Junqueira's avatar Flavio Paiva Junqueira
Browse files

ZOOKEEPER-1867. Bug in ZkDatabaseCorruptionTest (fpj)



git-svn-id: https://svn.apache.org/repos/asf/zookeeper/branches/branch-3.4@1561673 13f79535-47bb-0310-9956-ffa450edef68
parent 9e097b5e
......@@ -230,6 +230,8 @@ BUGFIXES:
ZOOKEEPER-1858. JMX checks - potential race conditions while stopping
and starting server (Rakesh R via fpj)
ZOOKEEPER-1867. Bug in ZkDatabaseCorruptionTest (fpj)
IMPROVEMENTS:
ZOOKEEPER-1564. Allow JUnit test build with IBM Java
......
......@@ -121,12 +121,16 @@ public class ZkDatabaseCorruptionTest extends ZKTestCase {
}
//wait for servers to be up
String[] list = qb.hostPort.split(",");
for (int i =0; i < 4; i++) {
String hp = list[i];
Assert.assertTrue("waiting for server up",
ClientBase.waitForServerUp(hp,
CONNECTION_TIMEOUT));
LOG.info(hp + " is accepting client connections");
for (int i = 0; i < 5; i++) {
if(leaderSid != (i + 1)) {
String hp = list[i];
Assert.assertTrue("waiting for server up",
ClientBase.waitForServerUp(hp,
CONNECTION_TIMEOUT));
LOG.info("{} is accepting client connections", hp);
} else {
LOG.info("Skipping the leader");
}
}
zk = qb.createClient();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment