aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorRohit Agarwal <rohita@qubole.com>2015-08-11 23:20:39 -0700
committerAndrew Or <andrew@databricks.com>2015-08-11 23:20:39 -0700
commita807fcbe50b2ce18751d80d39e9d21842f7da32a (patch)
tree04367860c6f6163c54e4ed7ad25ad835c3b2028c /core
parentb85f9a242a12e8096e331fa77d5ebd16e93c844d (diff)
downloadspark-a807fcbe50b2ce18751d80d39e9d21842f7da32a.tar.gz
spark-a807fcbe50b2ce18751d80d39e9d21842f7da32a.tar.bz2
spark-a807fcbe50b2ce18751d80d39e9d21842f7da32a.zip
[SPARK-9806] [WEB UI] Don't share ReplayListenerBus between multiple applications
Author: Rohit Agarwal <rohita@qubole.com> Closes #8088 from mindprince/SPARK-9806.
Diffstat (limited to 'core')
-rw-r--r--core/src/main/scala/org/apache/spark/deploy/history/FsHistoryProvider.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/src/main/scala/org/apache/spark/deploy/history/FsHistoryProvider.scala b/core/src/main/scala/org/apache/spark/deploy/history/FsHistoryProvider.scala
index e3060ac3fa..53c18ca3ff 100644
--- a/core/src/main/scala/org/apache/spark/deploy/history/FsHistoryProvider.scala
+++ b/core/src/main/scala/org/apache/spark/deploy/history/FsHistoryProvider.scala
@@ -272,9 +272,9 @@ private[history] class FsHistoryProvider(conf: SparkConf, clock: Clock)
* Replay the log files in the list and merge the list of old applications with new ones
*/
private def mergeApplicationListing(logs: Seq[FileStatus]): Unit = {
- val bus = new ReplayListenerBus()
val newAttempts = logs.flatMap { fileStatus =>
try {
+ val bus = new ReplayListenerBus()
val res = replay(fileStatus, bus)
res match {
case Some(r) => logDebug(s"Application log ${r.logPath} loaded successfully.")