fix(bigtable): DynamicChannelPoolSizingPolicyOption used correctly by scotthart · Pull Request #16188 · googleapis/google-cloud-cpp · GitHub
Skip to content

fix(bigtable): DynamicChannelPoolSizingPolicyOption used correctly#16188

Merged
scotthart merged 4 commits into
googleapis:mainfrom
scotthart:bigtable_pool_sizing_option
Jun 24, 2026
Merged

fix(bigtable): DynamicChannelPoolSizingPolicyOption used correctly#16188
scotthart merged 4 commits into
googleapis:mainfrom
scotthart:bigtable_pool_sizing_option

Conversation

@scotthart

Copy link
Copy Markdown
Member

No description provided.

@scotthart scotthart requested a review from a team as a code owner June 23, 2026 22:13
@product-auto-label product-auto-label Bot added the api: bigtable Issues related to the Bigtable API. label Jun 23, 2026

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

This pull request adds support for configuring the DynamicChannelPoolSizingPolicyOption when creating a BigtableStub with the random two least used decorator. It introduces accessor methods to retrieve the channel pool and its sizing policy, along with a unit test to verify the policy propagation. The review feedback recommends returning the shared pointer by const& in pool() and using auto const& in the test to avoid unnecessary copies and atomic reference count overhead.

Comment thread google/cloud/bigtable/internal/bigtable_random_two_least_used_decorator.h Outdated
Comment thread google/cloud/bigtable/internal/bigtable_stub_factory_test.cc Outdated
@codecov

codecov Bot commented Jun 23, 2026

Copy link
Copy Markdown

Comment thread google/cloud/bigtable/internal/bigtable_stub_factory.cc
@scotthart scotthart enabled auto-merge (squash) June 24, 2026 15:27
@scotthart scotthart merged commit 6b42af6 into googleapis:main Jun 24, 2026
65 checks passed
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 Bigtable API.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants