[ 
https://issues.apache.org/jira/browse/LUCENE-5853?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14077490#comment-14077490
 ] 

Uwe Schindler commented on LUCENE-5853:
---------------------------------------

In addition, Lucene never logs anything, so using InfoStream from 
RAMUsageEstimator is not wanted. InfoStream is only used inside IndexWriter.

> RamUsageEstimator has too general exception handlers
> ----------------------------------------------------
>
>                 Key: LUCENE-5853
>                 URL: https://issues.apache.org/jira/browse/LUCENE-5853
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/other
>            Reporter: Henrique Carvalho Silva
>            Priority: Minor
>         Attachments: LUCENE-5853.patch
>
>
> core util RamUsageEstimator has several handlers in which "Exception" was 
> caught and ignored. Such a general handler not only includes 
> reflection-related exceptions such as ClassNotFoundException, 
> NoSuchFieldException and NoSuchMethodException (which are OK to be ignored) 
> but also harmful exceptions (that should at least be logged), such as 
> NullPointerException, UnsupportedOperationException, SecurityException, etc.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to