mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-12-27 09:11:08 -06:00
update seq length and cycle warning to be more correct, less chatty
This commit is contained in:
parent
60360b459f
commit
b5879e2aff
@ -287,7 +287,8 @@ public class SimpleActivity implements Activity {
|
||||
|
||||
long cycleCount = getActivityDef().getCycleCount();
|
||||
long stride = getActivityDef().getParams().getOptionalLong("stride").orElseThrow();
|
||||
if ((cycleCount % stride) != 0) {
|
||||
|
||||
if (stride>0 && (cycleCount % stride) != 0) {
|
||||
logger.warn("The stride does not evenly divide cycles. Only full strides will be executed," +
|
||||
"leaving some cycles unused.");
|
||||
}
|
||||
@ -331,6 +332,9 @@ public class SimpleActivity implements Activity {
|
||||
}
|
||||
}
|
||||
|
||||
if (activityDef.getCycleCount()>0 && seq.getOps().size()==0) {
|
||||
throw new BasicError("You have configured a zero-length sequence and non-zero cycles. Tt is not possible to continue with this activity.");
|
||||
}
|
||||
}
|
||||
|
||||
protected <O> OpSequence<O> createOpSequenceFromCommands(Function<CommandTemplate, O> opinit) {
|
||||
|
Loading…
Reference in New Issue
Block a user