cchung100m commented on code in PR #11505:
URL: https://github.com/apache/ozone/pull/11505#discussion_r4727152417
##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/StorageContainerManager.java:
##########
@@ -1275,6 +1275,7 @@ public static boolean scmInit(OzoneConfiguration conf,
}
if (state != StorageState.INITIALIZED) {
try {
+ SCMRatisServerImpl.verifyNoRaftGroup(conf);
Review Comment:
Hi @sumitagrawl
Thank you; you are right: the checks in the `SCMRatisServerImpl` constructor
and `initialize()` already fail for a stale group on both `--init` and startup,
so the `scmInit` check was redundant, and I removed it. As part of this, I also
removed the `null` group ID handling, so `verifyNoOtherRaftGroup` now always
compares against the SCM's own group.
--
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]