[
https://issues.apache.org/jira/browse/LUCENE-4751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13571357#comment-13571357
]
Michael McCandless commented on LUCENE-4751:
--------------------------------------------
80000 is plenty.
But are you certain that's the actual limit? The shell also has its own limits
... eg try running ulimit -n
Can you make a separate test case showing that NPE in IR.close? Also, try
turning on assertions ... it may catch something sooner.
> IndexReader close throwing NullPointerException
> -----------------------------------------------
>
> Key: LUCENE-4751
> URL: https://issues.apache.org/jira/browse/LUCENE-4751
> Project: Lucene - Core
> Issue Type: Bug
> Components: core/search
> Affects Versions: 2.9.2
> Environment: RedHat
> Reporter: Anusha Rao
>
> Hi,
> Has anyone seen the NullPointerException as shown below
> before? We have used Lucene to build a public site search functionality.
> All the IndexReader objects in there are closed appropriately except one that
> throws the following error and results in (too many files open) exception.
> This brings the entire site down.
> The lucene version we are using is lucene-core-2.9.2.jar
>
> Any idea what could cause this exception?
>
>
> java.lang.NullPointerException
> at
> org.apache.lucene.index.SegmentReader$Norm.decRef(SegmentReader.java:393)
> at
> org.apache.lucene.index.SegmentReader.doClose(SegmentReader.java:868)
> at org.apache.lucene.index.IndexReader.decRef(IndexReader.java:170)
> at
> org.apache.lucene.index.DirectoryReader.doClose(DirectoryReader.java:803)
> at org.apache.lucene.index.IndexReader.decRef(IndexReader.java:170)
> at org.apache.lucene.index.IndexReader.close(IndexReader.java:1302)
> at search.Searcher.search(Searcher.java:387) // the close in this
> class does not execute
>
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]