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

Zookeeper route policy constructor has no need to throw exceptions

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.10.0
    • 2.11.0
    • camel-zookeeper
    • None
    • Patch Available
    • Novice

    Description

      The only exceptions that are thrown by the constructor of the ZooKeeperRoutePolicy are thrown by the requirement to make the node name more pretty - adding the hostname to the created zookeeper node.

      This exception is fairly unlikely to happen and therefore can be caught closer to the cause, logging a warning and using a default hostname.

      This would clean up the API by avoiding throwing any exceptions.

      Attachments

        1. zk-exception-patch.diff
          2 kB
          Andrew Wheat

        Activity

          People

            davsclaus Claus Ibsen
            candle Andrew Wheat
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: