You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (JIRA)" <ji...@apache.org> on 2019/05/21 04:02:19 UTC

[jira] [Updated] (SPARK-22590) SparkContext's local properties missing from TaskContext properties

     [ https://issues.apache.org/jira/browse/SPARK-22590?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Hyukjin Kwon updated SPARK-22590:
---------------------------------
    Labels: bulk-closed  (was: )

> SparkContext's local properties missing from TaskContext properties
> -------------------------------------------------------------------
>
>                 Key: SPARK-22590
>                 URL: https://issues.apache.org/jira/browse/SPARK-22590
>             Project: Spark
>          Issue Type: Bug
>          Components: Spark Core
>    Affects Versions: 2.2.0
>            Reporter: Ajith S
>            Priority: Major
>              Labels: bulk-closed
>         Attachments: TestProps.scala
>
>
> Local properties set via sparkContext are not available as TaskContext properties when executing parallel jobs and threadpools have idle threads
> Explanation:  
> When executing parallel jobs via {{BroadcastExchangeExec}} or {{SubqueryExec}}, the {{relationFuture}} is evaluated via a seperate thread. The threads inherit the {{localProperties}} from sparkContext as they are the child threads.
> These threads are controlled via the executionContext (thread pools). Each Thread pool has a default {{keepAliveSeconds}} of 60 seconds for idle threads. 
> Scenarios where the thread pool has threads which are idle and reused for a subsequent new query, the thread local properties will not be inherited from spark context (thread properties are inherited only on thread creation) hence end up having old or no properties set. This will cause taskset properties to be missing when properties are transferred by child thread via {{sparkContext.runJob/submitJob}}
> Attached is a test-case to simulate this behavior



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org