anuragp010 commented on code in PR #12071:
URL: https://github.com/apache/ozone/pull/12071#discussion_r4676609451


##########
hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/TestOMStoragePolicyMetrics.java:
##########
@@ -68,6 +68,21 @@ void testPreferredPolicy(OzoneStoragePolicy policy) throws 
Exception {
         .contains("outcome=\"preferred\"").contains(" 100\n");
   }
 
+  /**
+   * The actual-tier label comes from {@link StorageTier} itself, so every 
tier that can hold data, including any added
+   * later, is reported under its own name rather than collapsing into 
UNKNOWN. EMPTY only means "no fallback tier" on a
+   * policy, so a block recorded with it is UNKNOWN.
+   */
+  @ParameterizedTest
+  @EnumSource(StorageTier.class)
+  void testEveryStorageTierIsExportedUnderItsOwnName(StorageTier tier) {

Review Comment:
   nit: Should we remove this test? HOT/SSD/SSD/Fallback is a scenario that 
isn't possible in current design - same with HOT/SSD/ARCHIVE/fallback .



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