yl09099 commented on code in PR #1762:
URL: 
https://github.com/apache/incubator-uniffle/pull/1762#discussion_r1634265262


##########
server/src/main/java/org/apache/uniffle/server/ShuffleServerGrpcService.java:
##########
@@ -157,6 +157,45 @@ public void registerShuffle(
     int shuffleId = req.getShuffleId();
     String remoteStoragePath = req.getRemoteStorage().getPath();
     String user = req.getUser();
+    int stageAttemptNumber = req.getStageAttemptNumber();
+    // If the Stage is registered for the first time, you do not need to 
consider the Stage retry
+    // and delete the Block data that has been sent.
+    if (stageAttemptNumber > 0) {
+      ShuffleTaskInfo taskInfo = 
shuffleServer.getShuffleTaskManager().getShuffleTaskInfo(appId);
+      int attemptNumber = taskInfo.getLatestStageAttemptNumber(shuffleId);
+      if (stageAttemptNumber > attemptNumber) {
+        taskInfo.refreshLatestStageAttemptNumber(shuffleId, 
stageAttemptNumber);

Review Comment:
   > Is this addressed? @yl09099
   
   I already fixed it. @jerqi Look at this.



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to