You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Wenchen Fan (JIRA)" <ji...@apache.org> on 2017/05/24 16:38:04 UTC
[jira] [Resolved] (SPARK-20848) Dangling threads when reading
parquet files in local mode
[ https://issues.apache.org/jira/browse/SPARK-20848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Wenchen Fan resolved SPARK-20848.
---------------------------------
Resolution: Fixed
Assignee: Liang-Chi Hsieh
Fix Version/s: 2.2.0
2.1.2
> Dangling threads when reading parquet files in local mode
> ---------------------------------------------------------
>
> Key: SPARK-20848
> URL: https://issues.apache.org/jira/browse/SPARK-20848
> Project: Spark
> Issue Type: Bug
> Components: Input/Output, SQL
> Affects Versions: 2.1.1, 2.2.0
> Reporter: Nick Pritchard
> Assignee: Liang-Chi Hsieh
> Fix For: 2.1.2, 2.2.0
>
> Attachments: Screen Shot 2017-05-22 at 4.13.52 PM.png
>
>
> 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:
> {code}
> val spark = SparkSession
> .builder()
> .appName("test")
> .master("local")
> .getOrCreate()
> while(true) {
> spark.read.parquet("/path/to/file")
> Thread.sleep(5000)
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org