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



##########
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:
       I copied this condition from the corresponding generator class:
   
   
https://github.com/apache/ozone/blob/e47b6f0c35534270441307f0338ab8184d2e2fb5/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/freon/DatanodeChunkGenerator.java#L127
   
   But searching for this fragment I found that the base class has a utility 
method for the same purpose, so we can get rid of some duplication.




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