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
feat: add toString to Bigtable*Settings to display defaults #235
Conversation
Codecov Report
@@ Coverage Diff @@
## master #235 +/- ##
============================================
- Coverage 80.69% 80.15% -0.54%
Complexity 1049 1049
============================================
Files 99 99
Lines 6541 6556 +15
Branches 344 322 -22
============================================
- Hits 5278 5255 -23
- Misses 1082 1097 +15
- Partials 181 204 +23
Continue to review full report at Codecov.
|
I think we can improve on this: The main thing that this is missing is the per-rpc settings: what's the total timeout for readRows? what's exponential backoff is configured for mutateRow? |
@rahulKQL is this unblocked now? |
Unfortunately, this still blocked due to #1017 from gax is yet to release. |
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.
to be reviewed
This PR adds toString() to all three BigtableDataSettings,BigtableTableAdminSettings, BigtableInstanceAdminSettings. This is to help user log the current settings.
public String toString() { | ||
return MoreObjects.toStringHelper(this) | ||
.add("projectId", projectId) | ||
.add("stubSettings", stubSettings) |
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.
does this need instanceId, or is it part of this
?
Closing in favor #488 |
Fixes #233
This PR adds toString() to all three BigtableDataSettings,BigtableTableAdminSettings, BigtableInstanceAdminSettings. This is to help user log the current settings.
This would display the default in the following manner:
BigtableDataSettings{projectId=fake-project, instanceId=fake-instance, appProfileId=fake-app-profile, stubSettings=EnhancedBigtableStubSettings{executorProvider=InstantiatingExecutorProvider{executorThreadCount=8, threadFactory=com.google.api.gax.core.InstantiatingExecutorProvider$1@533dcfeb}, transportChannelProvider=com.google.api.gax.grpc.InstantiatingGrpcChannelProvider@8062dcc, credentialsProvider=GoogleCredentialsProvider{scopesToApply=[https://www.googleapis.com/auth/bigtable.data, https://www.googleapis.com/auth/bigtable.data.readonly, https://www.googleapis.com/auth/cloud-bigtable.data, https://www.googleapis.com/auth/cloud-bigtable.data.readonly, https://www.googleapis.com/auth/cloud-platform, https://www.googleapis.com/auth/cloud-platform.read-only], jwtEnabledScopes=[https://www.googleapis.com/auth/bigtable.data, https://www.googleapis.com/auth/cloud-bigtable.data, https://www.googleapis.com/auth/cloud-platform], OAuth2Credentials=null}, headerProvider=com.google.api.gax.rpc.NoHeaderProvider@bab4db70, internalHeaderProvider=com.google.api.gax.rpc.NoHeaderProvider@6d584b5d, clock=com.google.api.core.NanoClock@f33616bc, endpoint=bigtable.googleapis.com:443, streamWatchdogProvider=com.google.api.gax.rpc.InstantiatingWatchdogProvider@885d9266, streamWatchdogCheckInterval=PT10S, tracerFactory=com.google.api.gax.tracing.OpencensusTracerFactory@121cd451}}