mirror of https://github.com/apache/cassandra
Obfuscate password in stress-graphs
Patch by Christopher Batey; Reviewed by Jeff Jirsa for CASSANDRA-12233
This commit is contained in:
parent
e58c26a296
commit
3ae5a4d679
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue