Repository: cassandra Updated Branches: refs/heads/cassandra-3.11 e58c26a29 -> 3ae5a4d67 refs/heads/trunk cd33e0fda -> 61b3d3490
Obfuscate password in stress-graphs Patch by Christopher Batey; Reviewed by Jeff Jirsa for CASSANDRA-12233 Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/3ae5a4d6 Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/3ae5a4d6 Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/3ae5a4d6 Branch: refs/heads/cassandra-3.11 Commit: 3ae5a4d679aa52c890221be19b1401c77a5aa109 Parents: e58c26a Author: Christopher Batey <christopher.ba...@gmail.com> Authored: Wed Jul 20 15:36:24 2016 +0100 Committer: Jeff Jirsa <j...@jeffjirsa.net> Committed: Fri Feb 10 21:22:47 2017 -0800 ---------------------------------------------------------------------- CHANGES.txt | 1 + tools/stress/src/org/apache/cassandra/stress/StressGraph.java | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cassandra/blob/3ae5a4d6/CHANGES.txt ---------------------------------------------------------------------- diff --git a/CHANGES.txt b/CHANGES.txt index df91d43..a69cbe3 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,4 +1,5 @@ 3.11.0 + * Obfuscate password in stress-graphs (CASSANDRA-12233) * Move to FastThreadLocalThread and FastThreadLocal (CASSANDRA-13034) * nodetool stopdaemon errors out (CASSANDRA-13030) * Tables in system_distributed should not use gcgs of 0 (CASSANDRA-12954) http://git-wip-us.apache.org/repos/asf/cassandra/blob/3ae5a4d6/tools/stress/src/org/apache/cassandra/stress/StressGraph.java ---------------------------------------------------------------------- diff --git a/tools/stress/src/org/apache/cassandra/stress/StressGraph.java b/tools/stress/src/org/apache/cassandra/stress/StressGraph.java index 17b718d..663bde6 100644 --- a/tools/stress/src/org/apache/cassandra/stress/StressGraph.java +++ b/tools/stress/src/org/apache/cassandra/stress/StressGraph.java @@ -213,7 +213,8 @@ public class StressGraph json.put("revision", stressSettings.graph.revision); else json.put("revision", String.format("%s - %s threads", stressSettings.graph.revision, currentThreadCount)); - json.put("command", StringUtils.join(stressArguments, " ")); + String command = StringUtils.join(stressArguments, " ").replaceAll("password=.*? ", "password=******* "); + json.put("command", command); json.put("intervals", intervals); stats.add(json);