You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ji...@apache.org on 2017/02/07 13:04:31 UTC
lucene-solr:master: LUCENE-7568: Fix test that should never create
segments with a single document.
Repository: lucene-solr
Updated Branches:
refs/heads/master 0d760aedd -> 37b75bef3
LUCENE-7568: Fix test that should never create segments with a single document.
Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/37b75bef
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/37b75bef
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/37b75bef
Branch: refs/heads/master
Commit: 37b75bef3f39840227f85aa5c330337fd101b003
Parents: 0d760ae
Author: Jim Ferenczi <ji...@elastic.co>
Authored: Tue Feb 7 14:04:11 2017 +0100
Committer: Jim Ferenczi <ji...@elastic.co>
Committed: Tue Feb 7 14:04:11 2017 +0100
----------------------------------------------------------------------
.../core/src/test/org/apache/lucene/index/TestIndexSorting.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/37b75bef/lucene/core/src/test/org/apache/lucene/index/TestIndexSorting.java
----------------------------------------------------------------------
diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexSorting.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexSorting.java
index 4885fc2..c2b180a 100644
--- a/lucene/core/src/test/org/apache/lucene/index/TestIndexSorting.java
+++ b/lucene/core/src/test/org/apache/lucene/index/TestIndexSorting.java
@@ -204,7 +204,7 @@ public class TestIndexSorting extends LuceneTestCase {
// segment sort is needed
codec.needsIndexSort = true;
codec.numCalls = 0;
- for (int i = 200; i < 300; i++) {
+ for (int i = 201; i < 300; i++) {
Document doc = new Document();
doc.add(new StringField("id", Integer.toString(i), Store.YES));
doc.add(new NumericDocValuesField("id", i));
@@ -1698,7 +1698,6 @@ public class TestIndexSorting extends LuceneTestCase {
dir.close();
}
-
// docvalues fields involved in the index sort cannot be updated
public void testBadDVUpdate() throws Exception {
Directory dir = newDirectory();