SteNicholas commented on code in PR #3548:
URL: https://github.com/apache/celeborn/pull/3548#discussion_r2680971724


##########
worker/src/main/scala/org/apache/celeborn/service/deploy/worker/storage/TierWriter.scala:
##########
@@ -546,7 +548,11 @@ class DfsTierWriter(
     }
 
   try {
-    hadoopFs.create(dfsFileInfo.getDfsPath, true).close()
+    if (reuseHdfsOutputStreamEnabled) {

Review Comment:
   ```suggestion
       hdfsStream = hadoopFs.create(dfsFileInfo.getDfsPath, true)
       if (!reuseHdfsOutputStreamEnabled) {
          hdfsStream.close()
       }
   ```



##########
worker/src/main/scala/org/apache/celeborn/service/deploy/worker/storage/TierWriter.scala:
##########
@@ -590,7 +596,14 @@ class DfsTierWriter(
         case ex: InterruptedException =>
           throw new RuntimeException(ex)
       }
-      hadoopFs.create(dfsFileInfo.getDfsPath, true).close()
+      if (reuseHdfsOutputStreamEnabled) {

Review Comment:
   ```suggestion
       if (hdfsStream != null) {
          hdfsStream.close()
       }
       hdfsStream = hadoopFs.create(dfsFileInfo.getDfsPath, true)
       if (!reuseHdfsOutputStreamEnabled) {
          hdfsStream.close()
       }
   ```



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

Reply via email to