Skip to content

Commit

Permalink
Merge pull request redpanda-data#13894 from mmaslankaprv/fix-13855
Browse files Browse the repository at this point in the history
admin_server: map `missing_node_rpc_client` to service unavailable
  • Loading branch information
mmaslankaprv authored Oct 4, 2023
2 parents 2dd1143 + b5f798d commit f1225d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/v/redpanda/admin_server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1078,6 +1078,7 @@ ss::future<> admin_server::throw_on_error(
case rpc::errc::disconnected_endpoint:
case rpc::errc::exponential_backoff:
case rpc::errc::shutting_down:
case rpc::errc::missing_node_rpc_client:
throw ss::httpd::base_exception(
fmt::format("Not ready: {}", ec.message()),
ss::http::reply::status_type::service_unavailable);
Expand All @@ -1087,7 +1088,6 @@ ss::future<> admin_server::throw_on_error(
fmt::format("Timeout: {}", ec.message()),
ss::http::reply::status_type::gateway_timeout);
case rpc::errc::service_error:
case rpc::errc::missing_node_rpc_client:
case rpc::errc::method_not_found:
case rpc::errc::version_not_supported:
case rpc::errc::unknown:
Expand Down

0 comments on commit f1225d4

Please sign in to comment.