Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
8.8.2
-
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.