You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ro...@apache.org on 2019/06/11 09:19:50 UTC

[lucene-solr] branch master updated (1942f8c -> 142a20b)

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

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


    from 1942f8c  Revert "SOLR-13526: @AwaitsFix failing tests"
     new 50d6588  LUCENE-8815: Ensure single segments in tests
     new 142a20b  LUCENE-8843: Fix precommit

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../core/src/java/org/apache/lucene/util/IOUtils.java  |  1 -
 .../lucene/document/TestFeatureDoubleValues.java       | 18 +++---------------
 2 files changed, 3 insertions(+), 16 deletions(-)


[lucene-solr] 01/02: LUCENE-8815: Ensure single segments in tests

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 50d65889df3f5472824a22598080d164a8d57354
Author: Alan Woodward <ro...@apache.org>
AuthorDate: Tue Jun 11 09:40:00 2019 +0100

    LUCENE-8815: Ensure single segments in tests
---
 .../lucene/document/TestFeatureDoubleValues.java       | 18 +++---------------
 1 file changed, 3 insertions(+), 15 deletions(-)

diff --git a/lucene/core/src/test/org/apache/lucene/document/TestFeatureDoubleValues.java b/lucene/core/src/test/org/apache/lucene/document/TestFeatureDoubleValues.java
index 5640d18..efdd04e 100644
--- a/lucene/core/src/test/org/apache/lucene/document/TestFeatureDoubleValues.java
+++ b/lucene/core/src/test/org/apache/lucene/document/TestFeatureDoubleValues.java
@@ -27,21 +27,6 @@ import org.apache.lucene.search.IndexSearcher;
 import org.apache.lucene.store.Directory;
 import org.apache.lucene.util.LuceneTestCase;
 
-/*
- * Test for retrieving values from a feature using a FeatureDoubleValuesSource.
- *
- * THE RULES:
- * 1. keywords like 'abstract' and 'static' should not appear in this file.
- * 2. each test method should be self-contained and understandable.
- * 3. no test methods should share code with other test methods.
- * 4. no testing of things unrelated to sorting.
- * 5. no tracers.
- * 6. keyword 'class' should appear only once in this file, here ----
- *                                                                  |
- *        -----------------------------------------------------------
- *        |
- *       \./
- */
 public class TestFeatureDoubleValues extends LuceneTestCase {
 
   public void testFeature() throws IOException {
@@ -56,6 +41,7 @@ public class TestFeatureDoubleValues extends LuceneTestCase {
     doc = new Document();
     doc.add(new FeatureField("field", "name", 4F));
     writer.addDocument(doc);
+    writer.forceMerge(1);
     IndexReader ir = writer.getReader();
     writer.close();
 
@@ -87,6 +73,7 @@ public class TestFeatureDoubleValues extends LuceneTestCase {
     doc = new Document();
     doc.add(new FeatureField("field", "name", 4F));
     writer.addDocument(doc);
+    writer.forceMerge(1);
     IndexReader ir = writer.getReader();
     writer.close();
 
@@ -168,6 +155,7 @@ public class TestFeatureDoubleValues extends LuceneTestCase {
     doc = new Document();
     doc.add(new FeatureField("field", "name", 4F));
     writer.addDocument(doc);
+    writer.forceMerge(1);
     IndexReader ir = writer.getReader();
     writer.close();
 


[lucene-solr] 02/02: LUCENE-8843: Fix precommit

Posted by ro...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 142a20bb0b24b657da8e267a5ebe205f35dc0637
Author: Alan Woodward <ro...@apache.org>
AuthorDate: Tue Jun 11 09:56:10 2019 +0100

    LUCENE-8843: Fix precommit
---
 lucene/core/src/java/org/apache/lucene/util/IOUtils.java | 1 -
 1 file changed, 1 deletion(-)

diff --git a/lucene/core/src/java/org/apache/lucene/util/IOUtils.java b/lucene/core/src/java/org/apache/lucene/util/IOUtils.java
index d1163dc..95f0759 100644
--- a/lucene/core/src/java/org/apache/lucene/util/IOUtils.java
+++ b/lucene/core/src/java/org/apache/lucene/util/IOUtils.java
@@ -18,7 +18,6 @@ package org.apache.lucene.util;
 
 import java.io.BufferedReader;
 import java.io.Closeable;
-import java.io.FileNotFoundException;
 import java.io.IOException;
 import java.io.InputStream;
 import java.io.InputStreamReader;