Skip to content

test(xds): fix intermittent circuit breaking test flake by adding CDS settle duration - #274

Closed
rishesh007 wants to merge 3 commits into
grpc:mainfrom
rishesh007:circuit_breaking_test
Closed

test(xds): fix intermittent circuit breaking test flake by adding CDS settle duration#274
rishesh007 wants to merge 3 commits into
grpc:mainfrom
rishesh007:circuit_breaking_test

Conversation

@rishesh007

@rishesh007 rishesh007 commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Intermittent flakes (approx. 1-in-20 runs) in CircuitBreakingTest.test_circuit_breaking cause EMPTY_CALL in-flight RPC counts to reach ~2000 instead of settling in the expected range [950, 1010].

This occurs because backend service circuit breaker configurations (maxRequests) are patched asynchronously in GCP Traffic Director. If step 11 enables keep-open metadata immediately after initial connectivity is confirmed, background EMPTY_CALL traffic at 100 QPS can initiate ~2000 open RPCs before Traffic Director's CDS update propagates to the client pod. Because keep-open RPCs never terminate unless errored, any call opened before circuit breaking takes effect remains active indefinitely and permanently inflates steady-state in-flight counts.

This change introduces _SETTLE_DURATION (10s) in step 10 to allow CDS circuit breaker configurations to propagate and settle on the client pod before enabling keep-open metadata.

Test Instance:
grpc/core/master/linux/grpc_xds_k8s_lb

@rishesh007
rishesh007 requested a review from a team as a code owner August 3, 2026 06:25
@rishesh007 rishesh007 self-assigned this Aug 3, 2026
@rishesh007
rishesh007 requested review from pawbhard and sreenithi and removed request for eshitachandwani and kannanjgithub August 3, 2026 06:26
@rishesh007 rishesh007 closed this Aug 7, 2026
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.

1 participant