Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.1.1, 2.2.0
-
None
Description
On each call to spark.read.parquet, a new ForkJoinPool is created. One of the threads in the pool is kept in the WAITING state, and never stopped, which leads to unbounded growth in number of threads.
This behavior is a regression from v2.1.0.
Reproducible example:
val spark = SparkSession .builder() .appName("test") .master("local") .getOrCreate() while(true) { spark.read.parquet("/path/to/file") Thread.sleep(5000) }