Uploaded image for project: 'Apache Curator'
  1. Apache Curator
  2. CURATOR-233

Bug in double barrier

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.8.0
    • None
    • Recipes
    • None

    Description

      Hi,

      I think I discovered a bug in the internalLeave method of the double barrier implementation.

      When a client is told to leave the barrier after maxWait it does not do so. A flag is set but the client does not leave the barrier, instead it keeps iterating through the control loop and drives CPU usage to 100%.

      I have attached an example.

      Best regards

      Lianro

      Attachments

        1. DoubleBarrierTester.java
          2 kB
          J D
        2. DoubleBarrierClient.java
          2 kB
          J D

        Issue Links

          Activity

            People

              mdrob Mike Drob
              Lianro J D
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m