Uploaded image for project: 'JGroups'
  1. JGroups
  2. JGRP-2535

Support for unresolved hostname in TCPPING

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 4.2.12, 5.1.6
    • 4.2.11
    • None
    • False
    • False
    • Undefined

      In OCP and cross-site (RELAY2) we have a use case where the Infinispan
      cluster is started before the remote cross-site service.

      The method RELAY2#startRelayer() fails because JGroups tries to resolve
      the hostnames while parsing the initial_host[1] from the configuration
      file. It throws the followin exception

      java.net.UnknownHostException: <host>: Name or service not known

      As a result, the xsite is never formed because the SiteMaster's RELAY2
      doesn't have a channel, even if we start the other site later.

      Would it be possible to add support for unresolved addresses in
      TCPPING.initial_host?

      I'm thinking about using InetSocketAddress in "initial_host" list and,
      in TCPPING#findMembers(), check for unresolved address
      (InetSocketAddress#isUnresolved()) and try to resolve the missing one
      on demand. If it isn't resolved, that entry is ignored in that round.

      [1]
      https://github.com/belaban/JGroups/blob/9ff8f09dd08a73263ebb289b610472c3ef1ac946/src/org/jgroups/util/Util.java#L3605

              rhn-engineering-bban Bela Ban
              pruivo@redhat.com Pedro Ruivo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: