Repository navigation
Conversation
| // 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, |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
If this is set to 0 what would the timeout actually be?
It defaults to 15 seconds:
grpc/src/core/xds/grpc/xds_client_grpc.cc
Line 355 in 5087d4b
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.
…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
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.