turboFei commented on code in PR #3221:
URL: https://github.com/apache/celeborn/pull/3221#discussion_r2064108348


##########
worker/src/main/scala/org/apache/celeborn/service/deploy/worker/WorkerSource.scala:
##########
@@ -111,8 +111,12 @@ class WorkerSource(conf: CelebornConf) extends 
AbstractSource(conf, Role.WORKER)
     val applicationIds = 
appActiveConnections.get(client.getChannel.id().asLongText())
     val applicationId = Utils.splitShuffleKey(shuffleKey)._1
     if (applicationIds != null && !applicationIds.contains(applicationId)) {
-      addCounter(ACTIVE_CONNECTION_COUNT, Map(applicationLabel -> 
applicationId))
-      incCounter(ACTIVE_CONNECTION_COUNT, 1, Map(applicationLabel -> 
applicationId))
+      var labels = Map.empty[String, String]
+      if (conf.metricsPushApplicationId) {
+        labels += (applicationLabel -> applicationId)
+        addCounter(ACTIVE_CONNECTION_COUNT, labels)

Review Comment:
   The TOP  application consumption was remove by 
https://github.com/apache/celeborn/pull/2949
   



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