Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-1415

Zookeeper broadcasts host's hostname instead of IP when ecf.exported.containerfactoryargs property is not set

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
    • Environment:

      Any OS, any Java version. The issue presents itself when using the osgi bundles org.apache.hadoop.zookeeper and org.eclipse.ecf.provider.zookeeper inside an Eclipse Equinox framework. I did not test on any other versions.

    • Tags:
      osgi

      Description

      Not setting the ecf.exported.containerfactoryargs property when publishing an OSGi service through Zookeeper results in the service being published under the host's hostname instead of its IP. This means that hosts not able to correctly resolve that hostname cannot connect to its ZooKeeper instance. It would be desirable to use the IP instead of the hostname when that property is purposely left blank e.g. when it is unknown where the application will be deployed.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              steghio Stefano Ghio
            • Votes:
              2 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: