Skip to content

grpcerrors: preserve context wrapping decoded status errors - #7445

Draft
crazy-max wants to merge 1 commit into
moby:masterfrom
crazy-max:fix-grpcerrors-preserve-wrapped-context
Draft

crazy-max wants to merge 1 commit into
moby:masterfrom
crazy-max:fix-grpcerrors-preserve-wrapped-context

Conversation

@crazy-max

@crazy-max crazy-max commented Nov 19, 2026 •

Copy link
Copy Markdown
Member

Preserve error context added after decoding a gRPC status when the error is serialized again. The existing check compares only the underlying status, so it can discard wrapping that explains which operation failed. Compare the full error message as well, while retaining the status code and avoiding repeated status prefixes.

Found while investigating #7444. This fixes the loss of added context during serialization. Propagating the session-auth timeout cause remains a separate fix.

Compare the full error message with the decoded status error before
suppressing the status code prefix. Comparing only the underlying status
loses context added by wrappers when the error is serialized again.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant