waitinfuture commented on code in PR #985:
URL: 
https://github.com/apache/incubator-celeborn/pull/985#discussion_r1029153489


##########
common/src/main/proto/TransportMessages.proto:
##########
@@ -138,9 +138,10 @@ message PbHeartbeatFromWorker {
   int32 fetchPort = 4;
   int32 replicatePort = 5;
   repeated PbDiskInfo disks = 6;
-  repeated string shuffleKeys = 7;
+  repeated string activeShuffleKeys = 7;
   string requestId = 8;
   map<string, PbResourceConsumption> userResourceConsumption = 9;
+  map<string,int64> estimatedAppDiskUsage = 10;

Review Comment:
   Should add space after comma



##########
worker/src/main/scala/org/apache/celeborn/service/deploy/worker/storage/StorageManager.scala:
##########
@@ -371,6 +371,18 @@ final private[worker] class StorageManager(conf: 
CelebornConf, workerSource: Abs
     hashSet
   }
 
+  def topAppDiskUsage: util.Map[String, Long] = {
+    fileInfos.asScala.map { keyedWriters =>

Review Comment:
   We'd better synchronize on fileInfos. See userResourceConsumptionSnapshot



##########
master/src/main/scala/org/apache/celeborn/service/deploy/master/metrics/AppDiskUsageMetric.scala:
##########
@@ -0,0 +1,145 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.celeborn.service.deploy.master.metrics
+
+import java.time.LocalDateTime
+import java.util
+import java.util.concurrent.TimeUnit
+import java.util.concurrent.atomic.AtomicReference
+
+import scala.collection.JavaConverters.{iterableAsScalaIterableConverter, 
mapAsScalaMapConverter}

Review Comment:
   Plz delete the unused imports.



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