Skip to content

Commit

Permalink
resume debug log
Browse files Browse the repository at this point in the history
Change-Id: I77e4f61fb40e3012c98c41d0d896efa67e86ee91
  • Loading branch information
javeme committed Apr 27, 2022
1 parent 3c36d7f commit a85eedc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ protected Map<String, Object> getMetricsByHost(String host) {
* probe.takeSnapshot(snapshotName, table, options, keyspaces)
*/
} catch (Throwable e) {
LOG.warn("Unable to get metrics from host '{}':", host, e);
LOG.debug("Unable to get metrics from host '{}':", host, e);
metrics.put(EXCEPTION, e.toString());
}
return metrics;
Expand Down Expand Up @@ -302,7 +302,10 @@ private Map<String, Object> executeAllHosts(Function<String, Object> func) {
String hostAddress;
if (address instanceof Inet4Address) {
hostAddress = host.getAddress().getHostAddress();
// Translate IPv4 to IPv6 to fix issue #1843
/*
* Translate IPv4 to IPv6 to fix issue #1843
* TODO: Uncomment after fixed CASSANDRA-17581
*/
hostAddress = "::FFFF:" + hostAddress;
} else {
assert address instanceof Inet6Address;
Expand All @@ -316,7 +319,7 @@ private Map<String, Object> executeAllHosts(Function<String, Object> func) {
}

private NodeProbe newNodeProbe(String host) throws IOException {
LOG.info("Probe to cassandra node: '{}:{}'", host, this.port);
LOG.debug("Probe to cassandra node: '{}:{}'", host, this.port);
return this.username.isEmpty() ?
new NodeProbe(host, this.port) :
new NodeProbe(host, this.port, this.username, this.password);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public void testMetricsBackend() {

servers = (Map<?, ?>) graph.get("servers");
Assert.assertGte(1, servers.size());
// TODO: Uncomment after fixed #1843

for (Map.Entry<?, ?> e : servers.entrySet()) {
String key = (String) e.getKey();
value = e.getValue();
Expand Down

0 comments on commit a85eedc

Please sign in to comment.