lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "wenjie zheng" <wenjie.zh...@gmail.com>
Subject Re: Problem when deleting files from index
Date Sun, 05 Mar 2006 14:28:11 GMT
Thanks for the hint.
It's my bad! My code is supposed to create a single thread for each user to
delete all his email records from the user's index.
But there was a bug in my code causing it to spawn more than one threads
trying to modify the same index.
I think that's why sometimes it worked but sometimes it failed.

Thanks
Wenjie

On 3/5/06, Daniel Naber <lucenelist2005@danielnaber.de> wrote:
>
> On Sonntag 05 März 2006 02:36, wenjie zheng wrote:
>
> > a list of email records, first searches in index for
> > its docid.
> > Once it gets the docid, it will try to remove the doc from the index.
> >
> > The problem I ran into was:
> > 4 out 10 times I ran the program, I got "Lock obtain timed out:
>
> Any reason you create a new IndexModifier for each item? Anyway, please
> post a bug report (http://issues.apache.org/jira/browse/LUCENE) and attach
> a self-contained test case so I can try to reproduce this.
>
> Regards
> Daniel
>
> --
> http://www.danielnaber.de
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-dev-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message