Skip to content

proxy: a gRPC call is not retried on another endpoint when the destination cannot reach its application #1646

Closed

Description

@bpalermo

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).

🤖 Generated with Claude Code

https://claude.ai/code/session_01NArCRTfMPZkw4Y97U9Gdsr

Activity

  1. added
    bug
    proxy
    on Oct 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugproxy

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions