You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bookkeeper.apache.org by "Ivan Kelly (JIRA)" <ji...@apache.org> on 2012/12/10 11:51:23 UTC

[jira] [Created] (BOOKKEEPER-497) GcLedgersTest has a potential race

Ivan Kelly created BOOKKEEPER-497:
-------------------------------------

             Summary: GcLedgersTest has a potential race
                 Key: BOOKKEEPER-497
                 URL: https://issues.apache.org/jira/browse/BOOKKEEPER-497
             Project: Bookkeeper
          Issue Type: Bug
            Reporter: Ivan Kelly
            Assignee: Ivan Kelly
             Fix For: 4.2.0


The callbacks use Object#wait/notify without checking a condition. If the callback completes very quickly, the notify will happen before wait is ever called. The best solution is to use a CountDownLatch. Im seeing this problem when applying patch for BOOKKEEPER-205, probably due to a change in timing on the test.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira