Skip to content

Commit

Permalink
log exception message in testplanstarter and add OOM exception log
Browse files Browse the repository at this point in the history
  • Loading branch information
zkofiro committed Mar 26, 2024
1 parent 6e9aaa6 commit 3050bc2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public void run() {
}
done = true;
} catch (final Throwable t) {
LOG.error(LogUtil.getLogMessage("Linear - TestPlanStarter Unknown Error:"), t);
LOG.error(LogUtil.getLogMessage("Linear - TestPlanStarter Error:" + t.getMessage()), t);
throwUnchecked(t);
}
} else { // Nonlinear Workload
Expand Down Expand Up @@ -257,7 +257,7 @@ public void run() {
}
done = true;
} catch (final Throwable t) {
LOG.error(LogUtil.getLogMessage("Nonlinear - TestPlanStarter Unknown Error:"), t);
LOG.error(LogUtil.getLogMessage("Nonlinear - TestPlanStarter Error:" + t.getMessage()), t);
throwUnchecked(t);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,11 @@ private void runScriptSteps(HDScriptUseCase hdScriptUseCase) throws KillScriptEx
String validation = TankConstants.HTTP_CASE_FAIL;
try {
validation = tsr.execute();
} catch (Error e) {
if(e instanceof OutOfMemoryError){
throw (OutOfMemoryError) e;
}
throw new Error(e);
} catch (Exception e) {
if (e instanceof RuntimeException) {
throw (RuntimeException) e;
Expand Down

0 comments on commit 3050bc2

Please sign in to comment.