FMX commented on code in PR #2130:
URL: 
https://github.com/apache/incubator-celeborn/pull/2130#discussion_r1434792931


##########
worker/src/main/scala/org/apache/celeborn/service/deploy/worker/storage/StorageManager.scala:
##########
@@ -847,12 +774,119 @@ final private[worker] class StorageManager(conf: 
CelebornConf, workerSource: Abs
   }
 
   def getActiveShuffleSize(): Long = {
-    
fileInfos.values().asScala.map(_.values().asScala.map(_.getBytesFlushed).sum).sum
+    
nonMemoryFileInfos.values().asScala.map(_.values().asScala.map(_.getBytesFlushed).sum).sum
   }
 
   def getActiveShuffleFileCount(): Long = {
-    fileInfos.asScala.values.map(_.size()).sum
+    nonMemoryFileInfos.asScala.values.map(_.size()).sum
+  }
+
+  def createFile(

Review Comment:
   I think this change could make the code look cleaner.



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