[ 
https://issues.apache.org/jira/browse/CASSANDRASC-78?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Arjun Ashok updated CASSANDRASC-78:
-----------------------------------
    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.
{code:java}
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}{code}

  was:
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}

```


> Fix token-ranges endpoint to o handle gossip-info responses without 'status'
> ----------------------------------------------------------------------------
>
>                 Key: CASSANDRASC-78
>                 URL: https://issues.apache.org/jira/browse/CASSANDRASC-78
>             Project: Sidecar for Apache Cassandra
>          Issue Type: Bug
>          Components: Rest API
>            Reporter: Arjun Ashok
>            Assignee: Arjun Ashok
>            Priority: Normal
>
> 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.
> {code:java}
> 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}{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org
For additional commands, e-mail: commits-h...@cassandra.apache.org

Reply via email to