You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
3.x: stop throwing log message on zero token nodes #520
Currently driver logs warning message on every metadata update for each zero token node:
9932 [main] WARN com.datastax.driver.core.ControlConnection - Found invalid row in system.peers: [peer=/127.0.1.3, missing native_transport_address, missing native_transport_port, missing native_transport_port_ssl, tokens=null]. This is likely a gossip or snitch issue, this host will be ignored.
Say you have a cluster with zero token nodes, but you don't want your driver connect to them.
Then shouldConsiderZeroTokenNodesValidPeers is false, but you are getting log messages on every metadata update.
It is a bad UX, we should silently skip them.
Activity
dkropachev commentedon Apr 15, 2025
It was missed when we where working on #317 for
3.xBouncheck commentedon Apr 16, 2025
Isn't it logged only when option is not enabled? Looks to me like it will be logged only if it is supposed to be considered invalid
java-driver/driver-core/src/main/java/com/datastax/driver/core/ControlConnection.java
Lines 1004 to 1023 in 1ca5689
dkropachev commentedon Apr 16, 2025
Say you have a cluster with zero token nodes, but you don't want your driver connect to them.
Then
shouldConsiderZeroTokenNodesValidPeersis false, but you are getting log messages on every metadata update.It is a bad UX, we should silently skip them.
dkropachev commentedon May 20, 2025
Fixed - #519