amnon heiman created CASSANDRA-10408:
----------------------------------------

             Summary: NodeProbe (NodeTool) getEndpoint always return null
                 Key: CASSANDRA-10408
                 URL: https://issues.apache.org/jira/browse/CASSANDRA-10408
             Project: Cassandra
          Issue Type: Bug
          Components: Tools
            Reporter: amnon heiman
            Priority: Minor


The NodeProbe getEndpoint implementation was changed to use the 
getHostIdToEndpoint map with the host id.

There is a confusion between the keys and value. The search here should have 
been a reverse lookup - in the map the host ids are the values not the keys.

The end result is that getEndpoint() will always return null, as a result 
getDataCenter will be call the EndpointSnitchInfo getDatacenter with null, 
which will be equivalent to call it with the loopback address, in that case 
either fix the getEndpoint implementation, or drop it completely and use the 
loopback address to begin with.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to