Skip to content

fix: disable gRPC retries by default#277

Open
ivanauth wants to merge 4 commits into
authzed:mainfrom
ivanauth:fix/issue-200-disable-retries
Open

fix: disable gRPC retries by default#277
ivanauth wants to merge 4 commits into
authzed:mainfrom
ivanauth:fix/issue-200-disable-retries

Conversation

@ivanauth

@ivanauth ivanauth commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Fixes #200.

Disables gRPC client retries by default - the grpc retries fail unrecoverably (RST_STREAM code 0) through envoy/istio (#112). Overridable via { "grpc.enable_retries": 1 }.

Also passes the merged options to preconnected clients (not the raw arg), so the default reaches them; as a side effect they now get the default 30s deadline that lazy clients already had.

Mitigation, not a proven fix for #112 (not reproducible locally). Adds a unit test asserting the default + override.

ivanauth added 4 commits June 16, 2026 20:11
…nts (authzed#200)

Move grpc.enable_retries before ...options so callers can re-enable retries,
and pass this.options (which carries the setting) to the preconnected clients
instead of the raw options, so the default actually applies to the default
PermissionsService client.
…#200)

Uses grpc-js channelFactoryOverride to capture the final merged channel
options. Verified discriminating: fails against the pre-fix v1.ts
(enable_retries undefined), passes with the fix (0), and the override
case yields 1.
@ivanauth ivanauth requested a review from a team as a code owner July 9, 2026 14:40
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.

Default to disabling retries in the grpc client

1 participant