Uploaded image for project: 'Livy'
  1. Livy
  2. LIVY-688

Error message of LivyClient only keep outer stackTrace but discard cause's stackTrace

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 0.6.0
    • 0.7.0
    • RSC
    • None

    Description

      1. SparkSession maybe failed when initialize ExternalCatalog at sometime. As SparkSession call SharedState.reflect to instance an ExternalCatalog, any exception happened during this process will wrapped by InvocationTargetException.

      IllegalArgumentException
        └──InvocationTargetException
                   └──the indeed Exception
      2. org.apache.livy.rsc.Utils.stackTraceAsString only keep IllegalArgumentException's stackTrace but discard the indeed Exception's stackTrace and message, which makes the final java.util.concurrent.ExecutionException's message ambiguous.  

      Attachments

        Issue Links

          Activity

            People

              994184916@qq.com weiwenda
              994184916@qq.com weiwenda
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m