Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-19204

Detailed errors from some tasks are not displayed to the client because the tasks don't set exception when they fail

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 4.0.0-alpha-1
    • Query Processor
    • 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

        1. HIVE-19204.2.patch
          9 kB
          Aihua Xu
        2. HIVE-19204.1.patch
          9 kB
          Aihua Xu

        Issue Links

          Activity

            People

              aihuaxu Aihua Xu
              aihuaxu Aihua Xu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: