greenwich commented on code in PR #12185:
URL: https://github.com/apache/ozone/pull/12185#discussion_r4748828031


##########
hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/hdds/scm/container/replication/TestECUnderReplicationHandler.java:
##########
@@ -376,6 +378,53 @@ public void testUnderReplicationWithDecomIndex1() throws 
IOException {
     assertEquals(1, cmd.getReplicaIndex());
   }
 
+  @Test

Review Comment:
   The EC tests cover only the positive cases. The RATIS PR also has the "must 
not fall back" ones, worth mirroring for EC: 
testUnderReplicationDoesNotFallbackFromArchive, 
testUnderReplicationDoesNotFallbackFromDiskOrMissingTier, 
testMisReplicationDoesNotFallBackWhenSsdUnavailable.



##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/replication/ECUnderReplicationHandler.java:
##########
@@ -635,9 +636,9 @@ private int processMaintenanceOnlyIndexes(
     LOG.debug("Number of maintenance replicas of container {} that need " +
             "additional copies: {}.", container.containerID(),
         additionalMaintenanceCopiesNeeded);
-    // TODO StoragePolicy replace this StorageType with container actual 
StorageType
-    List<DatanodeDetails> targets = getTargetDatanodes(
-        container, maintIndexes.size(), usedNodes, excludedNodes, 
StorageType.DEFAULT);
+    final TargetSelection maintTargets = selectCopyTargetsWithFallback(

Review Comment:
   The tier-aware deletion sub-task in the promotion design doc (HDDS-17535 
attachment) lists the EC handler but describes only the RATIS promotion case; 
worth adding this one to it. Do we have jira for that?



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