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


##########
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:
   When reading data from the peers using `BlockInputStream` we use 
`StandaloneReplicationConfig` , hence we need to add it here to enable it. 



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