Skip to content

chore: factor out per operation settings into a separate class#2796

Merged
gcf-merge-on-green[bot] merged 3 commits intomainfrom
ctx2-per-op
Feb 23, 2026
Merged

chore: factor out per operation settings into a separate class#2796
gcf-merge-on-green[bot] merged 3 commits intomainfrom
ctx2-per-op

Conversation

@igorbernstein2
Copy link
Copy Markdown
Contributor

Currently Stubs get access to both BigtableClientContext and EnhancedStubSettings. And since BigtableClientContext is derived from EnhancedStubSettings there is quite a bit of overlap settings which makes it hard to keep them consistent. This PR builds towards fixing this by removing access to EnhancedStubSettings and replacing it with disjoint derivative classes.

This PR moves all of the per-op settings into a separate class. The next step will be to copy the remaining bits to BigtableClientContext and have EnhancedBigtableStub depend solely on BigtableClientContext and ClientOperationSettings.

@igorbernstein2 igorbernstein2 requested review from a team as code owners February 23, 2026 17:01
@product-auto-label product-auto-label Bot added size: xl Pull request size is extra large. api: bigtable Issues related to the googleapis/java-bigtable API. labels Feb 23, 2026
Change-Id: I10b658c2a808543ba29830a9ccccb21cdf862768
Change-Id: I92a22daa8ed049b94093eccb054cdb2d401ffdea
@product-auto-label product-auto-label Bot added size: l Pull request size is large. and removed size: xl Pull request size is extra large. labels Feb 23, 2026
Copy link
Copy Markdown
Contributor

@nimf nimf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

.setMaxRetryDelay(Duration.ofMinutes(1))
.setInitialRpcTimeout(Duration.ofSeconds(5))
.setRpcTimeoutMultiplier(1.0)
.setMaxRpcTimeout(Duration.ofSeconds(20))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I know it was like that, but these three settings seem to have a typo somewhere, they don't work well together with the current values:
initial timeout: 5 sec
mutiplier: 1.0
max timeout: 20 sec

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I added a todo to keep this pr faithful as a non-functional change

Change-Id: If7064200cbfb1ca7ac1ae0ac41335b88b9b2ed2a
@igorbernstein2 igorbernstein2 added the automerge Merge the pull request once unit tests and other checks pass. label Feb 23, 2026
@gcf-merge-on-green gcf-merge-on-green Bot merged commit 99b1412 into main Feb 23, 2026
28 checks passed
@gcf-merge-on-green gcf-merge-on-green Bot removed the automerge Merge the pull request once unit tests and other checks pass. label Feb 23, 2026
@gcf-merge-on-green gcf-merge-on-green Bot deleted the ctx2-per-op branch February 23, 2026 20:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigtable Issues related to the googleapis/java-bigtable API. size: l Pull request size is large.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants