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

Mark more grpc error codes as recoverable errors. #182

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

StevenYCChou
Copy link
Contributor

  • When CANCELED is returned, the operation was cancelled. Mark the
    error as recoverable and allows the Client to resend the samples.
  • When DEADLINE_EXCEEDED is returned, the operation might not be
    completed. Mark the error as recoverable and allows the Client to
    resend the samples.
  • When PERMISSION_DENIED or UNAUTHENTICATED errors are returned, it's
    the errors are not caused by the samples - so we mark the errors as
    recoverable errors and allows the Client to resend the samples until
    the permission and authentication are fixed.

- When CANCELED is returned, the operation was cancelled. Mark the
  error as recoverable and allows the Client to resend the samples.

- When DEADLINE_EXCEEDED is returned, the operation might not be
  completed. Mark the error as recoverable and allows the Client to
  resend the samples.

- When PERMISSION_DENIED or UNAUTHENTICATED errors are returned, it's
  the errors are not caused by the samples - so we mark the errors as
  recoverable errors and allows the Client to resend the samples until
  the permission and authentication are fixed.
Copy link
Contributor

@jkohen jkohen left a comment

Choose a reason for hiding this comment

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

@StevenYCChou your analysis of why these errors happen is correct. These errors are generally accepted to be permanent. Can you explain the reason to make them retriable? What does it mean to the application? I want to make sure we are not working around a problem elsewhere.

Let's talk in person if it's easier.

@jkohen jkohen assigned StevenYCChou and unassigned jkohen Nov 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants