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


##########
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:
   Thanks for pointing this. Agreed. So added the three negative cases, 
mirroring the RATIS PR:
   - `testUnderReplicationDoesNotFallbackFromArchive` and 
`testUnderReplicationDoesNotFallbackFromDiskOrMissingTier` in 
`TestECUnderReplicationHandler` (decommission copy path): `ARCHIVE, DISK` and 
missing-tier (DEFAULT) are strict — only SSD falls back, to DISK — so the 
handler throws SCMException, sends no command, and never requests a DISK 
fallback target (for the DISK/null case it also verifies SSD is never 
requested).
   - `testMisReplicationDoesNotFallBackWhenSsdUnavailable` in 
`TestECMisReplicationHandler`: SSD is tried, DISK is never requested, and no 
copy command is sent — EC mis-replication has no fallback, matching the RATIS 
behavior (MisReplicationHandler now resolves the target tier with 
getTargetStorageType for both RATIS and EC).



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