joao-r-reis commented on code in PR #1755: URL: https://github.com/apache/cassandra-gocql-driver/pull/1755#discussion_r2143522324
########## control.go: ########## @@ -308,10 +325,16 @@ func (c *controlConn) setupConn(conn *Conn) error { return err } - host = c.session.ring.addOrUpdate(host) + var exists bool + host, exists = c.session.ring.addOrUpdate(host) if c.session.cfg.filterHost(host) { - return fmt.Errorf("host was filtered: %v", host.ConnectAddress()) + return fmt.Errorf("host was filtered: %v (%s)", host.ConnectAddress(), host.HostID()) + } + + if !exists { + c.session.logger.Info("Adding host.", Review Comment: Done -- 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-unsubscr...@cassandra.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: pr-unsubscr...@cassandra.apache.org For additional commands, e-mail: pr-h...@cassandra.apache.org