Skip to content

Conversation

@anitarua
Copy link
Contributor

@anitarua anitarua commented Nov 4, 2024

Closes https://github.com/momentohq/dev-eco-issue-tracker/issues/1041

  • When a RESOURCE_EXHAUSTED error is received, we now parse the err metadata in order to report the cause in the message wrapper. If the metadata is not available, we try to use string matching on the error details.
  • Adds ability to get trailing metadata by catching exceptions as RpcErrors for each RPC call across the various clients. Otherwise, err metadata is not available for parsing.

@anitarua anitarua marked this pull request as ready for review November 4, 2024 21:55
@anitarua anitarua requested a review from a team November 4, 2024 21:55
Copy link
Contributor

@malandis malandis left a comment

Choose a reason for hiding this comment

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

Few suggestions for improvement/maintenance.

@anitarua anitarua requested a review from malandis November 5, 2024 00:17
Copy link
Contributor

@malandis malandis left a comment

Choose a reason for hiding this comment

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

Very clean! Just one more change for completeness.

@anitarua anitarua merged commit b4439bd into main Nov 8, 2024
10 checks passed
@anitarua anitarua deleted the resource-exhausted branch November 8, 2024 17:42
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.

3 participants