lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LUCENE-2940) NPE in TestNRTThreads
Date Sun, 27 Feb 2011 11:00:59 GMT

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

Michael McCandless updated LUCENE-2940:
---------------------------------------

    Attachment: LUCENE-2940.patch

Better patch -- we also need to load the terms index.

> NPE in TestNRTThreads
> ---------------------
>
>                 Key: LUCENE-2940
>                 URL: https://issues.apache.org/jira/browse/LUCENE-2940
>             Project: Lucene - Java
>          Issue Type: Bug
>            Reporter: Michael McCandless
>            Assignee: Michael McCandless
>             Fix For: 3.1, 4.0
>
>         Attachments: LUCENE-2940.patch, LUCENE-2940.patch
>
>
> I hit this when while(1)ing this test... I think it's because the logic on when we ask
the SegmentReader to load stored fields is off...
> {noformat}
> *** Thread: Lucene Merge Thread #1 ***
> org.apache.lucene.index.MergePolicy$MergeException:
> java.lang.NullPointerException
>        at org.apache.lucene.index.ConcurrentMergeScheduler.handleMergeException(ConcurrentMergeScheduler.java:507)
>        at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:472)
> Caused by: java.lang.NullPointerException
>        at org.apache.lucene.index.SegmentReader$FieldsReaderLocal.initialValue(SegmentReader.java:245)
>        at org.apache.lucene.index.SegmentReader$FieldsReaderLocal.initialValue(SegmentReader.java:242)
>        at org.apache.lucene.util.CloseableThreadLocal.get(CloseableThreadLocal.java:68)
>        at org.apache.lucene.index.SegmentReader.getFieldsReader(SegmentReader.java:749)
>        at org.apache.lucene.index.SegmentReader.document(SegmentReader.java:838)
>        at org.apache.lucene.index.IndexReader.document(IndexReader.java:951)
>        at org.apache.lucene.index.TestNRTThreads$1.warm(TestNRTThreads.java:86)
>        at org.apache.lucene.index.IndexWriter.mergeMiddle(IndexWriter.java:3311)
>        at org.apache.lucene.index.IndexWriter.merge(IndexWriter.java:2875)
>        at org.apache.lucene.index.ConcurrentMergeScheduler.doMerge(ConcurrentMergeScheduler.java:379)
>        at org.apache.lucene.index.ConcurrentMergeScheduler$MergeThread.run(ConcurrentMergeScheduler.java:447)
> {noformat}

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


Mime
View raw message