Skip to content

Commit

Permalink
keep locality constraints within the valid levels
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui Li committed Jun 12, 2014
1 parent 18f9e05 commit fafd57f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ private[spark] class TaskSchedulerImpl(
// Take each TaskSet in our scheduling order, and then offer it each node in increasing order
// of locality levels so that it gets a chance to launch local tasks on all of them.
var launchedTask = false
for (taskSet <- sortedTaskSets; maxLocality <- TaskLocality.values) {
for (taskSet <- sortedTaskSets; maxLocality <- taskSet.myLocalityLevels) {
do {
launchedTask = false
for (i <- 0 until shuffledOffers.size) {
Expand Down

0 comments on commit fafd57f

Please sign in to comment.