chungen0126 commented on code in PR #12215:
URL: https://github.com/apache/ozone/pull/12215#discussion_r4796037751
##########
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/OzoneBucket.java:
##########
@@ -1352,6 +1353,16 @@ public void deleteObjectTagging(String keyName) throws
IOException {
proxy.deleteObjectTagging(volumeName, name, keyName);
}
+ /**
+ * Enables Object Lock and sets the default retention for this bucket.
+ *
+ * @param defaultRetention the default retention, or null to clear the
default
+ * @throws IOException if the configuration could not be set
+ */
+ public void setObjectLockConfiguration(BucketRetention defaultRetention)
throws IOException {
Review Comment:
I think we can add a method for BucketRetention to create an empty retention
for cleaning up object lock config and enabling object lock.
##########
hadoop-ozone/integration-test-s3/src/test/java/org/apache/hadoop/ozone/s3/awssdk/v2/AbstractS3SDKV2Tests.java:
##########
@@ -787,6 +794,41 @@ public void testGetObjectTaggingReturnsTagsSortedByKey() {
assertEquals("val2", tagSet.get(1).value());
}
+ @Test
+ public void testPutBucketObjectLockConfiguration() throws Exception {
Review Comment:
Let's add s3 integration tests after we implemented
`PutBucketObjectLockConfiguration` and `GetBucketObjectLockConfiguration`
--
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]