mridulm commented on code in PR #2962:
URL: https://github.com/apache/celeborn/pull/2962#discussion_r1894370903


##########
client/src/main/scala/org/apache/celeborn/client/CommitManager.scala:
##########
@@ -122,9 +122,9 @@ class CommitManager(appUniqueId: String, val conf: 
CelebornConf, lifecycleManage
                               lifecycleManager.shuffleAllocatedWorkers
                                 .get(shuffleId)
                                 .asScala
-                                .find(_._1.equals(worker))
+                                .get(worker.toUniqueId())
                                 .get
-                                ._1
+                                .workerInfo
                             val primaryIds =

Review Comment:
   Given we assume it is available, we can simply make this entire code 
something like:
   ```
                            
lifecycleManager.shuffleAllocatedWorkers.get(shuffleId).get(worker.toUniqueId()).workerInfo
   ```



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