-
Notifications
You must be signed in to change notification settings - Fork 618
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Connecting to a load balancer puts wrong node IP in ring #1608
Comments
jameshartig
changed the title
Connecting to a load balancer puts wrong node IP in cluster/ring
Connecting to a load balancer puts wrong node IP in ring
Mar 18, 2022
jameshartig
added a commit
to jameshartig/gocql
that referenced
this issue
Mar 18, 2022
jameshartig
added a commit
to jameshartig/gocql
that referenced
this issue
Mar 18, 2022
jameshartig
added a commit
to jameshartig/gocql
that referenced
this issue
Mar 18, 2022
jameshartig
added a commit
to jameshartig/gocql
that referenced
this issue
Mar 18, 2022
jameshartig
added a commit
to jameshartig/gocql
that referenced
this issue
Mar 18, 2022
jameshartig
added a commit
to jameshartig/gocql
that referenced
this issue
Mar 18, 2022
I wonder if something like dialer with host argument would help in this case 🤔 #1487 (comment) |
jameshartig
added a commit
to jameshartig/gocql
that referenced
this issue
Mar 28, 2022
Yeah the dialer interface described in that comment would allow you to always dial the correct address and having the host information would be necessary. |
jameshartig
added a commit
to jameshartig/gocql
that referenced
this issue
Mar 29, 2022
jameshartig
added a commit
to jameshartig/gocql
that referenced
this issue
Apr 7, 2022
jameshartig
added a commit
to jameshartig/gocql
that referenced
this issue
Apr 7, 2022
jameshartig
added a commit
to jameshartig/gocql
that referenced
this issue
Apr 7, 2022
jameshartig
added a commit
to jameshartig/gocql
that referenced
this issue
Apr 7, 2022
jameshartig
added a commit
to jameshartig/gocql
that referenced
this issue
Apr 7, 2022
jameshartig
added a commit
to jameshartig/gocql
that referenced
this issue
Apr 7, 2022
jameshartig
added a commit
to jameshartig/gocql
that referenced
this issue
Apr 7, 2022
jameshartig
added a commit
to jameshartig/gocql
that referenced
this issue
Apr 7, 2022
jameshartig
added a commit
to jameshartig/gocql
that referenced
this issue
Apr 7, 2022
jameshartig
added a commit
to jameshartig/gocql
that referenced
this issue
Apr 7, 2022
jameshartig
added a commit
to jameshartig/gocql
that referenced
this issue
Apr 7, 2022
jameshartig
added a commit
to jameshartig/gocql
that referenced
this issue
Apr 7, 2022
jameshartig
added a commit
to jameshartig/gocql
that referenced
this issue
Apr 7, 2022
jameshartig
added a commit
to jameshartig/gocql
that referenced
this issue
Apr 7, 2022
jameshartig
added a commit
to jameshartig/gocql
that referenced
this issue
Apr 7, 2022
alanmmock
pushed a commit
to mailgun/gocql
that referenced
this issue
Jul 12, 2022
medasx
pushed a commit
to kiwicom/gocql
that referenced
this issue
Aug 16, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Please answer these questions before submitting your issue. Thanks!
What version of Cassandra are you using?
Yugabyte 2.8
What version of Gocql are you using?
v1.0.0
What version of Go are you using?
go 1.17
What did you do?
What did you expect to see?
What did you see instead?
The issue is that the
controlConn.setupConn
method callsconn.localHostInfo
which ends up sending along theconnectAddress
tohostInfoFromMap
and that always prefers theconnectAddress
when determining how it should connect to the node.Unfortunately the
AddressTranslator
interface doesn't give the function access to theHostInfo
so there's no way for me to know that192.168.0.5
should actually be192.168.0.3
.I had thought to do something like:
but the host filter is not called for the control connection. Calling it for the control connection feels like it's the right thing to do but if it returns false we would need to set up a new control connection using another host.
Finally, we could change the control connection setup to not pass
connectAddress
the first time but there might be people relying on that.If you are having connectivity related issues please share the following additional information
Describe your Cassandra cluster
my-load-balancer
resolves to192.168.0.5
The text was updated successfully, but these errors were encountered: