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 <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >