cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jasobr...@apache.org
Subject [2/3] cassandra git commit: Add timeUnit Days for cassandra-stress
Date Mon, 12 Dec 2016 14:25:28 GMT
Add timeUnit Days for cassandra-stress

patch by Jay Zhuang; reviewed by jasobrown for CASSANDRA-13029


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/c0e7110f
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/c0e7110f
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/c0e7110f

Branch: refs/heads/trunk
Commit: c0e7110f97d8fc03b0f2fcc991c4ab0650937b92
Parents: 3b84de4
Author: Jay Zhuang <jay.zhuang@yahoo.com>
Authored: Mon Dec 12 06:20:57 2016 -0800
Committer: Jason Brown <jasedbrown@gmail.com>
Committed: Mon Dec 12 06:22:37 2016 -0800

----------------------------------------------------------------------
 CHANGES.txt                                                     | 1 +
 .../org/apache/cassandra/stress/settings/SettingsCommand.java   | 5 ++++-
 2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/c0e7110f/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index dfb849d..c4f4c1f 100644
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -1,4 +1,5 @@
 3.12
+ * Add timeUnit Days for cassandra-stress (CASSANDRA-13029)
  * Add mutation size and batch metrics (CASSANDRA-12649)
  * Add method to get size of endpoints to TokenMetadata (CASSANDRA-12999)
  * Fix primary index calculation for SASI (CASSANDRA-12910)

http://git-wip-us.apache.org/repos/asf/cassandra/blob/c0e7110f/tools/stress/src/org/apache/cassandra/stress/settings/SettingsCommand.java
----------------------------------------------------------------------
diff --git a/tools/stress/src/org/apache/cassandra/stress/settings/SettingsCommand.java b/tools/stress/src/org/apache/cassandra/stress/settings/SettingsCommand.java
index c3a171e..1416b8b 100644
--- a/tools/stress/src/org/apache/cassandra/stress/settings/SettingsCommand.java
+++ b/tools/stress/src/org/apache/cassandra/stress/settings/SettingsCommand.java
@@ -96,6 +96,9 @@ public abstract class SettingsCommand implements Serializable
                 case 'h':
                     this.durationUnits = TimeUnit.HOURS;
                     break;
+                case 'd':
+                    this.durationUnits = TimeUnit.DAYS;
+                    break;
                 default:
                     throw new IllegalStateException();
             }
@@ -135,7 +138,7 @@ public abstract class SettingsCommand implements Serializable
 
     static class Duration extends Options
     {
-        final OptionSimple duration = new OptionSimple("duration=", "[0-9]+[smh]", null,
"Time to run in (in seconds, minutes or hours)", true);
+        final OptionSimple duration = new OptionSimple("duration=", "[0-9]+[smhd]", null,
"Time to run in (in seconds, minutes, hours or days)", true);
         @Override
         public List<? extends Option> options()
         {


Mime
View raw message