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

nodetool ring with EC2Snitch, NPE checking for the zone and dc

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Low
    • Resolution: Fixed
    • 0.7.7, 0.8.1
    • None
    • None
    • Cassandra JVM

    Description

      Existing EC2Snitch... compare is done via == instead of equals() while comparing the IP's...
      (endpoint == FBUtilities.getLocalAddress())
      It is ok to compare the Object Address as most of the code uses FBU.getLocalAddress() and it returns the same object everywhere... but it breaks nodetool ring.

      Attachments

        1. EC2Snitch-Patch-2733.patch
          4 kB
          Vijay
        2. EC2Snitch-test-2733.patch
          2 kB
          Vijay

        Activity

          People

            vijay2win@yahoo.com Vijay
            vijay2win@yahoo.com Vijay
            Vijay
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: