Skip to content

chore(grpc-gcp): avoid premature scale-up race in GcpManagedChannelTest.testPickLeastBusyWithDynamicScaleUp - #15424

Merged
jinseopkim0 merged 1 commit into
mainfrom
test/grpc-gcp-scale-up-race
Dec 4, 2026
Merged

jinseopkim0 merged 1 commit into
mainfrom
test/grpc-gcp-scale-up-race

Conversation

@jinseopkim0

Copy link
Copy Markdown
Contributor

b/580633849

Load channels evenly to minSize * maxRpcPerChannel - 1 before asserting minSize channels so maybeSignalScaleUp() does not fire early before the explicit scale-up trigger call.

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

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.

Code Review

This pull request updates the testPickLeastBusyWithDynamicScaleUp test in GcpManagedChannelTest.java to load channels just below the pool-wide scale-up threshold before triggering the scale-up with an additional call. This ensures a more precise test of the dynamic scale-up behavior. There are no review comments to address, and I have no feedback to provide.

@jinseopkim0
jinseopkim0 marked this pull request as ready for review December 4, 2026 16:36
@jinseopkim0
jinseopkim0 requested review from a team as code owners December 4, 2026 16:36
@jinseopkim0
jinseopkim0 requested a review from lqiu96 December 4, 2026 16:36
@jinseopkim0
jinseopkim0 merged commit 04480d8 into main Dec 4, 2026
203 checks passed
@jinseopkim0
jinseopkim0 deleted the test/grpc-gcp-scale-up-race branch December 4, 2026 20:10
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