You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pr@cassandra.apache.org by "nivykani (via GitHub)" <gi...@apache.org> on 2026/07/31 22:29:06 UTC
[PR] CASSANDRA-21539: Remove hostname from ClientsTable and GossipInfoTable to avoid reverse-DNS lookups (4.0) [cassandra]
nivykani opened a new pull request, #4989:
URL: https://github.com/apache/cassandra/pull/4989
The current code uses getHostName(), which has the known effect: This method may trigger a name service reverse lookup if the address was created with a literal IP address. This field in both ClientsTable and GossipInfoTable was constructed with addresses to begin with, not names, so getHostName() was always doing a blocking reverse-DNS lookup on row reads for the first call.
This is a potentially slow blocking call, and we want to avoid doing any DNS lookups here because repeatedly querying this table could potentially overwhelm DNS, especially with frequently-changing client connections.
We could instead use getHostName, but the primary key of both ClientsTable and GossipInfoTable is (address, port), where address is type inet. Thus, this field is redundant.
To the best of my searching, no in-repo consumer depends on this column having a resolved name (and instead use an address-only path), and nodetool clientstats already doesn't display the hostname column.
The [Cassandra Jira](https://issues.apache.org/jira/browse/CASSANDRA-21539)
--
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: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org
Re: [PR] CASSANDRA-21539: Remove hostname from ClientsTable and GossipInfoTable to avoid reverse-DNS lookups (4.0) [cassandra]
Posted by "smiklosovic (via GitHub)" <gi...@apache.org>.
smiklosovic closed pull request #4989: CASSANDRA-21539: Remove hostname from ClientsTable and GossipInfoTable to avoid reverse-DNS lookups (4.0)
URL: https://github.com/apache/cassandra/pull/4989
--
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: pr-unsubscribe@cassandra.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: pr-unsubscribe@cassandra.apache.org
For additional commands, e-mail: pr-help@cassandra.apache.org