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

Add http setup logging #1431

Closed
wants to merge 1 commit into from
Closed
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 @@ -91,9 +91,9 @@ public ICassandraManagementProxy connectAny(Collection<Node> nodes) throws Reape
return cassandraManagementProxy;
} catch (ReaperException | RuntimeException | UnknownHostException e) {
getHostConnectionCounters().decrementSuccessfulConnections(node.getHostname());
LOG.info("Unreachable host: ", e);
LOG.info(String.format("Unreachable host. Hostname: %s", node.getHostname()), e);
} catch (InterruptedException expected) {
LOG.trace("Expected exception", expected);
LOG.trace(String.format("Expected exception. Hostname: %s", node.getHostname()), expected);
}
}
}
Expand Down Expand Up @@ -135,8 +135,9 @@ private ICassandraManagementProxy connectImpl(Node node)
@Nullable
@Override
public HttpCassandraManagementProxy apply(@Nullable String hostName) {
DefaultApi apiClient = new DefaultApi(
new ApiClient().setBasePath("http://" + hostName + ":" + managementPort + rootPath));
String basePath = "http://" + hostName + ":" + managementPort + rootPath;
LOG.info("Creating HTTP client with base path: '{}'", basePath);
DefaultApi apiClient = new DefaultApi(new ApiClient().setBasePath(basePath));

InstrumentedScheduledExecutorService statusTracker = new InstrumentedScheduledExecutorService(
jobStatusPollerExecutor, metricRegistry);
Expand Down