Skip to content

Commit

Permalink
Feedback.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcelo Vanzin committed Jan 4, 2018
1 parent 9d710d6 commit 388858b
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ private[history] class FsHistoryProvider(conf: SparkConf, clock: Clock)
try {
Some(load(appId).toApplicationInfo())
} catch {
case e: NoSuchElementException =>
case _: NoSuchElementException =>
None
}
}
Expand Down Expand Up @@ -685,7 +685,7 @@ private[history] class FsHistoryProvider(conf: SparkConf, clock: Clock)
.asScala
.toList
stale.foreach { log =>
if (!log.appId.isDefined) {
if (log.appId.isEmpty) {
logInfo(s"Deleting invalid / corrupt event log ${log.logPath}")
deleteLog(new Path(log.logPath))
listing.delete(classOf[LogInfo], log.logPath)
Expand Down Expand Up @@ -871,7 +871,7 @@ private[history] class FsHistoryProvider(conf: SparkConf, clock: Clock)
try {
fs.delete(log, true)
} catch {
case e: AccessControlException =>
case _: AccessControlException =>
logInfo(s"No permission to delete $log, ignoring.")
case ioe: IOException =>
logError(s"IOException in cleaning $log", ioe)
Expand Down

0 comments on commit 388858b

Please sign in to comment.