srowen commented on a change in pull request #33251:
URL: https://github.com/apache/spark/pull/33251#discussion_r667189232



##########
File path: core/src/main/scala/org/apache/spark/storage/BlockManager.scala
##########
@@ -2010,10 +2012,12 @@ private[spark] object BlockManager {
 
       val filePath = file.path()
 
+      val deleter: DownloadFileDeleter = file.deleter()
+
       def cleanUp(): Unit = {
         logDebug(s"Clean up file $filePath")
 
-        if (!file.delete()) {
+        if (!deleter.delete()) {

Review comment:
       I get it. From the interface comments, I think it's OK to use `path` if 
that's a simpler solution, and just remove the comment. It's not going away. 
   
   I agree with removing referenceBuffer. It's mutated but never queried.




-- 
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.

To unsubscribe, e-mail: [email protected]

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