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

Remove ExplainUtils.processPlan synchronize

    XMLWordPrintableJSON

Details

    Description

      https://github.com/apache/spark/pull/45282 introduced synchronize to `ExplainUtils.processPlan`  to avoid race condition when multiple queries refers to same cached plan.

      The granularity of lock is too large. We can try to fix the root cause of this concurrency issue by refactoring the usage of mutable OP_ID_TAG, which is not a good practice in terms of immutable nature of SparkPlan.  Instead, we can use an auxiliary id map, with object identity as the key.

      Attachments

        Activity

          People

            liuzq12 Ziqi Liu
            liuzq12 Ziqi Liu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: