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


##########
hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/container/replication/RatisUnderReplicationHandler.java:
##########
@@ -236,15 +237,18 @@ of other replicas, including UNHEALTHY replicas that are 
not pending delete (bec
 
     CommandTargetOverloadedException firstException = null;
     int numCommandsSent = 0;
+    StorageType targetStorageType =
+        ReplicationManagerUtil.getTargetStorageType(container);

Review Comment:
   Thanks for this. One concern: with no fallback, a HOT container whose 
replica is lost while no other SSD node is free stays under-replicated until 
SSD space appears. Before this change it was repaired on DISK. The same blocks 
decommission of an SSD node when there is no spare SSD node, because 
decommission waits for full replication. So this change is not in line with 
approved design of Storage policy. 
   HDDS-17536 asks to keep "policy intent or approved fallback while 
maintaining replica counts", and HOT already
   has a DISK creation fallback. Could we try the container tier first and, on 
FAILED_TO_FIND_SUITABLE_NODE, retry
   with the tier's fallback (SSD -> DISK; DISK and ARCHIVE have none), and send 
the chosen type in the command so
   pending-op accounting matches? Then this test could become "SSD available -> 
SSD" plus "SSD full -> DISK", and
   COLD still stays blocked.



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