Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-1938

Lock logic should wait for start level change to occur

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.9
    • Fix Version/s: 2.2.10, 2.3.1, 3.0.0
    • Component/s: None
    • Labels:
      None

      Description

      Consider the case where we have a master and slave Karaf instance:

      1. Master has acquired lock
      ... time passes...
      2. Network problem happens
      3. Master loses lock (due to the network problem) and reduces start level accordingly
      4. Before start level reduction is complete master manages to grab the lock
      6. Start level is set back to normal

      Seems that flipping the start level around before the container has time to complete is not safe. Proposed solution is to just pause the locking loop until the start level is actually complete before trying to regain the lock. This will prevent flipping of the start level too quickly. Patch coming soon

        Attachments

        1. KARAF-1938.trunk.patch
          10 kB
          Jonathan Anstey
        2. KARAF-1938.patch
          11 kB
          Jonathan Anstey
        3. KARAF-1938.2.3.x.patch
          11 kB
          Jonathan Anstey

          Activity

            People

            • Assignee:
              ffang Freeman Fang
              Reporter:
              janstey Jonathan Anstey
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: