This is an automated email from the ASF dual-hosted git repository.

angerszhuuuu pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-celeborn.git


The following commit(s) were added to refs/heads/main by this push:
     new c0a9578d9 [CELEBORN-563] Remove unnecessary code (#1469)
c0a9578d9 is described below

commit c0a9578d9ffe2ca81539e1536c6bab06397a51cd
Author: Angerszhuuuu <[email protected]>
AuthorDate: Sat May 6 11:25:31 2023 +0800

    [CELEBORN-563] Remove unnecessary code (#1469)
---
 .../org/apache/celeborn/client/ChangePartitionManager.scala  | 12 ------------
 1 file changed, 12 deletions(-)

diff --git 
a/client/src/main/scala/org/apache/celeborn/client/ChangePartitionManager.scala 
b/client/src/main/scala/org/apache/celeborn/client/ChangePartitionManager.scala
index daf058b08..eb79d30f4 100644
--- 
a/client/src/main/scala/org/apache/celeborn/client/ChangePartitionManager.scala
+++ 
b/client/src/main/scala/org/apache/celeborn/client/ChangePartitionManager.scala
@@ -264,18 +264,6 @@ class ChangePartitionManager(
     val newlyAllocatedLocations =
       
reallocateChangePartitionRequestSlotsFromCandidates(changePartitions.toList, 
candidates)
 
-    if (!lifecycleManager.registeredShuffle.contains(shuffleId)) {
-      logError(s"[handleChangePartition] shuffle $shuffleId not registered!")
-      replyFailure(StatusCode.SHUFFLE_NOT_REGISTERED)
-      return
-    }
-
-    if (lifecycleManager.commitManager.isStageEnd(shuffleId)) {
-      logError(s"[handleChangePartition] shuffle $shuffleId already ended!")
-      replyFailure(StatusCode.STAGE_ENDED)
-      return
-    }
-
     if (!lifecycleManager.reserveSlotsWithRetry(
         applicationId,
         shuffleId,

Reply via email to