sodonnel commented on code in PR #6385:
URL: https://github.com/apache/ozone/pull/6385#discussion_r1595683152


##########
hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/request/key/TestOMKeyCommitRequest.java:
##########
@@ -218,6 +224,75 @@ public void testValidateAndUpdateCache() throws Exception {
         omKeyInfo.getLatestVersionLocations().getLocationList());
   }
 
+  @Test
+  public void testAtomicRewrite() throws Exception {
+    if (getBucketLayout() == BucketLayout.FILE_SYSTEM_OPTIMIZED) {
+     // TODO - does not work with in FSO for now
+      return;
+    }
+
+    Table<String, OmKeyInfo> openKeyTable = 
omMetadataManager.getOpenKeyTable(BucketLayout.DEFAULT);

Review Comment:
   This should actually use the method `getBucketLayout` as this test class is 
sub-classed for FSO and OBS buckets. As it was coded, it would have failed when 
we enabled FSO bucket testing but removing the temporary `if (getBucketLayout() 
== BucketLayout.FILE_SYSTEM_OPTIMIZED)` clause at line 229.



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