Skip to content

Commit a1cd185

Browse files
committed
Merge pull request apache#496 from pwendell/master
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.
2 parents 034dce2 + 6285513 commit a1cd185

File tree

1 file changed

+1
-1
lines changed
  • core/src/main/scala/org/apache/spark/deploy/master

1 file changed

+1
-1
lines changed

core/src/main/scala/org/apache/spark/deploy/master/Master.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,7 @@ private[spark] class Master(host: String, port: Int, webUiPort: Int) extends Act
515515
// There may be one or more refs to dead workers on this same node (w/ different ID's),
516516
// remove them.
517517
workers.filter { w =>
518-
(w.host == host && w.port == port) && (w.state == WorkerState.DEAD)
518+
(w.host == worker.host && w.port == worker.port) && (w.state == WorkerState.DEAD)
519519
}.foreach { w =>
520520
workers -= w
521521
}

0 commit comments

Comments
 (0)