You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "kerneltime (via GitHub)" <gi...@apache.org> on 2025/04/01 17:38:02 UTC

Re: [PR] HDDS-11763. Implement container repair logic within datanodes. [ozone]

kerneltime commented on code in PR #7474:
URL: https://github.com/apache/ozone/pull/7474#discussion_r2022184654


##########
hadoop-hdds/common/src/main/java/org/apache/hadoop/hdds/client/ReplicationConfig.java:
##########
@@ -112,6 +112,12 @@ static HddsProtos.ReplicationFactor getLegacyFactor(
       return ((ReplicatedReplicationConfig) replicationConfig)
           .getReplicationFactor();
     }
+
+    if (replicationConfig instanceof  StandaloneReplicationConfig) {
+      return ((StandaloneReplicationConfig) replicationConfig)
+          .getReplicationFactor();
+    }
+

Review Comment:
   Why is this needed? 
   ```
   public final class StandaloneReplicationConfig implements
       ReplicatedReplicationConfig {
   ```



-- 
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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org