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

Do Not Print StackTraces to STDERR in OperatorFactory

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.0.0, 4.0.0
    • Fix Version/s: None
    • Component/s: Query Processor
    • Labels:

      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

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              belugabehr BELUGA BEHR
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: