mirror of https://github.com/apache/lucene.git
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:
parent
23e845d479
commit
9a1222efc5
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue