yandrey321 commented on code in PR #9723:
URL: https://github.com/apache/ozone/pull/9723#discussion_r2776576553


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/protocolPB/OzoneManagerRequestHandler.java:
##########
@@ -1372,11 +1388,10 @@ private FinalizeUpgradeProgressResponse 
reportUpgradeProgress(
   }
 
   private PrepareStatusResponse getPrepareStatus() {
-    OzoneManagerPrepareState.State prepareState =
-        impl.getPrepareState().getState();
+    // Prepare is no longer used, always return NOT_PREPARED
     return PrepareStatusResponse.newBuilder()
-        .setStatus(prepareState.getStatus())
-        .setCurrentTxnIndex(prepareState.getIndex()).build();
+        .setStatus(PrepareStatusResponse.PrepareStatus.NOT_PREPARED)

Review Comment:
   why not returning the success for backward compatibility?



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