Github user steveloughran commented on a diff in the pull request:

    https://github.com/apache/spark/pull/18979#discussion_r144505454
  
    --- Diff: 
sql/core/src/main/scala/org/apache/spark/sql/execution/datasources/BasicWriteStatsTracker.scala
 ---
    @@ -57,7 +60,14 @@ class BasicWriteTaskStatsTracker(hadoopConf: 
Configuration)
       private def getFileSize(filePath: String): Long = {
         val path = new Path(filePath)
         val fs = path.getFileSystem(hadoopConf)
    -    fs.getFileStatus(path).getLen()
    +    try {
    +      fs.getFileStatus(path).getLen()
    +    } catch {
    +      case e: FileNotFoundException =>
    +        // may arise against eventually consistent object stores
    +        logInfo(s"File $path is not yet visible", e)
    --- End diff --
    
    say "Reported file size in job summary may be invalid"?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to