Mike,

Not very sure about whether IndexWriter is closed. The index update goes
through Solr, I'll debug it tonight. 

Even if IndexWriter is not closed, since I "validate" the snapshot, at least
that the snapshot should keep being "validated". :-)

--Yajun


Michael McCandless-2 wrote:
> 
> 
> One more question: are you sure that when you copy out your snapshot,  
> the IndexWriter was closed?
> 
> If IndexWriter is open when the copy is done, it's possible to get a  
> corrupted copy.
> 
> Mike
> 
> Yajun wrote:
> 
>>
>> I don't use deleteDocument nor setNorm with IndexReader. I tried  
>> both using
>> hard links (cp -lr) and copy (cp -r) to create snapshot, both has  
>> the same
>> problem.
>>
>> It seems that segment file segments_xxx has segment that does not  
>> exist in
>> the index directory anymore.
>>
>> I used to delete all the "invalidated" indexes. Now I'll keep them,
>> hopefully it will give me some clue.
>>
>> --Yajun
>>
>>
>> Michael McCandless-2 wrote:
>>>
>>>
>>> IndexReader only does deletes if you use the deleteDocument or  
>>> setNorm
>>> methods.  Are you using these?  If not, then I think there must be
>>> something outside of Lucene causing this because IndexReader won't
>>> make any changes to an index otherwise.
>>>
>>> It's very strange that all of your snapshots suddenly become unusable
>>> at the same time.
>>>
>>> Are your snapshots complete copies, ie, there are no hard or soft
>>> links in them?
>>>
>>> Mike
>>>
>>>
>>
>> -- 
>> View this message in context:
>> http://www.nabble.com/-jira--Created%3A-%28LUCENE-1328%29-FileNotFoundException-in-tp18311277p18325285.html
>> Sent from the Lucene - Java Developer mailing list archive at  
>> Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/-jira--Created%3A-%28LUCENE-1328%29-FileNotFoundException-in-tp18311277p18326328.html
Sent from the Lucene - Java Developer mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to