This is an automated email from the ASF dual-hosted git repository. ifesdjeen pushed a commit to branch cassandra-3.11 in repository https://gitbox.apache.org/repos/asf/cassandra.git
commit b33a11ca4219b2317d35e48e1fb6f8a76b697e3e Author: Alex Petrov <oleksandr.pet...@gmail.com> AuthorDate: Tue Feb 4 17:33:11 2020 +0100 Make sure that the passed node probe factory is used in nodetool, like in other branches. Patch by Alex Petrov; reviewed by Yifan Cai for CASSANDRA-15429 --- src/java/org/apache/cassandra/tools/NodeTool.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/java/org/apache/cassandra/tools/NodeTool.java b/src/java/org/apache/cassandra/tools/NodeTool.java index c28ec09..9b47eca 100644 --- a/src/java/org/apache/cassandra/tools/NodeTool.java +++ b/src/java/org/apache/cassandra/tools/NodeTool.java @@ -338,9 +338,9 @@ public class NodeTool try { if (username.isEmpty()) - nodeClient = new NodeProbe(host, parseInt(port)); + nodeClient = nodeProbeFactory.create(host, parseInt(port)); else - nodeClient = new NodeProbe(host, parseInt(port), username, password); + nodeClient = nodeProbeFactory.create(host, parseInt(port), username, password); } catch (IOException | SecurityException e) { Throwable rootCause = Throwables.getRootCause(e); --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@cassandra.apache.org For additional commands, e-mail: commits-h...@cassandra.apache.org