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

TCPPING: add hosts with bind_addr to initial_hosts

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Minor Minor
    • 5.5.0
    • None
    • None
    • False
    • Hide

      None

      Show
      None
    • False

      Oftentimes, we have a config like this:

      <TCP bind_addr="site_local".../>
      <TCPPING initial_hosts="localhost[7800]" />
      

      This could result in TCP's bind_addr being (e.g. 192.168.1.5), but TCPPING's initial_hosts resolving to 127.0.0.1 (localhost). This results in members not finding each other.

      Usually, this is not an issue because bind_addr and initial_hosts will be set to the same values, but - e.g. for a quick initial demo of JGroups - it means members don't find each other.

      Suggested fix: fetch bind_addr from the transport and add it (multiplied by port_range) to initial_hists.

              rhn-engineering-bban Bela Ban
              rhn-engineering-bban Bela Ban
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: