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

Concurrent initialization of various DataType objects causes exceptions

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.0.1
    • Fix Version/s: 1.0.2, 1.1.0
    • Component/s: SQL
    • Labels:
      None

      Description

      Reported by Keith Simmons and gorenuru here. This is probably due to the fact that Scala Reflection API is not thread-safe for 2.10.* versions; see SI-6240 for more details.

      The purposed fix is to add a lock object that is synchronized on when various data type objects make use of the reflection API (during their initializations or other places in program execution). (Longer-term, we could consider evolving this to a SparkSQL-global lock, and all calls to the reflection APi from Spark SQL should probably synchronize on it.)

        Attachments

          Activity

            People

            • Assignee:
              ConcreteVitamin Zongheng Yang
              Reporter:
              ConcreteVitamin Zongheng Yang
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: