Skip to content

chore(spanner): extract ErrorDetails from grpc-status-details-bin for raw gRPC exceptions#13320

Merged
sakthivelmanii merged 1 commit into
mainfrom
chore-spanner-error-details
Jun 19, 2026
Merged

chore(spanner): extract ErrorDetails from grpc-status-details-bin for raw gRPC exceptions#13320
sakthivelmanii merged 1 commit into
mainfrom
chore-spanner-error-details

Conversation

@sakthivelmanii

Copy link
Copy Markdown
Contributor

No description provided.

@sakthivelmanii
sakthivelmanii requested review from a team as code owners June 1, 2026 15:55
@sakthivelmanii
sakthivelmanii requested a review from olavloite June 1, 2026 15:55

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request enhances error detail extraction in SpannerException and SpannerExceptionFactory by supporting parsing of grpc-status-details-bin metadata from trailers. It also updates getRetryDelayInMillis, extractResourceInfo, and extractErrorInfo to leverage the centralized extractErrorDetails helper. A review comment points out a correctness bug in SpannerExceptionFactory.extractErrorDetails where the apiException parameter is completely unused, meaning error details from apiException are not extracted when cause is not a SpannerException.

@sakthivelmanii
sakthivelmanii force-pushed the chore-spanner-error-details branch 4 times, most recently from 5ddfcf9 to cabab0f Compare June 5, 2026 08:18
@sakthivelmanii
sakthivelmanii force-pushed the chore-spanner-error-details branch from cabab0f to 19f63c8 Compare June 17, 2026 09:39
@sakthivelmanii
sakthivelmanii merged commit edc41b9 into main Jun 19, 2026
205 of 206 checks passed
@sakthivelmanii
sakthivelmanii deleted the chore-spanner-error-details branch June 19, 2026 03:51
lqiu96 pushed a commit that referenced this pull request Jun 30, 2026
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.

2 participants