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

Do Not Print StackTraces to STDERR in AbstractJoinTaskDispatcher

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.0.0, 4.0.0
    • Fix Version/s: 4.0.0
    • Component/s: Query Planning
    • Labels:

      Description

      https://github.com/apache/hive/blob/6d890faf22fd1ede3658a5eed097476eab3c67e9/ql/src/java/org/apache/hadoop/hive/ql/optimizer/physical/AbstractJoinTaskDispatcher.java

          } catch (Exception e) {
            e.printStackTrace();
            throw new SemanticException("Generate Map Join Task Error: " + e.getMessage());
          }
      

      Remove the call to printStackTrace and just throw the error. If the stack trace really is needed (doubtful), then pass it to the SemanticException constructor.

        Attachments

        1. HIVE-20162.1.patch
          0.8 kB
          Anurag Mantripragada

          Activity

            People

            • Assignee:
              anuragmantri Anurag Mantripragada
              Reporter:
              belugabehr BELUGA BEHR
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: