chungen0126 commented on code in PR #11293:
URL: https://github.com/apache/ozone/pull/11293#discussion_r4722742469
##########
hadoop-ozone/interface-client/src/main/proto/OmClientProtocol.proto:
##########
@@ -850,6 +850,41 @@ message BucketInfo {
optional uint64 snapshotUsedBytes = 21;
optional uint64 snapshotUsedNamespace = 22;
repeated hadoop.hdds.KeyValue tags = 23;
+ optional bool objectLockEnabled = 24 [default = false];
+ optional BucketRetention defaultRetention = 25;
+}
+
+message BucketRetention {
+ required RetentionMode retentionMode = 1;
+ optional RetentionDuration duration = 2;
+ optional RetentionDuration defaultEventHold = 3;
+}
+
+message KeyRetention {
+ required RetentionMode retentionMode = 1;
+ // Epoch milliseconds; the minimum date while the event hold is ON.
+ optional uint64 retentionDate = 2;
+ optional EventHold eventHold = 3;
+}
+
+message EventHold {
+ optional bool enabled = 1 [default = true];
+ required RetentionDuration duration = 2;
Review Comment:
Sorry, I updated the design doc. Could you please change this protobuf field
to optional and update the related code?
--
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]