Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-7648

Locator will not start if other locator hostnames are not resolvable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.11.0, 1.12.0
    • 1.12.0
    • locator, membership
    • None

    Description

      Starting a locator with a list of other locators will fail if any names in that list are not resolvable. This is a common occurrence in a Kubernetes where DNS entries for a container are not created until the container is created. Starting two locators will result in the first one failing until the second one starts.

      java -server -classpath /geode/lib/geode-dependencies.jar -Djava.awt.headless=true -Dsun.rmi.dgc.server.gcInterval=9223372036854775806 -Dgemfire.log-file= -Dlog4j.configurationFile=/geode/config/log4j.xml -Dgemfire.enable-cluster-configuration=true -Dgemfire.launcher.registerSignalHandlers=true '-Dgemfire.locators=geodecluster-sample-locator-0.geodecluster-sample-locator[10334],geodecluster-sample-locator-1.geodecluster-sample-locator[10334]' -Dgemfire.enable-experimental-cluster-management-service=true -Dgemfire.load-cluster-configuration-from-dir=false org.apache.geode.distributed.LocatorLauncher start geodecluster-sample-locator-0 --port=10334
      [warn 2020/01/03 19:02:53.524 GMT <main> tid=0x1] Unknown locator host: geodecluster-sample-locator-1.geodecluster-sample-locator
      [warn 2020/01/03 19:02:53.532 GMT <main> tid=0x1] Unknown locator host: geodecluster-sample-locator-1.geodecluster-sample-locator
      [info 2020/01/03 19:02:53.860 GMT <main> tid=0x1] Starting peer location for Distribution Locator on geodecluster-sample-locator-0.geodecluster-sample-locator.default.svc.cluster.local[10334]
      [info 2020/01/03 19:02:53.868 GMT <main> tid=0x1] locator is exiting due to an exception
      org.apache.geode.GemFireConfigException: This process is attempting to use a locator at an unknown address or FQDN: geodecluster-sample-locator-1.geodecluster-sample-locator
          at org.apache.geode.distributed.internal.membership.gms.GMSUtil.parseLocators(GMSUtil.java:139)
          at org.apache.geode.distributed.internal.membership.gms.locator.GMSLocator.<init>(GMSLocator.java:106)
          at org.apache.geode.distributed.internal.membership.adapter.GMSLocatorAdapter.<init>(GMSLocatorAdapter.java:50)
          at org.apache.geode.distributed.internal.membership.NetLocatorFactory.newLocatorHandler(NetLocatorFactory.java:32)
          at org.apache.geode.distributed.internal.InternalLocator.startPeerLocation(InternalLocator.java:612)
          at org.apache.geode.distributed.internal.InternalLocator.startLocator(InternalLocator.java:373)
          at org.apache.geode.distributed.LocatorLauncher.start(LocatorLauncher.java:681)
          at org.apache.geode.distributed.LocatorLauncher.run(LocatorLauncher.java:588)
          at org.apache.geode.distributed.LocatorLauncher.main(LocatorLauncher.java:210)
      Exception in thread "main" org.apache.geode.GemFireConfigException: This process is attempting to use a locator at an unknown address or FQDN: geodecluster-sample-locator-1.geodecluster-sample-locator
          at org.apache.geode.distributed.internal.membership.gms.GMSUtil.parseLocators(GMSUtil.java:139)
          at org.apache.geode.distributed.internal.membership.gms.locator.GMSLocator.<init>(GMSLocator.java:106)
          at org.apache.geode.distributed.internal.membership.adapter.GMSLocatorAdapter.<init>(GMSLocatorAdapter.java:50)
          at org.apache.geode.distributed.internal.membership.NetLocatorFactory.newLocatorHandler(NetLocatorFactory.java:32)
          at org.apache.geode.distributed.internal.InternalLocator.startPeerLocation(InternalLocator.java:612)
          at org.apache.geode.distributed.internal.InternalLocator.startLocator(InternalLocator.java:373)
          at org.apache.geode.distributed.LocatorLauncher.start(LocatorLauncher.java:681)
          at org.apache.geode.distributed.LocatorLauncher.run(LocatorLauncher.java:588)
          at org.apache.geode.distributed.LocatorLauncher.main(LocatorLauncher.java:210)
      

      Attachments

        Activity

          People

            echobravo Ernest Burghardt
            jbarrett Jacob Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1.5h
                1.5h