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

Curator. LeaderSelector. Two successive calls to interruptLeadership() will break autoRequeue.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.0.1, 4.2.0
    • 5.5.0
    • Recipes
    • Windows 8, JRE 1.8.0_181

    Description

      Curator. LeaderSelector. Two successive calls to interruptLeadership() will break autoRequeue

      If we set autoRequeue to TRUE. But during execution interruptLeadership() will be called from another thread before internalRequeue() completed its work. Then it will break recursive call to internalRequeue(), so that client will not ask for leadership and get stuck.

      We can solve this problem if we check hasLeadership() before calling interruptLeadership(). But it is strange that such check curator library does not do internally.

      Attachments

        Issue Links

          Activity

            People

              kezhuw Kezhu Wang
              tibonarium Bulatov Oleg
              Votes:
              0 Vote for this issue
              Watchers:
              4 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 - 1h 40m
                  1h 40m