[ http://issues.apache.org/jira/browse/LUCENE-353?page=all ]
[EMAIL PROTECTED] updated LUCENE-353: -------------------------------------- Attachment: LockTest.java Did not realize it was fixed already. Just in case if someone wants to check it in: this is a unit test that shows original problem. > Locking bug > ----------- > > Key: LUCENE-353 > URL: http://issues.apache.org/jira/browse/LUCENE-353 > Project: Lucene - Java > Type: Bug > Components: Other > Versions: 1.4 > Environment: Operating System: All > Platform: All > Reporter: John Wang > Assignee: Lucene Developers > Attachments: LockTest.java > > In org.apache.lucene.store.Lock, line 57 (lucene_1_4_final branch): > if (++sleepCount == maxSleepCount) > is incorrect, the sleepCount is incremented before the compare causing it > throwing the exception with out waiting for at least 1 interation. > Should be changed instead to: > if (sleepCount++ == maxSleepCount) > As this is a self-contained simple fix, I am not submitting a patch. > Thanks > -John -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]