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

Add scalastyle check to disable scala.concurrent.ExecutionContext.Implicits.global

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.2.0
    • 3.2.2
    • Spark Core
    • None

    Description

      Add scalastyle check to disable internal use of scala.concurrent.ExecutionContext.Implicits.global.
      The reason is that user queries can also use this thread pool, causing competing in resource and starvation. Spark-internal APIs should thus not use the global thread pool.

      Attachments

        Activity

          People

            adrianhu96 Tianhan Hu
            adrianhu96 Tianhan Hu
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: