-
Notifications
You must be signed in to change notification settings - Fork 132
chore: enable multplexed sessions for experimental host #3676
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
chore: enable multplexed sessions for experimental host #3676
Conversation
google-cloud-spanner/src/main/java/com/google/cloud/spanner/SessionPoolOptions.java
Outdated
Show resolved
Hide resolved
google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerOptions.java
Show resolved
Hide resolved
...le-cloud-spanner/src/main/java/com/google/cloud/spanner/connection/ConnectionProperties.java
Show resolved
Hide resolved
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.
Can we add a test using the mock Spanner server for this option, and also include a test case that covers the situation that this new field tries to fix? (My understanding is that the need for a separate field was that only setting the various use-mux-sessions
to true was not enough to prevent the BatchCreateSessions
RPC to be called. This PR does not really do anything other than setting those three fields to true, which makes me believe that this change does not really fix the original problem. Or am I missing something here?
google-cloud-spanner/src/main/java/com/google/cloud/spanner/SessionPoolOptions.java
Outdated
Show resolved
Hide resolved
google-cloud-spanner/src/main/java/com/google/cloud/spanner/SessionPoolOptions.java
Outdated
Show resolved
Hide resolved
google-cloud-spanner/src/main/java/com/google/cloud/spanner/SpannerOptions.java
Outdated
Show resolved
Hide resolved
google-cloud-spanner/src/main/java/com/google/cloud/spanner/connection/ConnectionOptions.java
Outdated
Show resolved
Hide resolved
google-cloud-spanner/src/main/java/com/google/cloud/spanner/connection/ConnectionOptions.java
Outdated
Show resolved
Hide resolved
...le-cloud-spanner/src/main/java/com/google/cloud/spanner/connection/ConnectionProperties.java
Show resolved
Hide resolved
The code where its setting the minSessions and maxSessions to 0 is preventing the BatchCreateSessions rpc to be called. |
Ensure multiplexed sessions are used when client is connecting to an experimental host