Skip to content

fix: Channel clamping logic in ChannelPools to respect configured channel bounds#12863

Open
lqiu96 wants to merge 4 commits intofeat/channelpool-resizingfrom
fix/channelpool-logic-fix
Open

fix: Channel clamping logic in ChannelPools to respect configured channel bounds#12863
lqiu96 wants to merge 4 commits intofeat/channelpool-resizingfrom
fix/channelpool-logic-fix

Conversation

@lqiu96
Copy link
Copy Markdown
Member

@lqiu96 lqiu96 commented Apr 20, 2026

No description provided.

Copy link
Copy Markdown
Contributor

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

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 introduces a configurable maxResizeDelta to the ChannelPoolSettings and implements a mechanism to log a warning when the channel pool undergoes repeated resizing cycles. It also includes several bug fixes related to channel count clamping and improves the internal logic for determining when a resize is necessary. The review feedback identifies a validation check for maxResizeDelta that is overly restrictive and could cause failures in valid configurations, such as small pools. Additionally, there is a concern regarding the thread safety of the consecutiveResizes counter, which is currently a primitive integer accessed outside of synchronized blocks.

@lqiu96 lqiu96 marked this pull request as ready for review April 20, 2026 20:23
@lqiu96 lqiu96 requested a review from a team as a code owner April 20, 2026 20:23
@lqiu96 lqiu96 changed the base branch from main to feat/channelpool-resizing April 20, 2026 20:23
@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed for 'gapic-generator-java-root'

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

@sonarqubecloud
Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed for 'gapic-generator-java-root'

Failed conditions
14.8% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants