nandakumar131 commented on code in PR #7831:
URL: https://github.com/apache/ozone/pull/7831#discussion_r1947462806
##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/StorageContainerManager.java:
##########
@@ -383,6 +383,15 @@ private StorageContainerManager(OzoneConfiguration conf,
"failure.", ResultCodes.SCM_NOT_INITIALIZED);
}
+ // Initialize Ratis if needed.
+ // This is for the clusters which got upgraded from older version of Ozone.
+ // We enable Ratis by default.
+ if (!scmStorageConfig.isSCMHAEnabled()) {
+ initializeRatis(conf);
+ // Since we have initialized Ratis, we have to reload StorageConfig
+ scmStorageConfig = new SCMStorageConfig(conf);
Review Comment:
Makes sense, I will update the PR.
--
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]