Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Map view error to appropriate status; don't retry if NotFound/AlreadyExists. #3042

Merged

Conversation

afck
Copy link
Contributor

@afck afck commented Dec 17, 2024

Motivation

The proxy returns a gRPC status with code Unknown for any ViewError, which causes the client to retry the request. For most errors, this doesn't make sense.

Proposal

Map the errors to appropriate status codes. Don't retry on "not found" or "already exists" errors.

Test Plan

This brings down the 53 seconds from the scenario in #3029 to less than 9 seconds.

Release Plan

  • These changes should
    • be released in a new SDK,
    • be released in a validator hotfix.
  • These changes should be ported to the main branch.

Links

@afck afck requested review from ma2bd, deuszx and bart-linera December 17, 2024 10:44
@afck afck merged commit bd0727d into linera-io:testnet_archimedes Dec 17, 2024
21 checks passed
@afck afck deleted the testnet_archimedes-view-error-status branch December 17, 2024 11:09
afck added a commit to afck/linera-protocol that referenced this pull request Dec 17, 2024
afck added a commit that referenced this pull request Dec 17, 2024
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