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

admin: fixed mapping of service unavailable error code #18094

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

mmaslankaprv
Copy link
Member

@mmaslankaprv mmaslankaprv commented Apr 26, 2024

Previously the service_unavailable error code was mapped to generic unexpected server error. This lead to a situation in which a lot of errors were logged when broker was restarted as it has an RPC server running but without the services registered. Changed the mapping of rpc::errc::service_unavailable to HTTP service unavailable error.

Fixes: #17739

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v24.1.x
  • v23.3.x
  • v23.2.x

Release Notes

Bug Fixes

  • Better mapping of REST error codes

Previously the service_unavailable error code was mapped to generic
unexpected server error. This lead to a situation in which a lot of
errors were logged when broker was restarted as it has an RPC server
running but without the services registered. Changed the mapping of
`rpc::errc::service_unavailable` to HTTP service unavailable error.

Fixes: redpanda-data#17739

Signed-off-by: Michał Maślanka <michal@redpanda.com>
Copy link
Member

@BenPope BenPope left a comment

Choose a reason for hiding this comment

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

I guess this is hard to test?

@mmaslankaprv
Copy link
Member Author

I guess this is hard to test?

yes

@mmaslankaprv mmaslankaprv merged commit 77b0e6b into redpanda-data:dev Apr 26, 2024
20 checks passed
@mmaslankaprv mmaslankaprv deleted the fix-17739 branch April 26, 2024 15:58
@vbotbuildovich
Copy link
Collaborator

/backport v24.1.x

@vbotbuildovich
Copy link
Collaborator

/backport v23.3.x

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CI Failure (key symptom) in RandomNodeOperationsTest.test_node_operations
4 participants