Skip to content

Commit

Permalink
fix client not retry when Connect refused
Browse files Browse the repository at this point in the history
  • Loading branch information
abcfy2 committed Jan 23, 2025
1 parent 2581f3b commit a608bfa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -414,10 +414,10 @@ public ClassicHttpResponse executeRequest(ClickHouseNode server, Map<String, Obj
} catch (UnknownHostException e) {
LOG.warn("Host '{}' unknown", server.getHost());
throw new ClientException("Unknown host", e);
} catch (ConnectException | NoRouteToHostException e) {
} catch (NoRouteToHostException e) {
LOG.warn("Failed to connect to '{}': {}", server.getHost(), e.getMessage());
throw new ClientException("Failed to connect", e);
} catch (ConnectionRequestTimeoutException | ServerException | NoHttpResponseException | ClientException | SocketTimeoutException e) {
} catch (ConnectionRequestTimeoutException | ServerException | NoHttpResponseException | ClientException | SocketTimeoutException | ConnectException e) {
throw e;
} catch (Exception e) {
throw new ClientException("Failed to execute request", e);
Expand Down

0 comments on commit a608bfa

Please sign in to comment.