SOLR-3063: Bug in LeaderElectionIntgrationTest

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1237193 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2012-01-29 02:12:00 +00:00
parent 23e845d479
commit 9a1222efc5
2 changed files with 2 additions and 3 deletions

View File

@ -102,7 +102,7 @@ public abstract class AbstractZkTestCase extends SolrTestCaseJ4 {
private static void putConfig(SolrZkClient zkClient, final String name)
throws Exception {
zkClient.makePath("/configs/conf1/" + name, getFile("solr"
+ File.separator + "conf" + File.separator + name), false, false);
+ File.separator + "conf" + File.separator + name), false, true);
}
@Override

View File

@ -100,7 +100,7 @@ public class LeaderElectionIntegrationTest extends SolrTestCaseJ4 {
AbstractZkTestCase.TIMEOUT);
reader = new ZkStateReader(zkClient);
reader.createClusterStateWatchersAndUpdate();
log.info("####SETUP_END " + getName());
}
@ -217,7 +217,6 @@ public class LeaderElectionIntegrationTest extends SolrTestCaseJ4 {
private String getLeader() throws InterruptedException, KeeperException {
reader.updateCloudState(true);
ZkNodeProps props = reader.getLeaderProps("collection1", "shard1", 30000);
String leader = props.get(ZkStateReader.NODE_NAME_PROP);