Repository navigation
core/proxy: Convert stream proxy errors to native errdefs - #13586
Merged
Merged
Conversation
Some proxy stream setup and receive paths still returned raw RPC status errors while neighboring proxy methods normalized them with errgrpc.ToNative. This made errdefs checks depend on which proxy API surfaced the same remote failure. Normalize event subscription setup and receive errors, and streaming stream creation errors, while preserving io.EOF for completed receive streams. Signed-off-by: Paweł Gronowski <[email protected]>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR normalizes remaining proxy streaming/event-subscription error paths so callers consistently receive native errdefs-compatible errors (via errgrpc.ToNative), avoiding API-dependent behavior when the same remote failure is surfaced through different proxy methods.
Changes:
- Convert
streamCreator.Create()stream creation errors to native errors viaerrgrpc.ToNative. - Convert remote events subscription setup errors to native errors.
- Convert remote events subscription receive errors to native errors while preserving
io.EOFfor clean stream completion.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| core/streaming/proxy/streaming.go | Normalizes stream creation errors with errgrpc.ToNative for consistent errdefs behavior. |
| core/events/proxy/remote_events.go | Normalizes subscribe/recv errors with errgrpc.ToNative while keeping io.EOF unchanged. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
vvoland
marked this pull request as ready for review
June 12, 2026 13:03
AkihiroSuda
approved these changes
Jun 15, 2026
Member
|
@vvoland Do you want this to be cherry-picked ? |
This was referenced Sep 15, 2026
This was referenced Oct 5, 2026
Closed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Some proxy stream setup and receive paths still returned raw RPC status errors while neighboring proxy methods normalized them with errgrpc.ToNative. This made errdefs checks depend on which proxy API surfaced the same remote failure.
Normalize event subscription setup and receive errors, and streaming stream creation errors, while preserving io.EOF for completed receive streams.