mirror of
https://github.com/nosqlbench/nosqlbench.git
synced 2024-11-30 12:34:01 -06:00
Revert "BasicError handling, print don't throw"
This reverts commit 66a7190e
This commit is contained in:
parent
88b291a5d5
commit
5ce026d9c8
@ -20,7 +20,6 @@ import io.nosqlbench.engine.api.activityimpl.ActivityDef;
|
||||
import io.nosqlbench.engine.api.activityimpl.ParameterMap;
|
||||
import io.nosqlbench.engine.api.activityimpl.SlotStateTracker;
|
||||
import io.nosqlbench.engine.api.activityimpl.input.ProgressCapable;
|
||||
import io.nosqlbench.nb.api.errors.BasicError;
|
||||
import org.slf4j.Logger;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
@ -98,15 +97,12 @@ public class ActivityExecutor implements ActivityController, ParameterMap.Listen
|
||||
activity.setRunState(RunState.Starting);
|
||||
activity.initActivity();
|
||||
//activity.onActivityDefUpdate(activityDef);
|
||||
} catch (BasicError ue) {
|
||||
logger.error(ue.getMessage());
|
||||
} catch (Exception e) {
|
||||
this.stoppingException = new RuntimeException("Error initializing activity '" +
|
||||
activity.getAlias() +"': " + e.getMessage(),e);
|
||||
activitylogger.error("error initializing activity '" + activity.getAlias() + "': " + stoppingException);
|
||||
throw stoppingException;
|
||||
}
|
||||
|
||||
adjustToActivityDef(activity.getActivityDef());
|
||||
activity.setRunState(RunState.Running);
|
||||
activitylogger.debug("START/after alias=(" + activity.getAlias() + ")");
|
||||
|
Loading…
Reference in New Issue
Block a user