Skip to content

Commit

Permalink
Merge pull request apache#496 from pwendell/master
Browse files Browse the repository at this point in the history
Fix bug in worker clean-up in UI

Introduced in d5a96fe (/cc @aarondav).

This should be picked into 0.8 and 0.9 as well. The bug causes old (zombie) workers on a node to not disappear immediately from the UI when a new one registers.
  • Loading branch information
pwendell committed Jan 23, 2014
2 parents 034dce2 + 6285513 commit a1cd185
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ private[spark] class Master(host: String, port: Int, webUiPort: Int) extends Act
// There may be one or more refs to dead workers on this same node (w/ different ID's),
// remove them.
workers.filter { w =>
(w.host == host && w.port == port) && (w.state == WorkerState.DEAD)
(w.host == worker.host && w.port == worker.port) && (w.state == WorkerState.DEAD)
}.foreach { w =>
workers -= w
}
Expand Down

0 comments on commit a1cd185

Please sign in to comment.