pan3793 commented on code in PR #2233:
URL: 
https://github.com/apache/incubator-celeborn/pull/2233#discussion_r1454767302


##########
worker/src/main/scala/org/apache/celeborn/service/deploy/worker/storage/StorageManager.scala:
##########
@@ -61,7 +61,18 @@ final private[worker] class StorageManager(conf: 
CelebornConf, workerSource: Abs
   // (deviceName -> deviceInfo) and (mount point -> diskInfo)
   val (deviceInfos, diskInfos) = {
     val workingDirInfos =
-      conf.workerBaseDirs.map { case (workdir, maxSpace, flusherThread, 
storageType) =>
+      conf.workerBaseDirs.flatMap { case (dir, maxCapacity, flushThread, 
diskType) =>
+        try {
+          Files.createDirectories(new File(dir, conf.workerWorkingDir).toPath)
+          Some((dir, maxCapacity, flushThread, diskType))
+        } catch {
+          case e: IOException =>
+            log.error(

Review Comment:
   nit: logError



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