Skip to content

Commit bf4ca12

Browse files
author
Andrew Or
committed
Revert "[SPARK-6314] [CORE] handle JsonParseException for history server"
This reverts commit 37fb5a9.
1 parent 2254576 commit bf4ca12

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

core/src/main/scala/org/apache/spark/deploy/history/FsHistoryProvider.scala

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,9 +256,8 @@ private[history] class FsHistoryProvider(conf: SparkConf) extends ApplicationHis
256256
}
257257
try {
258258
val appListener = new ApplicationEventListener
259-
val appCompleted = isApplicationCompleted(eventLog)
260259
bus.addListener(appListener)
261-
bus.replay(logInput, logPath.toString, !appCompleted)
260+
bus.replay(logInput, logPath.toString)
262261
new FsApplicationHistoryInfo(
263262
logPath.getName(),
264263
appListener.appId.getOrElse(logPath.getName()),
@@ -267,7 +266,7 @@ private[history] class FsHistoryProvider(conf: SparkConf) extends ApplicationHis
267266
appListener.endTime.getOrElse(-1L),
268267
getModificationTime(eventLog).get,
269268
appListener.sparkUser.getOrElse(NOT_STARTED),
270-
appCompleted)
269+
isApplicationCompleted(eventLog))
271270
} finally {
272271
logInput.close()
273272
}

0 commit comments

Comments
 (0)