lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless (JIRA)" <>
Subject [jira] Commented: (LUCENE-2280) IndexWriter.optimize() throws NullPointerException
Date Sat, 06 Mar 2010 10:53:27 GMT


Michael McCandless commented on LUCENE-2280:

bq.  However, indexing failed again and the index file was again deleted. 

Are you calling .commit() periodically?  It's odd, otherwise, that you have no index on hitting
any problem.  (It's not necessary to call commit until the very end, if you don't need readers
to see the ongoing changes, don't need the durability, etc.).

bq. I am not sure if deletion of the index file when these exceptions are thrown, is the right
bq. Stack trace: index_21f.fdt (The system cannot find the
file specified.)

Lucene isn't "intentionally" deleting files that are referenced by the commit.  But if you're
not committing during the whole IW session, then you'd see no index at the end.

But, this FNFE is not expected in any event.  Seeing the full infoStream leading to this may

That FNFE is happening as IW tries to build the CFS of the segment flushed during close.

Are you using autoCommit=true or false?

The fact that this only happens on Windows is telling.... is there a virus checker running
on this machine?

It'd also be good to know if this still happens on newer versions of Lucene.

> IndexWriter.optimize() throws NullPointerException
> --------------------------------------------------
>                 Key: LUCENE-2280
>                 URL:
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Index
>    Affects Versions: 2.3.2
>         Environment: Win 2003, lucene version 2.3.2, IBM JRE 1.6
>            Reporter: Ritesh Nigam
>         Attachments: lucene.jar
> I am using lucene 2.3.2 search APIs for my application, i am indexing 45GB database which
creates approax 200MB index file, after finishing the indexing and while running optimize()
i can see NullPointerExcception thrown in my log and index file is getting corrupted, log
> ------------------------------------------------------------------------
> Caused by: 
> java.lang.NullPointerException
> 	at
> 	at
> 	at org.apache.lucene.index.SegmentMerger.mergeNorms(
> 	at org.apache.lucene.index.SegmentMerger.merge(
> 	at org.apache.lucene.index.IndexWriter.mergeMiddle(
> 	at org.apache.lucene.index.IndexWriter.merge(
> 	at org.apache.lucene.index.ConcurrentMergeScheduler$
> ------------------------------------------------------------------------
> and this is happening quite frequently, although I am not able to reproduce it on demand,
I saw an issue logged which is some what related to mine issue (
but the only difference here is I am not using Store.Compress for my fields, i am using Store.NO
instead. please note that I am using IBM JRE for my application.
> Is this an issue with lucene?, if yes it is fixed in which version?

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message