You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by si...@apache.org on 2019/03/15 21:18:47 UTC

[lucene-solr] branch master updated: Fix more tests to not use concurrent flushing in RIW#commit()

This is an automated email from the ASF dual-hosted git repository.

simonw pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/lucene-solr.git


The following commit(s) were added to refs/heads/master by this push:
     new af5c2b2  Fix more tests to not use concurrent flushing in RIW#commit()
af5c2b2 is described below

commit af5c2b22da1964cd98b72d161220087dbe2a1955
Author: Simon Willnauer <si...@apache.org>
AuthorDate: Fri Mar 15 22:18:02 2019 +0100

    Fix more tests to not use concurrent flushing in RIW#commit()
---
 .../codecs/idversion/TestIDVersionPostingsFormat.java      | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/lucene/sandbox/src/test/org/apache/lucene/codecs/idversion/TestIDVersionPostingsFormat.java b/lucene/sandbox/src/test/org/apache/lucene/codecs/idversion/TestIDVersionPostingsFormat.java
index d51bf72..d30f9c7 100644
--- a/lucene/sandbox/src/test/org/apache/lucene/codecs/idversion/TestIDVersionPostingsFormat.java
+++ b/lucene/sandbox/src/test/org/apache/lucene/codecs/idversion/TestIDVersionPostingsFormat.java
@@ -368,7 +368,7 @@ public class TestIDVersionPostingsFormat extends LuceneTestCase {
     duplicate.add(makeIDField("id", 17));
     expectThrows(IllegalArgumentException.class, () -> {
       w.addDocument(duplicate);
-      w.commit();
+      w.commit(false);
     });
 
     w.close();
@@ -465,7 +465,7 @@ public class TestIDVersionPostingsFormat extends LuceneTestCase {
     doc.add(newTextField("id", "id", Field.Store.NO));
     expectThrows(IllegalArgumentException.class, () -> {
       w.addDocument(doc);
-      w.commit();
+      w.commit(false);
     });
              
     w.close();
@@ -498,7 +498,7 @@ public class TestIDVersionPostingsFormat extends LuceneTestCase {
     doc.add(new StringAndPayloadField("id", "id", new BytesRef("foo")));
     expectThrows(IllegalArgumentException.class, () -> {
       w.addDocument(doc);
-      w.commit();
+      w.commit(false);
     });
              
     w.close();
@@ -543,7 +543,7 @@ public class TestIDVersionPostingsFormat extends LuceneTestCase {
     doc.add(new Field("id", ts, ft));
     expectThrows(IllegalArgumentException.class, () -> {
       w.addDocument(doc);
-      w.commit();
+      w.commit(false);
       fail("didn't hit expected exception");
     });
 
@@ -561,7 +561,7 @@ public class TestIDVersionPostingsFormat extends LuceneTestCase {
     doc.add(makeIDField("id", 17));
     expectThrows(IllegalArgumentException.class, () -> {
       w.addDocument(doc);
-      w.commit();
+      w.commit(false);
     });
 
     w.close();
@@ -578,7 +578,7 @@ public class TestIDVersionPostingsFormat extends LuceneTestCase {
     doc.add(new StringAndPayloadField("id", "id", new BytesRef(new byte[] {(byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff})));
     expectThrows(IllegalArgumentException.class, () -> {
       w.addDocument(doc);
-      w.commit();
+      w.commit(false);
     });
     expectThrows(AlreadyClosedException.class, () -> {
       w.addDocument(doc);
@@ -596,7 +596,7 @@ public class TestIDVersionPostingsFormat extends LuceneTestCase {
     doc.add(new StringAndPayloadField("id", "id", new BytesRef(new byte[] {(byte)0x7f, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff, (byte)0xff})));
     expectThrows(IllegalArgumentException.class, () -> {
       w.addDocument(doc);
-      w.commit();
+      w.commit(false);
     });
     expectThrows(AlreadyClosedException.class, () -> {
       w.addDocument(doc);