Github user squito commented on a diff in the pull request: https://github.com/apache/spark/pull/21185#discussion_r186772234 --- Diff: core/src/main/scala/org/apache/spark/executor/Executor.scala --- @@ -229,6 +229,23 @@ private[spark] class Executor( ManagementFactory.getGarbageCollectorMXBeans.asScala.map(_.getCollectionTime).sum } + /** + * Only in local mode, we have to prevent the driver from setting the active SparkSession + * in the executor threads. See SPARK-23894. + */ + private lazy val clearActiveSparkSessionMethod = if (Utils.isLocalMaster(conf)) { --- End diff -- agreed, I closed this PR
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org