Skip to content

Commit

Permalink
fix checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
WangTaoTheTonic committed Sep 8, 2014
1 parent bc91bb1 commit 2ca3091
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,8 @@ private[spark] class Master(
if (state != RecoveryState.ALIVE) { return }

// First schedule drivers, they take strict precedence over applications
val shuffledAliveWorkers = Random.shuffle(workers.filter(_.state == WorkerState.ALIVE)) // Randomization helps balance drivers
// Randomization helps balance drivers
val shuffledAliveWorkers = Random.shuffle(workers.filter(_.state == WorkerState.ALIVE))
val aliveWorkerNum = shuffledAliveWorkers.size
var curPos = aliveWorkerNum - 1
for (driver <- List(waitingDrivers: _*)) {
Expand Down

0 comments on commit 2ca3091

Please sign in to comment.