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

Do Not Print StackTraces to STDERR in OperatorFactory

    XMLWordPrintableJSON

Details

    Description

      https://github.com/apache/hive/blob/ac6b2a3fb195916e22b2e5f465add2ffbcdc7430/ql/src/java/org/apache/hadoop/hive/ql/exec/OperatorFactory.java#L158

          } catch (Exception e) {
            e.printStackTrace();
            throw new HiveException(...
      

      Do not print the stack trace. The error is being wrapped in a HiveException. Allow the code catching this exception to print the error to a logger instead of dumping it here to STDERR. There are several instances of this in the class.

      Attachments

        1. HIVE-20160.1.patch
          1 kB
          David Mollitor
        2. HIVE-20160.1.patch
          1 kB
          David Mollitor
        3. HIVE-20160.2.patch
          1 kB
          David Mollitor
        4. HIVE-20160.3.patch
          1 kB
          David Mollitor

        Activity

          People

            belugabehr David Mollitor
            belugabehr David Mollitor
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: