sodonnel commented on a change in pull request #3035:
URL: https://github.com/apache/ozone/pull/3035#discussion_r798468701



##########
File path: 
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/freon/DatanodeChunkValidator.java
##########
@@ -109,9 +107,7 @@ public Void call() throws Exception {
 
       } else {
         pipeline = pipelines
-            .filter(
-                p -> 
ReplicationConfig.getLegacyFactor(p.getReplicationConfig())
-                    == HddsProtos.ReplicationFactor.THREE)
+              .filter(p -> p.getReplicationConfig().getRequiredNodes() == 3)

Review comment:
       Rather than "3" here, should we have 
"HddsProtos.ReplicationFactor.THREE.getValue()", so we are using the constant. 
It is so unlikely the definition of THREE will change so I am fine either way.




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