Github user li-zhihui commented on a diff in the pull request:

    https://github.com/apache/spark/pull/1525#discussion_r15272948
  
    --- Diff: 
core/src/main/scala/org/apache/spark/scheduler/cluster/CoarseGrainedSchedulerBackend.scala
 ---
    @@ -268,14 +264,18 @@ class CoarseGrainedSchedulerBackend(scheduler: 
TaskSchedulerImpl, actorSystem: A
         }
       }
     
    +  def sufficientResourcesRegistered(): Boolean = true
    +
       override def isReady(): Boolean = {
    -    if (ready) {
    +    if (sufficientResourcesRegistered) {
    +      logInfo("SchedulerBackend is ready for scheduling beginning" +
    +        ", total expected resources: " + totalExpectedResources.get() +
    +        ", minRegisteredResourcesRatio: " + minRegisteredRatio)
           return true
         }
         if ((System.currentTimeMillis() - createTime) >= 
maxRegisteredWaitingTime) {
    -      ready = true
           logInfo("SchedulerBackend is ready for scheduling beginning after 
waiting " +
    -        "maxRegisteredExecutorsWaitingTime: " + maxRegisteredWaitingTime)
    +        "maxRegisteredResourcesWaitingTime(ms): " + 
maxRegisteredWaitingTime)
    --- End diff --
    
    @markhamstra thanks


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to