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

Zookeeper route policy constructor has no need to throw exceptions

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment