Github user tdas commented on a diff in the pull request: https://github.com/apache/spark/pull/9373#discussion_r43949437 --- Diff: streaming/src/main/scala/org/apache/spark/streaming/util/FileBasedWriteAheadLogReader.scala --- @@ -55,6 +55,19 @@ private[streaming] class FileBasedWriteAheadLogReader(path: String, conf: Config logDebug("Error reading next item, EOF reached", e) close() false + case e: IOException => + logWarning("Error while trying to read data. If the file was deleted, " + + "this should be okay.", e) + close() + if (HdfsUtils.checkFileExists(path, conf)) { + // if file exists, this could be a legitimate error + throw e + } else { + // file was deleted. This can occur when the daemon cleanup thread takes time to --- End diff -- super nit: file -> File
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org