-
Notifications
You must be signed in to change notification settings - Fork 85
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
fix: split connection pool based on credential #2388
Conversation
@@ -273,14 +278,18 @@ private StreamWriter(Builder builder) throws IOException { | |||
} | |||
} | |||
this.location = location; | |||
CredentialsProvider credentialsProvider = client.getSettings().getCredentialsProvider(); | |||
log.warning("The credentials gotten is " + credentialsProvider.getCredentials()); |
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.
Why are we printing this out?
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.
wrong debug log, removed
ConnectionPoolKey.create(location), | ||
ConnectionPoolKey.create( | ||
location, | ||
credentialsProvider != null ? credentialsProvider.getCredentials() : null), |
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.
Should we use a hash for the key instead? I am wondering if there could be a security concern here.
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.
Changed to use hash
09fa9f4
to
8d661a9
Compare
7dc6243
to
a8c01ed
Compare
c03fe54
to
fb34006
Compare
…-config (#2679) These dependencies were added in #2388 with hardcoded versions. We prefer getting these versions from sdk-platform-java-config (includes both auth and gax versions). auth is included in dependencyManagement here in gapic-generator-java-bom, which is part of first-party-dependencies, and eventually included via sdk-platform-java-config.
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #<issue_number_goes_here> ☕️
If you write sample code, please follow the samples format.