You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by GitBox <gi...@apache.org> on 2019/04/01 23:14:06 UTC

[GitHub] [spark] HyukjinKwon commented on a change in pull request #24263: [MINOR][DSTREAMS] Add DStreamCheckpointData.cleanup warning if delete returns false

HyukjinKwon commented on a change in pull request #24263: [MINOR][DSTREAMS] Add DStreamCheckpointData.cleanup warning if delete returns false
URL: https://github.com/apache/spark/pull/24263#discussion_r271084251
 
 

 ##########
 File path: streaming/src/main/scala/org/apache/spark/streaming/dstream/DStreamCheckpointData.scala
 ##########
 @@ -87,7 +87,9 @@ class DStreamCheckpointData[T: ClassTag](dstream: DStream[T])
               if (fileSystem == null) {
                 fileSystem = path.getFileSystem(dstream.ssc.sparkContext.hadoopConfiguration)
               }
-              fileSystem.delete(path, true)
+              if (!fileSystem.delete(path, true)) {
+                logWarning(s"Error deleting old checkpoint file '$file' for time $time")
+              }
               timeToCheckpointFile -= time
               logInfo("Deleted checkpoint file '" + file + "' for time " + time)
 
 Review comment:
   @gaborgsomogyi, wouldn't we avoid to log this when it's failed to remove?

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

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