You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "shuan1026 (via GitHub)" <gi...@apache.org> on 2026/10/12 11:56:15 UTC

Re: [PR] HDDS-16485. Add Object Lock protobuf schemas and retention models [ozone]

shuan1026 commented on code in PR #11293:
URL: https://github.com/apache/ozone/pull/11293#discussion_r4247707616


##########
hadoop-ozone/interface-client/src/main/proto/OmClientProtocol.proto:
##########
@@ -1241,6 +1269,9 @@ message KeyInfo {
   // This allows a key to be created an committed atomically if the original has not
   // been modified.
     optional uint64 expectedDataGeneration = 22;
+    optional uint64 retentionDate = 23;
+    optional RetentionConfig retentionConfig = 24;
+    optional bool legalHold = 25 [default = false];

Review Comment:
   Against OEP 16f4074, key-level lock state is now a single nested message:
   
   ```protobuf
   optional Retention retention = 23;
   optional bool legalHold = 24 [default = false];
   
   message Retention {
     required RetentionMode retentionMode = 1;
     optional string retentionDate = 2;  // OEP; see type note below
     optional EventHold eventHold = 3;
   }
   ```
   



-- 
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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org