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


##########
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:
   Yes, I have added a [JIRA](https://issues.apache.org/jira/browse/HDDS-17961) 
to track this. 
   To be clear on scope for this PR: it's the repair copy / target-selection 
side (EC under-replication + mis-replication preserving the storage type). The 
tier-aware deletion you're referencing is the over-replication side — a 
separate concern this PR doesn't touch, and it's a precondition for the 
promotion work (HDDS-17712), not for this repair change.
   
   Updated the design contract as well.



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