You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Francisco Guerrero (Jira)" <ji...@apache.org> on 2023/10/20 12:14:00 UTC

[jira] [Commented] (CASSANDRASC-78) Fix token-ranges endpoint to handle gossip-info responses without 'status'

    [ https://issues.apache.org/jira/browse/CASSANDRASC-78?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17777727#comment-17777727 ] 

Francisco Guerrero commented on CASSANDRASC-78:
-----------------------------------------------

+1 (nb) Looks good to me

> Fix token-ranges endpoint to 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
>              Labels: pull-request-available
>
> 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-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org