mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2025-02-25 18:55:28 -06:00
allow startActivity to be re-entrant with blocking
This commit is contained in:
parent
e68e8986b3
commit
4f827c8031
@ -420,7 +420,10 @@ public class ActivityExecutor implements ActivityController, ParameterMap.Listen
|
||||
}
|
||||
|
||||
public synchronized void startActivity() {
|
||||
// we need an executor service to run motor threads on
|
||||
RunStateImage startable = tally.awaitNoneOther(1000L, RunState.Uninitialized, RunState.Stopped);
|
||||
if (startable.isTimeout()) {
|
||||
throw new RuntimeException("Unable to start activity '" + getActivity().getAlias() + "' which is in state " + startable);
|
||||
}
|
||||
startMotorExecutorService();
|
||||
startRunningActivityThreads();
|
||||
awaitMotorsAtLeastRunning();
|
||||
|
Loading…
Reference in New Issue
Block a user