Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-5546

Zookeper master election logic is too tightly bound to the route policy logic

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.10.0
    • Fix Version/s: 2.11.0
    • Component/s: camel-zookeeper
    • Labels:
      None
    • Patch Info:
      Patch Available
    • Estimated Complexity:
      Unknown

      Description

      The current structure of the ZooKeeperRoutePolicy does not allow the master election to be re-used.

      Extracting the master election to a separate top-level class with a suitable, simple API;

      public boolean isMaster() { ... } 

      would make re-using the election for things that are not a route easier.

      The election constructor then takes the same parameters as the existing ZookeeperRoutePolicy, and the new ZooKeeperRoutePolicy would take an election instance.

        Attachments

        1. CAMEL-5546.diff
          32 kB
          Andrew Wheat

          Activity

            People

            • Assignee:
              njiang Willem Jiang
              Reporter:
              candle Andrew Wheat
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: