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

RDDInfo uses SparkEnv before it may have been initialized

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.0
    • Fix Version/s: 2.4.0
    • Component/s: Spark Core, Tests
    • Labels:
      None

      Description

      This code:

      private[spark] object RDDInfo {
        private val callsiteLongForm = SparkEnv.get.conf.get(EVENT_LOG_CALLSITE_LONG_FORM)
      

      Has two problems:

      • it keeps that value across different SparkEnv instances. So e.g. if you have two tests that rely on different values for that config, one of them will break.
      • it assumes tests always initialize a SparkEnv. e.g. if you run "core/testOnly *.AppStatusListenerSuite", it will fail because SparkEnv.get returns null.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                vanzin Marcelo Vanzin
                Reporter:
                vanzin Marcelo Vanzin
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: