Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-50386

Improve SparkFatalException Propagation when OutOfMemoryError occurs on BroadcastExchangeExec building small table to broadcast

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.4.4, 3.5.3
    • None
    • SQL

    Description

      When BroadcastHashJoin builds small table to broadcast by BroadcastExchangeExec, if OutOfMemoryError has occurred on driver, BroadcastExchangeExec throws SparkFatalException which wraps SparkException. However, SparkException' s cause property comes as null by missing actual cause which is `java.lang.OutOfMemoryError: Java heap space` in following example. Actual cause info is also useful to propagate Throwable.getCause / getCause.* properties to clients. Repro test case has been added.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              erenavsarogullari Eren Avsarogullari
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: