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

    https://github.com/apache/spark/pull/20032#discussion_r158129065
  
    --- Diff: 
resource-managers/kubernetes/core/src/main/scala/org/apache/spark/scheduler/cluster/k8s/KubernetesClusterSchedulerBackend.scala
 ---
    @@ -217,7 +217,7 @@ private[spark] class KubernetesClusterSchedulerBackend(
             .watch(new ExecutorPodsWatcher()))
     
         allocatorExecutor.scheduleWithFixedDelay(
    -      allocatorRunnable, 0L, podAllocationInterval, TimeUnit.SECONDS)
    +      allocatorRunnable, 0L, podAllocationInterval.toLong, 
TimeUnit.MILLISECONDS)
    --- End diff --
    
    Why not use `conf.getTimeAsMs` for `podAllocationInterval` ?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to