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: [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]