Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
3.0.0
-
None
Description
In TaskRunner.java, if the tasks have exception set, then the task result will have such exception set and Driver.java will get such details and display to the client. But some tasks don't set such exceptions so the client won't see such details unless you check the HS2 log.
public void runSequential() { int exitVal = -101; try { exitVal = tsk.executeTask(ss == null ? null : ss.getHiveHistory()); } catch (Throwable t) { if (tsk.getException() == null) { tsk.setException(t); } LOG.error("Error in executeTask", t); } result.setExitVal(exitVal); if (tsk.getException() != null) { result.setTaskError(tsk.getException()); } }
Attachments
Attachments
Issue Links
- links to