lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Calvo" <dca...@ig.com.br>
Subject RE: problems with last patch (obtain write.lock while deleting documents)
Date Sat, 09 Feb 2002 20:25:01 GMT
Hi,

I forgot to mention that during this deletion there's no index writer opened and no write
lock in the index. The lock that's causing
the problem is created by the reader when invoking delete(docNum).

--Daniel

> -----Original Message-----
> From: Daniel Calvo [mailto:dcalvo@ig.com.br]
> Sent: sábado, 9 de fevereiro de 2002 17:18
> To: Lucene Users List
> Subject: problems with last patch (obtain write.lock while deleting
> documents)
>
>
> Hi,
>
> I've just updated my version (via CVS) and now I'm having problems with document deletion.
I'm trying to delete a
> document using IndexReader's delete(Term) method and I'm getting an IOException:
>
> java.io.IOException: Index locked for write: Lock@E:\temp\index\write.lock
> 	at org.apache.lucene.index.IndexReader.delete(Unknown Source)
> 	at org.apache.lucene.index.SegmentsReader.doDelete(Unknown Source)
> 	at org.apache.lucene.index.IndexReader.delete(Unknown Source)
> 	at org.apache.lucene.index.IndexReader.delete(Unknown Source)
>       (...)
>
> I'm doing:
>   IndexReader reader = IndexReader.open("index");
>   reader.delete(new Term("fileid", id));
>   reader.close();
>
> I've taken a look at the sources but couldn't find anything wrong. Any ideas?
>
> TIA
>
> Regards,
>
> --Daniel


--
To unsubscribe, e-mail:   <mailto:lucene-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:lucene-user-help@jakarta.apache.org>


Mime
View raw message