Skip to content

Commit 0b8a46b

Browse files
committed
test whether hasNodeLocalOnlyTasks affect the results
1 parent 73ceda8 commit 0b8a46b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/org/apache/spark/scheduler/TaskSetManager.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ private[spark] class TaskSetManager(
416416

417417
var allowedLocality = maxLocality
418418

419-
if (maxLocality != TaskLocality.NO_PREF || hasNodeLocalOnlyTasks) {
419+
if (maxLocality != TaskLocality.NO_PREF) {//} || hasNodeLocalOnlyTasks) {
420420
allowedLocality = getAllowedLocalityLevel(curTime)
421421
if (allowedLocality > maxLocality) {
422422
// We're not allowed to search for farther-away tasks

0 commit comments

Comments
 (0)