errose28 commented on code in PR #10902:
URL: https://github.com/apache/ozone/pull/10902#discussion_r3691988131


##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/SCMClientProtocolServer.java:
##########
@@ -1224,13 +1224,23 @@ public HddsProtos.UpgradeStatus queryUpgradeStatus() 
throws IOException {
           scm.getScmNodeManager().getDatanodeFinalizationCounts();
       int finalizedDatanodes = 
datanodeFinalizationCounts.getNumFinalizedDatanodes();
       int healthyDatanodes = 
datanodeFinalizationCounts.getTotalHealthyDatanodes();
-      boolean hddsFinalized = scmFinalized && 
datanodeFinalizationCounts.allNodesFinalized();
+
+      HddsProtos.FinalizationStatus scmFinalizationStatus =
+          scmFinalized ? HddsProtos.FinalizationStatus.FINALIZED : 
HddsProtos.FinalizationStatus.UNFINALIZED;

Review Comment:
   Right. I've rearranged this section and added comments to clarify, will push 
in the next commit.



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