Add timeUnit Days for cassandra-stress

patch by Jay Zhuang; reviewed by jasobrown for CASSANDRA-13029
This commit is contained in:
Jay Zhuang 2016-12-12 06:20:57 -08:00 committed by Jason Brown
parent 3b84de4da4
commit c0e7110f97
2 changed files with 5 additions and 1 deletions

View File

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

View File

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