Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -530,10 +530,17 @@ private[history] class FsHistoryProvider(conf: SparkConf, clock: Clock)
// If the file is currently not being tracked by the SHS, add an entry for it and try
// to parse it. This will allow the cleaner code to detect the file as stale later on
// if it was not possible to parse it.
listing.write(LogInfo(reader.rootPath.toString(), newLastScanTime, LogType.EventLogs,
None, None, reader.fileSizeForLastIndex, reader.lastIndex, None,
reader.completed))
reader.fileSizeForLastIndex > 0
try {
listing.write(LogInfo(reader.rootPath.toString(), newLastScanTime,
LogType.EventLogs, None, None, reader.fileSizeForLastIndex, reader.lastIndex,
None, reader.completed))
reader.fileSizeForLastIndex > 0
} catch {
case _: FileNotFoundException => false
}

case _: FileNotFoundException =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I'd have empty new line after }.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added

nit: I'd have empty new line after }.

false
}
}
.sortWith { case (entry1, entry2) =>
Expand Down