mirror of https://github.com/apache/lucene.git
tests: disable MockDirectoryFactory for replication
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1498659 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
953cc51fda
commit
ecd53b8018
|
@ -103,7 +103,7 @@ public class TestReplicationHandler extends SolrTestCaseJ4 {
|
||||||
super.setUp();
|
super.setUp();
|
||||||
// System.setProperty("solr.directoryFactory", "solr.StandardDirectoryFactory");
|
// System.setProperty("solr.directoryFactory", "solr.StandardDirectoryFactory");
|
||||||
// For manual testing only
|
// For manual testing only
|
||||||
// useFactory(null); // force an FS factory
|
useFactory(null); // force an FS factory. currently MockDirectoryFactory causes SolrCore.initIndex to detect no index and create a new one.
|
||||||
master = new SolrInstance("master", null);
|
master = new SolrInstance("master", null);
|
||||||
master.setUp();
|
master.setUp();
|
||||||
masterJetty = createJetty(master);
|
masterJetty = createJetty(master);
|
||||||
|
@ -339,6 +339,21 @@ public class TestReplicationHandler extends SolrTestCaseJ4 {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Verify that things still work if an IW has not been opened (and hence the CommitPoints have not been communicated to the deletion policy)
|
||||||
|
*/
|
||||||
|
public void testNoWriter() throws Exception {
|
||||||
|
index(slaveClient, "id", "123456");
|
||||||
|
slaveClient.commit();
|
||||||
|
slaveJetty.stop();
|
||||||
|
// System.err.println("############ starting jetty");
|
||||||
|
slaveJetty = createJetty(slave);
|
||||||
|
// System.err.println("############ done starting jetty");
|
||||||
|
slaveClient = createNewSolrServer(slaveJetty.getLocalPort());
|
||||||
|
pullFromMasterToSlave();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Verify that empty commits and/or commits with openSearcher=false
|
* Verify that empty commits and/or commits with openSearcher=false
|
||||||
* on the master do not cause subsequent replication problems on the slave
|
* on the master do not cause subsequent replication problems on the slave
|
||||||
|
|
Loading…
Reference in New Issue