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

ReplicaNode.start NPE on exception with no message

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 8.8.2
    • 8.9
    • modules/replicator
    • Java 16.0.1, Fedora Linux 33

    • New, Patch Available

    Description

      We are starting a new project and trying to implement Lucene near real time replication.

      While stubbing out some code such that it throws an exception, we found that Lucene's error handling itself fails when the exception has no message:

       

          } catch (Throwable t) {
            if (t.getMessage().startsWith("replica cannot start") == false) {

       

      This obscures the actual root cause exception source (you cannot see it without a debugger) and replaces it with a useless NPE.

      Attachments

        1. LUCENE-9967.patch
          1 kB
          Steven Schlansker

        Activity

          People

            Unassigned Unassigned
            stevenschlansker Steven Schlansker
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: