Skip to content

Commit

Permalink
[SPARK-20843][CORE] Add a config to set driver terminate timeout
Browse files Browse the repository at this point in the history
## What changes were proposed in this pull request?

Add a `worker` configuration to set how long to wait before forcibly killing driver.

## How was this patch tested?

Jenkins

Author: Shixiong Zhu <[email protected]>

Closes #18126 from zsxwing/SPARK-20843.
  • Loading branch information
zsxwing committed May 27, 2017
1 parent a0f8a07 commit 6c1dbd6
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ private[deploy] class DriverRunner(
@volatile private[worker] var finalException: Option[Exception] = None

// Timeout to wait for when trying to terminate a driver.
private val DRIVER_TERMINATE_TIMEOUT_MS = 10 * 1000
private val DRIVER_TERMINATE_TIMEOUT_MS =
conf.getTimeAsMs("spark.worker.driverTerminateTimeout", "10s")

// Decoupled for testing
def setClock(_clock: Clock): Unit = {
Expand Down

0 comments on commit 6c1dbd6

Please sign in to comment.