Uploaded image for project: 'Apache Cassandra'
  1. Apache Cassandra
  2. CASSANDRA-94

Remove mix of ip-address and hostnames

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.3
    • None
    • None

    Description

      The mix of ip-address and hostnames may cause confusion and problems.

      One example is that the EndPoint is internally represented as a four byte IPv4 address in the gossip messages, but upon arrival there is a reverse-lookup into a hostname that is used to create the new EndPoint java object on the receiver side. This is likely to cause problems if a fully qualified hostname is used on one end but the reverse lookup returns just a short machine name, or vice versa.

      It also has the strange effect that if you configure ListenAddress using IP-addresses it works only if it is NOT possible to do a reverse lookup of those addresses.

      Suggest FBUtilities.getHostName() is renamed to getHostAddress() and made to always return the string representation of the IPv4 address.
      Additionally EndPoint.fromBytes() should not attempt a reverse lookup, but just convert the four byte wire format of the IP to the string representation.

      Attachments

        Issue Links

          Activity

            People

              jbellis Jonathan Ellis
              permellqvist Per Mellqvist
              Jonathan Ellis
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

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