Skip to content
New issue

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

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

Already on GitHub? # to your account

proxy: map more low-level errors to Service Unavailable (503) #2098

Conversation

fvennetier
Copy link
Member

SUMMARY

Some low-level errors like CODE_AVOIDED (8) did not have a particular mapping to high-level errors, and thus triggered the ambiguous Internal Server Error (500) error. We choose to map these error to the Service Unavailable (503) which is better managed by calling applications (they usually retry the request after a delay).

ISSUE TYPE
  • Bugfix Pull Request
COMPONENT NAME
  • oio-proxy
SDS VERSION
openio 5.7.1.dev1

Some low-level errors like CODE_AVOIDED (8) did not have a particular
mapping to high-level errors, and thus triggered the ambiguous Internal
Server Error (500) error. We choose to map these error to the Service
Unavailable (503) which is better managed by calling application (they
usually retry the request after a delay).
Copy link
Contributor

@murlock murlock left a comment

Choose a reason for hiding this comment

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

LGTM

@fvennetier fvennetier merged commit 9c50d0e into open-io:5.x Dec 1, 2020
@fvennetier fvennetier deleted the better-management-of-errors-due-to-down-services branch December 1, 2020 11:05
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants