Skip to content

Commit 388858b

Browse files
author
Marcelo Vanzin
committed
Feedback.
1 parent 9d710d6 commit 388858b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ private[history] class FsHistoryProvider(conf: SparkConf, clock: Clock)
274274
try {
275275
Some(load(appId).toApplicationInfo())
276276
} catch {
277-
case e: NoSuchElementException =>
277+
case _: NoSuchElementException =>
278278
None
279279
}
280280
}
@@ -685,7 +685,7 @@ private[history] class FsHistoryProvider(conf: SparkConf, clock: Clock)
685685
.asScala
686686
.toList
687687
stale.foreach { log =>
688-
if (!log.appId.isDefined) {
688+
if (log.appId.isEmpty) {
689689
logInfo(s"Deleting invalid / corrupt event log ${log.logPath}")
690690
deleteLog(new Path(log.logPath))
691691
listing.delete(classOf[LogInfo], log.logPath)
@@ -871,7 +871,7 @@ private[history] class FsHistoryProvider(conf: SparkConf, clock: Clock)
871871
try {
872872
fs.delete(log, true)
873873
} catch {
874-
case e: AccessControlException =>
874+
case _: AccessControlException =>
875875
logInfo(s"No permission to delete $log, ignoring.")
876876
case ioe: IOException =>
877877
logError(s"IOException in cleaning $log", ioe)

0 commit comments

Comments
 (0)