aryangupta1998 commented on code in PR #10157:
URL: https://github.com/apache/ozone/pull/10157#discussion_r3440877916


##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/safemode/SafeModeRuleFactory.java:
##########
@@ -75,10 +78,13 @@ private void loadRules(SCMSafeModeManager safeModeManager) {
         config, containerManager, safeModeManager);
     SafeModeExitRule<?> datanodeRule = new DataNodeSafeModeRule(eventQueue, 
         config, nodeManager, safeModeManager);
+    SafeModeExitRule<?> ecMinDnRule = new ECMinDataNodeSafeModeRule(eventQueue,
+        config, nodeManager, safeModeManager);
 
     safeModeRules.add(ratisContainerRule);
     safeModeRules.add(ecContainerRule);
     safeModeRules.add(datanodeRule);
+    safeModeRules.add(ecMinDnRule);

Review Comment:
   Kept the current pattern intentionally. The rule self-disables for non-EC 
defaults, so behavior is unchanged, and this avoids extra factory branching in 
this 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]

Reply via email to