mirror of https://github.com/apache/lucene.git
don't try to add too many docs in our monster tests
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1629366 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
1d2c51b089
commit
50b2e81e1c
|
@ -37,7 +37,7 @@ import com.carrotsearch.randomizedtesting.annotations.TimeoutSuite;
|
|||
@Monster("takes ~ 45 minutes")
|
||||
public class Test2BBinaryDocValues extends LuceneTestCase {
|
||||
|
||||
// indexes Integer.MAX_VALUE docs with a fixed binary field
|
||||
// indexes IndexWriter.MAX_DOCS docs with a fixed binary field
|
||||
public void testFixedBinary() throws Exception {
|
||||
BaseDirectoryWrapper dir = newFSDirectory(createTempDir("2BFixedBinary"));
|
||||
if (dir instanceof MockDirectoryWrapper) {
|
||||
|
@ -58,7 +58,7 @@ public class Test2BBinaryDocValues extends LuceneTestCase {
|
|||
BinaryDocValuesField dvField = new BinaryDocValuesField("dv", data);
|
||||
doc.add(dvField);
|
||||
|
||||
for (int i = 0; i < Integer.MAX_VALUE; i++) {
|
||||
for (int i = 0; i < IndexWriter.MAX_DOCS; i++) {
|
||||
bytes[0] = (byte)(i >> 24);
|
||||
bytes[1] = (byte)(i >> 16);
|
||||
bytes[2] = (byte)(i >> 8);
|
||||
|
@ -96,7 +96,7 @@ public class Test2BBinaryDocValues extends LuceneTestCase {
|
|||
dir.close();
|
||||
}
|
||||
|
||||
// indexes Integer.MAX_VALUE docs with a variable binary field
|
||||
// indexes IndexWriter.MAX_DOCS docs with a variable binary field
|
||||
public void testVariableBinary() throws Exception {
|
||||
BaseDirectoryWrapper dir = newFSDirectory(createTempDir("2BVariableBinary"));
|
||||
if (dir instanceof MockDirectoryWrapper) {
|
||||
|
@ -118,7 +118,7 @@ public class Test2BBinaryDocValues extends LuceneTestCase {
|
|||
BinaryDocValuesField dvField = new BinaryDocValuesField("dv", data);
|
||||
doc.add(dvField);
|
||||
|
||||
for (int i = 0; i < Integer.MAX_VALUE; i++) {
|
||||
for (int i = 0; i < IndexWriter.MAX_DOCS; i++) {
|
||||
encoder.reset(bytes);
|
||||
encoder.writeVInt(i % 65535); // 1, 2, or 3 bytes
|
||||
data.length = encoder.getPosition();
|
||||
|
|
|
@ -34,7 +34,7 @@ import com.carrotsearch.randomizedtesting.annotations.TimeoutSuite;
|
|||
@Monster("takes ~ 30 minutes")
|
||||
public class Test2BNumericDocValues extends LuceneTestCase {
|
||||
|
||||
// indexes Integer.MAX_VALUE docs with an increasing dv field
|
||||
// indexes IndexWriter.MAX_DOCS docs with an increasing dv field
|
||||
public void testNumerics() throws Exception {
|
||||
BaseDirectoryWrapper dir = newFSDirectory(createTempDir("2BNumerics"));
|
||||
if (dir instanceof MockDirectoryWrapper) {
|
||||
|
@ -53,7 +53,7 @@ public class Test2BNumericDocValues extends LuceneTestCase {
|
|||
NumericDocValuesField dvField = new NumericDocValuesField("dv", 0);
|
||||
doc.add(dvField);
|
||||
|
||||
for (int i = 0; i < Integer.MAX_VALUE; i++) {
|
||||
for (int i = 0; i < IndexWriter.MAX_DOCS; i++) {
|
||||
dvField.setLongValue(i);
|
||||
w.addDocument(doc);
|
||||
if (i % 100000 == 0) {
|
||||
|
|
|
@ -56,7 +56,7 @@ public class Test2BSortedDocValues extends LuceneTestCase {
|
|||
SortedDocValuesField dvField = new SortedDocValuesField("dv", data);
|
||||
doc.add(dvField);
|
||||
|
||||
for (int i = 0; i < Integer.MAX_VALUE; i++) {
|
||||
for (int i = 0; i < IndexWriter.MAX_DOCS; i++) {
|
||||
bytes[0] = (byte)(i >> 8);
|
||||
bytes[1] = (byte) i;
|
||||
w.addDocument(doc);
|
||||
|
@ -111,7 +111,7 @@ public class Test2BSortedDocValues extends LuceneTestCase {
|
|||
SortedDocValuesField dvField = new SortedDocValuesField("dv", data);
|
||||
doc.add(dvField);
|
||||
|
||||
for (int i = 0; i < Integer.MAX_VALUE; i++) {
|
||||
for (int i = 0; i < IndexWriter.MAX_DOCS; i++) {
|
||||
bytes[0] = (byte)(i >> 24);
|
||||
bytes[1] = (byte)(i >> 16);
|
||||
bytes[2] = (byte)(i >> 8);
|
||||
|
|
Loading…
Reference in New Issue