-
Notifications
You must be signed in to change notification settings - Fork 57
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
Use ConnectionConfig values when establishing session to initial contact point #106
Conversation
a141f76
to
9337308
Compare
9337308
to
9d84173
Compare
1db79ed
to
6d12207
Compare
2819177
to
6a58023
Compare
Align with scylladb/gocql#106, so: When host information was missing, driver used resolved IP address as TLS.ServerName. Instead it should connect to Server specified in ConnectionConfig and use NodeDomain as SNI. Depends: scylladb/scylla-ccm#412 Ref: scylladb/gocql#106
64bad46
to
414bd04
Compare
Align with scylladb/gocql#106, so: When host information was missing, driver used resolved IP address as TLS.ServerName. Instead it should connect to Server specified in ConnectionConfig and use NodeDomain as SNI. Depends: scylladb/scylla-ccm#412 Ref: scylladb/gocql#106
Align with scylladb/gocql#106, so: When host information was missing, driver used resolved IP address as TLS.ServerName. Instead it should connect to Server specified in ConnectionConfig and use NodeDomain as SNI. Depends: scylladb/scylla-ccm#412 Ref: scylladb/gocql#106
…ion to initial contact point When host information was missing, driver used resolved IP address as TLS.ServerName Instead it should connect to Server specified in ConnectionConfig and use NodeDomain as SNI.
414bd04
to
a8f6507
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
one optional nit
/lgtm
/approve
thanks!
return cc | ||
}(), | ||
hostInfo: &gocql.HostInfo{}, | ||
expectedError: fmt.Errorf("can't get client certificate from configuration: %w", fmt.Errorf("can't get current auth info: %w", fmt.Errorf("can't get current context config: %w", fmt.Errorf("current context can't be empty")))), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit (global)
expectedError: fmt.Errorf("can't get client certificate from configuration: %w", fmt.Errorf("can't get current auth info: %w", fmt.Errorf("can't get current context config: %w", fmt.Errorf("current context can't be empty")))), | |
expectedError: fmt.Errorf("can't get client certificate from configuration: %w", fmt.Errorf("can't get current auth info: %w", fmt.Errorf("can't get current context config: %w", errors.New("current context can't be empty")))), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leaving as is, underlying errors can be obtain by using errors.Unwrap(fmt.Errorf("... %w ....", ..., err, ....))
, and errors.Is
supports both.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
for serverless work we need the fix from: scylladb/gocql#106 so we can run with diret ip address for testsing
for serverless work we need the fix from: scylladb/gocql#106 so we can run with diret ip address for testsing
Before this change, the driver, when connecting to a serverless cluster, would try to resolve host-id.* domains as a proxy IP for each node. This commit aligns the behavior with scylladb/python-driver#177 and scylladb/gocql#106. Now, the "Server" field of bundle is the single hostname/IP the driver will use for proxy connection. This simplifies the setup we had in integration tests, removing the necessity of hacks caused by previous behavior (driver trying to resolve host-id.* domains). Fixes scylladb#164 Fixes scylladb#167 Fixes scylladb#169
Before this change, the driver, when connecting to a serverless cluster, would try to resolve host-id.* domains as a proxy IP for each node. This commit aligns the behavior with scylladb/python-driver#177 and scylladb/gocql#106. Now, the "Server" field of bundle is the single hostname/IP the driver will use for proxy connection. This simplifies the setup we had in integration tests, removing the necessity of hacks caused by previous behavior (driver trying to resolve host-id.* domains). Fixes scylladb#164 Fixes scylladb#167 Fixes scylladb#169
Before this change, the driver, when connecting to a serverless cluster, would try to resolve host-id.* domains as a proxy IP for each node. This commit aligns the behavior with scylladb/python-driver#177 and scylladb/gocql#106. Now, the "Server" field of bundle is the single hostname/IP the driver will use for proxy connection. This simplifies the setup we had in integration tests, removing the necessity of hacks to work around previous behavior (driver trying to resolve host-id.* domains). Fixes scylladb#164 Fixes scylladb#167 Fixes scylladb#169
Before this change, the driver, when connecting to a serverless cluster, would try to resolve host-id.* domains as a proxy IP for each node. This commit aligns the behavior with scylladb/python-driver#177 and scylladb/gocql#106. Now, the "Server" field of bundle is the single hostname/IP the driver will use for proxy connection. This simplifies the setup we had in integration tests, removing the necessity of hacks to work around previous behavior (driver trying to resolve host-id.* domains). Fixes scylladb#164 Fixes scylladb#167 Fixes scylladb#169
Before this change, the driver, when connecting to a serverless cluster, would try to resolve host-id.* domains as a proxy IP for each node. This commit aligns the behavior with scylladb/python-driver#177 and scylladb/gocql#106. Now, the "Server" field of bundle is the single hostname/IP the driver will use for proxy connection. This simplifies the setup we had in integration tests, removing the necessity of hacks to work around previous behavior (driver trying to resolve host-id.* domains). Fixes #164 Fixes #167 Fixes #169
When host information was missing, driver used resolved IP address as TLS.ServerName.
Instead it should connect to Server specified in ConnectionConfig and use NodeDomain as SNI.