Skip to content

[xDS e2e tests] don't set xds_resource_does_not_exist_timeout_ms unnecessarily - #43087

Closed
markdroth wants to merge 2 commits into
grpc:masterfrom
markdroth:xds_e2e_test_does_not_exist_timeout
Closed

markdroth wants to merge 2 commits into
grpc:masterfrom
markdroth:xds_e2e_test_does_not_exist_timeout

Conversation

@markdroth

@markdroth markdroth commented Jul 28, 2026 •

Copy link
Copy Markdown
Member

Change xDS e2e tests to stop lowering the does-not-exist timeout unnecessarily. The low timeout was causing flakiness in the wake of #43052, since that PR changed the code to fetch the next server status notifier update instead of waiting for a particular desired status update. If we time out fetching the initial resource, then the initial server status notifier update would be NOT_FOUND, followed by an OK notification once the resource actually is received.

There seems to be only one test that actually needs the lower timeout. I have retained the lower timeout for that test and added a retry loop with deadline to avoid potential flakiness.

@markdroth
markdroth requested a review from aadikapur July 28, 2026 19:26
@markdroth markdroth added the release notes: no Indicates if PR should not be in release notes label Jul 28, 2026
// client side to wait on status changes instead of
// increasing this timeout.
/*xds_resource_does_not_exist_timeout_ms=*/500,
/*xds_resource_does_not_exist_timeout_ms=*/0,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

If this is set to 0 what would the timeout actually be? I guess the GRPC_ARG_XDS_RESOURCE_DOES_NOT_EXIST_TIMEOUT_MS arg is specifically for the DOES_NOT_EXIST response.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

If this is set to 0 what would the timeout actually be?

It defaults to 15 seconds:

.value_or(Duration::Seconds(15)))),

I guess the GRPC_ARG_XDS_RESOURCE_DOES_NOT_EXIST_TIMEOUT_MS arg is specifically for the DOES_NOT_EXIST response.

Yes, but only in the case where the resource doesn't exist when the client initially subscribes to it. The timeout doesn't apply to the case where a Listener or Cluster resource was sent initially and then is explicitly deleted by the control plane.

For all the gory details on how the XdsClient code handles various error cases, see gRFC A88.

@markdroth
markdroth deleted the xds_e2e_test_does_not_exist_timeout branch July 29, 2026 00:08
asheshvidyut pushed a commit to PeterZhizhin/grpc that referenced this pull request Nov 12, 2026
…cessarily (grpc#43087)

Change xDS e2e tests to stop lowering the does-not-exist timeout unnecessarily.  The low timeout was causing flakiness in the wake of grpc#43052, since that PR changed the code to fetch the next server status notifier update instead of waiting for a particular desired status update.  If we time out fetching the initial resource, then the initial server status notifier update would be NOT_FOUND, followed by an OK notification once the resource actually is received.

There seems to be only one test that actually needs the lower timeout.  I have retained the lower timeout for that test and added a retry loop with deadline to avoid potential flakiness.

Closes grpc#43087

COPYBARA_INTEGRATE_REVIEW=grpc#43087 from markdroth:xds_e2e_test_does_not_exist_timeout 8d03071
PiperOrigin-RevId: 955549807
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants