Skip to content

Apache Lucene open-source search software

SOLR-5509: Raise id's per thread so they won't overlap

Mark Robert Miller7b7339d733ad
diff --git a/solr/core/src/test/org/apache/solr/cloud/ChaosMonkeyNothingIsSafeTest.java b/solr/core/src/test/org/apache/solr/cloud/ChaosMonkeyNothingIsSafeTest.java
index 13ccc6dae4b..a99848742a3 100644
--- a/solr/core/src/test/org/apache/solr/cloud/ChaosMonkeyNothingIsSafeTest.java
+++ b/solr/core/src/test/org/apache/solr/cloud/ChaosMonkeyNothingIsSafeTest.java
@@ -115,8 +115,9 @@ public class ChaosMonkeyNothingIsSafeTest extends AbstractFullDistribZkTestBase
int threadCount = 1;
int i = 0;
for (i = 0; i < threadCount; i++) {
+ // ensure the id start is high enough that threads will not overlap doc ids
StopableIndexingThread indexThread = new StopableIndexingThread(
- (i+1) * 50000, true);
+ (i+1) * 25000000, true);
threads.add(indexThread);
indexThread.start();
}