You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2019/03/01 10:50:00 UTC

[jira] [Assigned] (SPARK-26872) Use a configurable value for final termination in the JobScheduler.stop() method

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

Apache Spark reassigned SPARK-26872:
------------------------------------

    Assignee: Apache Spark

> Use a configurable value for final termination in the JobScheduler.stop() method
> --------------------------------------------------------------------------------
>
>                 Key: SPARK-26872
>                 URL: https://issues.apache.org/jira/browse/SPARK-26872
>             Project: Spark
>          Issue Type: Improvement
>          Components: Scheduler
>    Affects Versions: 2.4.0
>            Reporter: Steven Rosenberry
>            Assignee: Apache Spark
>            Priority: Minor
>
> As a user of Spark, I would like to configure the timeout that controls final termination after stopping the streaming context and while processing previously queued jobs.  Currently, there is a hard-coded limit of one hour around line 129 in the JobScheduler.stop() method:
> {code:java}
> // Wait for the queued jobs to complete if indicated
> val terminated = if (processAllReceivedData) {
> jobExecutor.awaitTermination(1, TimeUnit.HOURS) // just a very large period of time
> } else {
> jobExecutor.awaitTermination(2, TimeUnit.SECONDS)
> }
> {code}
> It would provide additional functionality to the Spark platform if this value was configurable.  My use case may take many hours to finish the queued job as it was created from a large data file.



--
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