Uploaded image for project: 'Sidecar for Apache Cassandra'
  1. Sidecar for Apache Cassandra
  2. CASSANDRASC-78

Fix token-ranges endpoint to handle gossip-info responses without 'status'

    XMLWordPrintableJSON

Details

    Description

      This is a fix to look for the host status in ‘Status’ and ‘StatusWithPort’ attributes in GossipInfo response  to determine the ‘state’ of the node.

      Currently, we only check for ‘status’ which can be missing from gossipInfo in some cases, which will result in a replacement node status to be reported as `Joining` instead of `Replacing`.

      eg.

      Found gossipInfoEntry={generation=1697736379, schema=6d6abc83-a600-35a4-8bbe-fe5edca6a63b, rack=rack1, heartbeat=119, releaseVersion=4.1.4-SNAPSHOT, hostId=00000000-0000-4000-8000-000000000006, nativeAddressAndPort=127.0.0.6:9042, load=76459.0, internalAddressAndPort=127.0.0.6:7012, sstableVersions=big-nb, tokens=<hidden>, dc=datacenter1, netVersion=12, statusWithPort=BOOT_REPLACE,127.0.0.5:7012}

      Attachments

        Issue Links

          Activity

            People

              arjunashok Arjun Ashok
              arjunashok Arjun Ashok
              Arjun Ashok
              Dinesh Joshi, Francisco Guerrero, Yifan Cai
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: