zaynt4606 commented on code in PR #3059:
URL: https://github.com/apache/celeborn/pull/3059#discussion_r1912740535


##########
worker/src/main/scala/org/apache/celeborn/service/deploy/worker/Controller.scala:
##########
@@ -730,6 +738,41 @@ private[deploy] class Controller(
     }
   }
 
+  def checkCommitTimeout(shuffleCommitTime: ConcurrentHashMap[
+    String,
+    ConcurrentHashMap[Long, (Int, RpcCallContext)]]): Unit = {
+    val delta = 100
+
+    shuffleCommitTime.asScala.foreach {
+      case (shuffleKey, epochWaitTimeMap) =>
+        epochWaitTimeMap.asScala.foreach { case (epoch, (waitTime, context)) =>
+          val commitInfo = shuffleCommitInfos.get(shuffleKey).get(epoch)
+          commitInfo.synchronized {
+            if (waitTime * delta < shuffleCommitTimeout) {
+              if (commitInfo.status == CommitInfo.COMMIT_FINISHED) {

Review Comment:
   `COMMIT_FINISHED`  check can be move ahead of timeout check.
   Once the commit is complete, it can return even if it has timed out



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