yomipq commented on issue #1873:
URL: 
https://github.com/apache/cassandra-gocql-driver/issues/1873#issuecomment-2767708909

   > I think that could occur if the same hostID appears twice in the peers 
table, or the local host is in the peers table.
   
   Thank you for telling me that. You are right. I read the code again and now 
I understand what happened.
   
   ```
   cqlsh> SELECT * FROM system.local WHERE key='local';
   
    key   | bootstrapped | broadcast_address | cluster_name     | cql_version | 
data_center    | gossip_generation | host_id                              | 
listen_address | native_protocol_version | partitioner                          
       | rack           | release_version | rpc_address | schema_version        
               | thrift_version | tokens | truncated_at
   
-------+--------------+-------------------+------------------+-------------+----------------+-------------------+--------------------------------------+----------------+-------------------------+---------------------------------------------+----------------+-----------------+-------------+--------------------------------------+----------------+--------+--------------
    local |    COMPLETED |         127.0.0.1 | Amazon Keyspaces |       3.4.4 | 
ap-northeast-1 |                42 | b666465e-cb85-3efa-b3ab-f6cf139e5a39 |     
 127.0.0.1 |                       4 | 
org.apache.cassandra.dht.Murmur3Partitioner | ap-northeast-1 |          3.11.2 
|   127.0.0.1 | 05deae2d-6405-494d-a965-c0e5836bcb3c |         20.1.0 |   null 
|         null
   
   (1 rows)
   cqlsh> SELECT * FROM system.peers;
   
    peer        | data_center    | host_id                              | 
preferred_ip | rack           | release_version | rpc_address | schema_version  
                     | tokens
   
-------------+----------------+--------------------------------------+--------------+----------------+-----------------+-------------+--------------------------------------+-------------------------
    172.16.1.28 | ap-northeast-1 | b666465e-cb85-3efa-b3ab-f6cf139e5a39 |  
172.16.1.28 | ap-northeast-1 |          3.11.2 | 172.16.1.28 | 
05deae2d-6405-494d-a965-c0e5836bcb3c |                  {'-1'}
    172.16.1.14 | ap-northeast-1 | be0f3a14-e107-3fee-a5e5-415c10539abd |  
172.16.1.14 | ap-northeast-1 |          3.11.2 | 172.16.1.14 | 
05deae2d-6405-494d-a965-c0e5836bcb3c | {'9223372036854775806'}
   
   (2 rows)
   ```
   
   Both 127.0.0.1 and 172.16.1.28 have the same hostID.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


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

Reply via email to