mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 09:32:06 +00:00
Ticket #5104. Return 503 status from /replicas_status if not ok
This commit is contained in:
parent
f055239cde
commit
15d3176d40
@ -76,6 +76,7 @@ void ReplicasStatusHandler::handleRequest(Poco::Net::HTTPServerRequest & request
|
||||
}
|
||||
else
|
||||
{
|
||||
response.setStatusAndReason(Poco::Net::HTTPResponse::HTTP_SERVICE_UNAVAILABLE);
|
||||
response.send() << message.rdbuf();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user