Obfuscate password in stress-graphs

Patch by Christopher Batey; Reviewed by Jeff Jirsa for CASSANDRA-12233
This commit is contained in:
Christopher Batey 2016-07-20 15:36:24 +01:00 committed by Jeff Jirsa
parent e58c26a296
commit 3ae5a4d679
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -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);