Github user zsxwing commented on a diff in the pull request:

    https://github.com/apache/spark/pull/22473#discussion_r221022783
  
    --- Diff: core/src/main/scala/org/apache/spark/SparkConf.scala ---
    @@ -609,13 +609,13 @@ class SparkConf(loadDefaults: Boolean) extends 
Cloneable with Logging with Seria
         require(!encryptionEnabled || get(NETWORK_AUTH_ENABLED),
           s"${NETWORK_AUTH_ENABLED.key} must be enabled when enabling 
encryption.")
     
    -    val executorTimeoutThreshold = 
getTimeAsSeconds("spark.network.timeout", "120s")
    -    val executorHeartbeatInterval = 
getTimeAsSeconds("spark.executor.heartbeatInterval", "10s")
    +    val executorTimeoutThreshold = getTimeAsMs("spark.network.timeout", 
"120s")
    +    val executorHeartbeatInterval = get(EXECUTOR_HEARTBEAT_INTERVAL)
         // If spark.executor.heartbeatInterval bigger than 
spark.network.timeout,
         // it will almost always cause ExecutorLostFailure. See SPARK-22754.
         require(executorTimeoutThreshold > executorHeartbeatInterval, "The 
value of " +
    -      s"spark.network.timeout=${executorTimeoutThreshold}s must be no less 
than the value of " +
    -      s"spark.executor.heartbeatInterval=${executorHeartbeatInterval}s.")
    +      s"spark.network.timeout=${executorTimeoutThreshold}ms must be no 
less than the value of " +
    --- End diff --
    
    nit: "ms" -> "s" once you address the above comment


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to