sodonnel commented on a change in pull request #3035:
URL: https://github.com/apache/ozone/pull/3035#discussion_r798499371
##########
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:
OK - sounds good to me. On a wider node, I reckon we need to check all
usages of `ReplicationConfig.getLegacyFactor()`, as anywhere that gets called
on a EC config, it will fail like this one does. I will raise another EC Jira
for that task.
--
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]