-
Notifications
You must be signed in to change notification settings - Fork 88
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 experimental channel refreshing #115
feat: add experimental channel refreshing #115
Conversation
8651577
to
111b544
Compare
google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/BigtableDataSettings.java
Outdated
Show resolved
Hide resolved
As discussed offline
|
111b544
to
8783ce6
Compare
Codecov Report
@@ Coverage Diff @@
## master #115 +/- ##
============================================
- Coverage 81.29% 81.23% -0.07%
- Complexity 937 940 +3
============================================
Files 95 96 +1
Lines 5849 5878 +29
Branches 325 327 +2
============================================
+ Hits 4755 4775 +20
- Misses 918 925 +7
- Partials 176 178 +2
Continue to review full report at Codecov.
|
8783ce6
to
836fdda
Compare
google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/BigtableDataSettings.java
Show resolved
Hide resolved
...-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/RefreshChannel.java
Outdated
Show resolved
Hide resolved
...-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/RefreshChannel.java
Outdated
Show resolved
Hide resolved
...table/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStubSettings.java
Show resolved
Hide resolved
...-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/RefreshChannel.java
Show resolved
Hide resolved
...table/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStubSettings.java
Show resolved
Hide resolved
...table/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStubSettings.java
Outdated
Show resolved
Hide resolved
836fdda
to
f7aede6
Compare
...table/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStubSettings.java
Show resolved
Hide resolved
google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/BigtableDataSettings.java
Show resolved
Hide resolved
...table/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStubSettings.java
Outdated
Show resolved
Hide resolved
f7aede6
to
f74dbfd
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.
LGTM!
Thanks for landing this!
@@ -61,6 +61,7 @@ public void settingsAreNotLostTest() { | |||
String projectId = "my-project"; | |||
String instanceId = "my-instance"; | |||
String appProfileId = "my-app-profile-id"; | |||
boolean isRefreshingChannel = true; |
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 you please add a small test for the default (unset) refreshingChannel as well and that it is false?
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.
added 2 tests for default and false
…GFE and integrate into bigtable client
f74dbfd
to
b9ca9cd
Compare
Implement ChannelPrimer to establish connection to the GFE so bigtable client will reconnect to the Cloud Bigtable service periodically before the connection gets terminated.