-
- Downloads
[SQL][MINOR][TEST] Set spark.unsafe.exceptionOnMemoryLeak to true
## What changes were proposed in this pull request? When running IntelliJ, we are unable to capture the exception of memory leak detection. > org.apache.spark.executor.Executor: Managed memory leak detected Explicitly setting `spark.unsafe.exceptionOnMemoryLeak` in SparkConf when building the SparkSession, instead of reading it from system properties. ## How was this patch tested? N/A Author: gatorsmile <gatorsmile@gmail.com> Closes #18967 from gatorsmile/setExceptionOnMemoryLeak.
Showing
- sql/core/src/test/scala/org/apache/spark/sql/test/SharedSQLContext.scala 3 additions, 1 deletion...st/scala/org/apache/spark/sql/test/SharedSQLContext.scala
- sql/hive/src/main/scala/org/apache/spark/sql/hive/test/TestHive.scala 2 additions, 1 deletion.../main/scala/org/apache/spark/sql/hive/test/TestHive.scala
Please register or sign in to comment