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

Do Not Print StackTraces to STDERR in ConditionalResolverSkewJoin

    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 Planning
    • Labels:

      Description

      https://github.com/apache/hive/blob/6d890faf22fd1ede3658a5eed097476eab3c67e9/ql/src/java/org/apache/hadoop/hive/ql/plan/ConditionalResolverSkewJoin.java#L121

          } catch (IOException e) {
            e.printStackTrace();
          }
      

      Introduce an SLF4J logger to this class and print a WARN level log message if the IOException from Utilities.listStatusIfExists is generated. I suggest WARN because the entire operation doesn't fail if this error happens. It continues on its way with the data that it was able to collect. I'm not sure if this is the intended behavior, but for now, a helpful warning message in the logging would be better.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated: