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

fix client not retry when Connection refused #2063

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,8 @@ public ClassicHttpResponse executeRequest(ClickHouseNode server, Map<String, Obj
LOG.warn("Host '{}' unknown", server.getHost());
throw new ClientException("Unknown host", e);
} catch (ConnectException | NoRouteToHostException e) {
LOG.warn("Failed to connect to '{}': {}", server.getHost(), e.getMessage());
throw new ClientException("Failed to connect", e);
LOG.warn("Failed to connect to '{}': ", server.getHost(), e);
throw e;
} catch (ConnectionRequestTimeoutException | ServerException | NoHttpResponseException | ClientException e) {
throw e;
} catch (Exception e) {
Expand Down