spark-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Rosenberry (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SPARK-26872) Use a configurable value for final termination in the JobScheduler.stop() method
Date Wed, 13 Feb 2019 19:22:00 GMT

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

Steven Rosenberry updated SPARK-26872:
--------------------------------------
    Description: 
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.

  was:
As a user of Spark, I would like to configure the timeout that controls final termination
after stopping the streaming context and processing previously queued jobs.  Currently,
there is a hard-coded limit of one hour around line 129 in JobScheduler.stop():
{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.


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


Mime
View raw message