You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
proxy: a gRPC call is not retried on another endpoint when the destination cannot reach its application #1646
When the destination proxy cannot reach its local application (connect refused, no healthy upstream), it answers an HTTP request with 503, and the caller's outbound retry policy (retriable-status-codes: [503], agent/internal/xds/proxy/route.go) tries another endpoint. For a gRPC request the destination answers 200 with grpc-status: 14 instead, which that policy never matches.
Measured on the pinned Envoy while working #1641 (PR #1645): a gRPC request to a destination whose application refused the connection came back 200 + grpc-status: 14 and was not retried; the same failure for a plain HTTP request was retried on the other endpoint.
Consequence: a gRPC call that lands on a pod that has just terminated fails with UNAVAILABLE, where an HTTP call is carried over to another endpoint, so pod rolls are not hitless for gRPC unless the client retries itself. The retry policy would need the gRPC conditions (retriable gRPC status such as unavailable), with the same care about requests that had already begun (#1641).
Activity
fix(agent): the destination reports each response's outcome in x-aeth…