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

    https://github.com/apache/storm/pull/921#discussion_r47707221
  
    --- Diff: 
storm-core/src/jvm/backtype/storm/scheduler/resource/strategies/scheduling/DefaultResourceAwareStrategy.java
 ---
    @@ -159,18 +163,22 @@ public ResourceAwareStrategy(Cluster cluster, 
Topologies topologies) {
                     LOG.error("Not Enough Resources to schedule Task {}", 
exec);
                 }
             }
    +
    +        SchedulingResult result;
             executorsNotScheduled.removeAll(scheduledTasks);
             if (executorsNotScheduled.size() > 0) {
                 LOG.error("Not all executors successfully scheduled: {}",
                         executorsNotScheduled);
                 schedulerAssignmentMap = null;
    +            result = 
SchedulingResult.failure(SchedulingStatus.FAIL_NOT_ENOUGH_RESOURCES, 
(td.getExecutors().size() - unassignedExecutors.size()) + "/" + 
td.getExecutors().size() + " executors scheduled");
    --- End diff --
    
    ok


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