You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 042dd3e
Browse filesBrowse the repository at this point in the historyBrowse files
## Summary
- Adds a `methodScopeKey` to `DivertingUnaryCallable` so session load
can be configured per-RPC-method via `SessionDiversionConfiguration`, in
addition to the existing global `session_load`.
- `resolveSessionLoad()` checks `global_diversion` or
`per_scope_diversion` depending on which strategy the server returns;
falls back to flat `session_load` when no diversion config is present.
- Fixes `ClientConfigurationManager` to preserve session config when a
`SessionDiversionConfiguration` is present even if the global
`session_load` is 0 (diversion config encodes its own per-scope session
loads).
## Test plan
- [ ] `DivertingUnaryCallableTest`: covers global diversion (load=1
routes to experimental, load=0 falls back to classic), per-scope match
(routes to experimental), and per-scope non-match (falls back to
classic)
- [ ] Existing session routing tests continue to pass unchanged
Copy file name to clipboardExpand all lines: java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/compat/ShimImpl.java
+16-10Lines changed: 16 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -376,44 +376,50 @@ public <RowT> UnaryCallable<Query, RowT> decorateReadRow(
376
376
classic,
377
377
newRowBuilderShim<>(readRowShim, rowAdapter, r -> r.hasRow() ? r.getRow() : null),
Copy file name to clipboardExpand all lines: java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/compat/WipFeatures.java
Copy file name to clipboardExpand all lines: java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/compat/ops/DivertingUnaryCallable.java
Copy file name to clipboardExpand all lines: java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/internal/util/ClientConfigurationManager.java
Copy file name to clipboardExpand all lines: java-bigtable/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/data/v2/stub/EnhancedBigtableStub.java
0 commit comments