You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Mayya Sharipova (Jira)" <ji...@apache.org> on 2021/06/23 13:39:03 UTC

[jira] [Closed] (LUCENE-9967) ReplicaNode.start NPE on exception with no message

     [ https://issues.apache.org/jira/browse/LUCENE-9967?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mayya Sharipova closed LUCENE-9967.
-----------------------------------

Closing after the 8.9.0 release

> ReplicaNode.start NPE on exception with no message
> --------------------------------------------------
>
>                 Key: LUCENE-9967
>                 URL: https://issues.apache.org/jira/browse/LUCENE-9967
>             Project: Lucene - Core
>          Issue Type: Improvement
>          Components: modules/replicator
>    Affects Versions: 8.8.2
>         Environment: Java 16.0.1, Fedora Linux 33
>            Reporter: Steven Schlansker
>            Priority: Major
>              Labels: easyfix, patch
>             Fix For: 8.9
>
>         Attachments: LUCENE-9967.patch
>
>
> 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:
>  
> {code:java}
>     } catch (Throwable t) {
>       if (t.getMessage().startsWith("replica cannot start") == false) {{code}
>  
> This obscures the actual root cause exception source (you cannot see it without a debugger) and replaces it with a useless NPE.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org