mirror of https://github.com/apache/lucene.git
Took out extra tracking info, problems doesn't seem to be recurring
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1453461 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
4618a5a0fe
commit
09bf66350b
|
@ -45,7 +45,6 @@ import java.util.concurrent.atomic.AtomicBoolean;
|
||||||
import java.util.concurrent.atomic.AtomicInteger;
|
import java.util.concurrent.atomic.AtomicInteger;
|
||||||
import java.util.concurrent.atomic.AtomicLong;
|
import java.util.concurrent.atomic.AtomicLong;
|
||||||
|
|
||||||
import static org.apache.solr.core.SolrCore.log;
|
|
||||||
import static org.apache.solr.core.SolrCore.verbose;
|
import static org.apache.solr.core.SolrCore.verbose;
|
||||||
import static org.junit.Assert.fail;
|
import static org.junit.Assert.fail;
|
||||||
|
|
||||||
|
@ -79,15 +78,12 @@ public class OpenCloseCoreStressTest extends SolrTestCaseJ4 {
|
||||||
List<HttpSolrServer> queryServers = new ArrayList<HttpSolrServer>(queryThreads);
|
List<HttpSolrServer> queryServers = new ArrayList<HttpSolrServer>(queryThreads);
|
||||||
|
|
||||||
static String savedFactory;
|
static String savedFactory;
|
||||||
static String verbose = "false"; // EOE remove me.
|
|
||||||
|
|
||||||
// Keep the indexes from being randomly generated.
|
// Keep the indexes from being randomly generated.
|
||||||
@BeforeClass
|
@BeforeClass
|
||||||
public static void beforeClass() {
|
public static void beforeClass() {
|
||||||
savedFactory = System.getProperty("solr.DirectoryFactory");
|
savedFactory = System.getProperty("solr.DirectoryFactory");
|
||||||
verbose = System.getProperty("tests.verbose", "false");
|
|
||||||
System.setProperty("solr.directoryFactory", "org.apache.solr.core.MockFSDirectoryFactory");
|
System.setProperty("solr.directoryFactory", "org.apache.solr.core.MockFSDirectoryFactory");
|
||||||
System.setProperty("tests.verbose", "true");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@AfterClass
|
@AfterClass
|
||||||
|
@ -97,7 +93,6 @@ public class OpenCloseCoreStressTest extends SolrTestCaseJ4 {
|
||||||
} else {
|
} else {
|
||||||
System.setProperty("solr.directoryFactory", savedFactory);
|
System.setProperty("solr.directoryFactory", savedFactory);
|
||||||
}
|
}
|
||||||
System.setProperty("tests.verbose", verbose);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Before
|
@Before
|
||||||
|
@ -427,7 +422,6 @@ class OneIndexer extends Thread {
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
if (e instanceof InterruptedException) return;
|
if (e instanceof InterruptedException) return;
|
||||||
Indexer.errors.incrementAndGet();
|
Indexer.errors.incrementAndGet();
|
||||||
log.error("EOE dumping stack (indexer)", e);
|
|
||||||
if (idx == 2) {
|
if (idx == 2) {
|
||||||
fail("Could not reach server while indexing for three tries, quitting " + e.getMessage());
|
fail("Could not reach server while indexing for three tries, quitting " + e.getMessage());
|
||||||
} else {
|
} else {
|
||||||
|
@ -523,7 +517,6 @@ class OneQuery extends Thread {
|
||||||
break; // retry loop
|
break; // retry loop
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
if (e instanceof InterruptedException) return;
|
if (e instanceof InterruptedException) return;
|
||||||
log.error("EOE dumping stack (query)", e);
|
|
||||||
Queries._errors.incrementAndGet();
|
Queries._errors.incrementAndGet();
|
||||||
if (idx == 2) {
|
if (idx == 2) {
|
||||||
fail("Could not reach server while indexing for three tries, quitting " + e.getMessage());
|
fail("Could not reach server while indexing for three tries, quitting " + e.getMessage());
|
||||||
|
|
Loading…
Reference in New Issue