sadanand48 commented on a change in pull request #3175:
URL: https://github.com/apache/ozone/pull/3175#discussion_r831264682
##########
File path:
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/key/OMKeysDeleteRequest.java
##########
@@ -248,4 +252,16 @@ private static void addDeletedKeys(
auditMap.put(UNDELETED_KEYS_LIST, String.join(",", unDeletedKeys));
}
+ public static OMKeysDeleteRequest getInstance(
+ OzoneManagerProtocolProtos.DeleteKeyArgs 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]