mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-11-25 10:10:32 -06:00
fix for findmax early exit bug
This commit is contained in:
parent
8f733bcefe
commit
118b6d16db
@ -27,6 +27,7 @@ import java.util.Optional;
|
||||
import java.util.concurrent.locks.LockSupport;
|
||||
|
||||
public class SimFrameUtils {
|
||||
public static final String SIM_CYCLES = "sim_cycles";
|
||||
|
||||
public static void awaitActivity(Activity flywheel) {
|
||||
// await flywheel actually spinning, or timeout with error
|
||||
@ -54,6 +55,8 @@ public class SimFrameUtils {
|
||||
// Start the flywheel at an "idle" speed, even if the user hasn't set it
|
||||
flywheel.onEvent(new ParamChange<>(new CycleRateSpec(100.0d, 1.1d, SimRateSpec.Verb.restart)));
|
||||
flywheel.getActivityDef().setEndCycle(Long.MAX_VALUE);
|
||||
flywheel.getActivityDef().getParams().set(SIM_CYCLES, Long.MAX_VALUE);
|
||||
|
||||
return flywheel;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user