You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jp...@apache.org on 2022/06/13 07:26:50 UTC

[lucene] branch main updated: LUCENE-10078: Fix TestIndexWriterExceptions' expectations regarding merges on full flushes.

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

jpountz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/lucene.git


The following commit(s) were added to refs/heads/main by this push:
     new d850a22a511 LUCENE-10078: Fix TestIndexWriterExceptions' expectations regarding merges on full flushes.
d850a22a511 is described below

commit d850a22a511676989f29ce3ef011fcf56be71c17
Author: Adrien Grand <jp...@gmail.com>
AuthorDate: Mon Jun 13 09:25:48 2022 +0200

    LUCENE-10078: Fix TestIndexWriterExceptions' expectations regarding merges on full flushes.
---
 .../src/test/org/apache/lucene/index/TestIndexWriterExceptions.java  | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterExceptions.java b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterExceptions.java
index 659c403b753..ee634b49be8 100644
--- a/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterExceptions.java
+++ b/lucene/core/src/test/org/apache/lucene/index/TestIndexWriterExceptions.java
@@ -2169,6 +2169,11 @@ public class TestIndexWriterExceptions extends LuceneTestCase {
           FakeIOException fioe) {
         // OK: e.g. SMS hit the exception
         break;
+      } catch (
+          @SuppressWarnings("unused")
+          IllegalStateException ise) {
+        // OK: Merge-on-refresh refuses to run because IndexWriter hit a tragedy
+        break;
       }
     }