Skip to content

Commit

Permalink
remove redundant code
Browse files Browse the repository at this point in the history
  • Loading branch information
Rui Li committed Jun 6, 2014
1 parent c7b93b5 commit 7b0177a
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -188,9 +188,6 @@ private[spark] class TaskSetManager(
var hadAliveLocations = false
for (loc <- tasks(index).preferredLocations) {
for (execId <- loc.executorId) {
if (sched.isExecutorAlive(execId)) {
hadAliveLocations = true
}
addTo(pendingTasksForExecutor.getOrElseUpdate(execId, new ArrayBuffer))
}
if (sched.hasExecutorsAliveOnHost(loc.host)) {
Expand Down Expand Up @@ -756,7 +753,6 @@ private[spark] class TaskSetManager(
def newLocAvail(index: Int): Boolean = {
for (loc <- tasks(index).preferredLocations) {
if (sched.hasExecutorsAliveOnHost(loc.host) ||
(loc.executorId.isDefined && sched.isExecutorAlive(loc.executorId.get)) ||
sched.getRackForHost(loc.host).isDefined) {
return true
}
Expand Down

0 comments on commit 7b0177a

Please sign in to comment.