williamhyun commented on a change in pull request #29796:
URL: https://github.com/apache/spark/pull/29796#discussion_r490709194



##########
File path: 
core/src/main/scala/org/apache/spark/deploy/history/FsHistoryProvider.scala
##########
@@ -812,11 +812,12 @@ private[history] class FsHistoryProvider(conf: SparkConf, 
clock: Clock)
           try {
             // Fetch the entry first to avoid an RPC when it's already removed.
             listing.read(classOf[LogInfo], inProgressLog)
-            if (!fs.isFile(new Path(inProgressLog))) {
+            if (!fs.getFileStatus(new Path(inProgressLog)).isFile) {
               listing.delete(classOf[LogInfo], inProgressLog)
             }
           } catch {
             case _: NoSuchElementException =>
+            case _: FileNotFoundException =>

Review comment:
       This is added for getFileStatus at line 815.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to