Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-8212

Never swallow Exceptions in IndexWriter and DocumentsWriter

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 7.4, 8.0
    • 7.4, 8.0
    • None
    • None
    • New, Patch Available

    Description

      IndexWriter as well as DocumentsWriter caught Throwable and ignored it. This is mainly a relict from pre Java 7 were exceptions didn't have the needed API to suppress exceptions. This change handles exceptions correctly where the original exception is rethrown and all other exceptions are added as suppressed.

      Attachments

        1. LUCENE-8212.patch
          15 kB
          Simon Willnauer
        2. LUCENE-8212.patch
          16 kB
          Simon Willnauer

        Activity

          People

            Unassigned Unassigned
            simonw Simon Willnauer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: