You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@celeborn.apache.org by "SteNicholas (via GitHub)" <gi...@apache.org> on 2025/10/22 02:45:30 UTC

Re: [PR] [CELEBORN-2143] StorageManager should create disk file via storage type for StoragePolicy [celeborn]

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


##########
worker/src/main/scala/org/apache/celeborn/service/deploy/worker/storage/StorageManager.scala:
##########
@@ -1102,7 +1102,8 @@ final private[worker] class StorageManager(conf: CelebornConf, workerSource: Abs
         throw new IOException(s"No available disks! suggested mountPoint $suggestedMountPoint")
       }
 
-      if (dirs.isEmpty && location.getStorageInfo.HDFSAvailable()) {
+      if ((dirs.isEmpty && location.getStorageInfo.HDFSAvailable())

Review Comment:
   Why not use `(dirs.isEmpty || hasHDFSStorage) && location.getStorageInfo.HDFSAvailable()`? BTW, Is it inconsistent between `hasHDFSStorage` and `HDFSAvailable`?



-- 
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: issues-unsubscribe@celeborn.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org