lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "damian@pingtel.com (JIRA)" <j...@apache.org>
Subject [jira] Updated: (LUCENE-353) Locking bug
Date Mon, 14 Nov 2005 20:45:29 GMT
     [ http://issues.apache.org/jira/browse/LUCENE-353?page=all ]

damian@pingtel.com 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: java-dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-dev-help@lucene.apache.org


Mime
View raw message