sadanand48 commented on a change in pull request #3175:
URL: https://github.com/apache/ozone/pull/3175#discussion_r831277362



##########
File path: 
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/key/OMKeysRenameRequest.java
##########
@@ -276,4 +281,16 @@ public OMClientResponse 
validateAndUpdateCache(OzoneManager ozoneManager,
     auditMap.put(UNRENAMED_KEYS_MAP, unRenameKeysMap.toString());
     return auditMap;
   }
+
+  public static OMKeysRenameRequest getInstance(
+      OzoneManagerProtocolProtos.RenameKeysArgs keyArgs, OMRequest omRequest,
+      OzoneManager ozoneManager) throws IOException {
+
+    BucketLayout bucketLayout =
+        OzoneManagerUtils.getBucketLayout(keyArgs.getVolumeName(),
+            keyArgs.getBucketName(), ozoneManager, new HashSet<>());
+    Preconditions.checkArgument(!bucketLayout.isFileSystemOptimized(),

Review comment:
       Thanks noted, I will address these assertions separately in 
[HDDS-6426](https://issues.apache.org/jira/browse/HDDS-6426) .




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