Chung-En Lee created HDDS-16485:
-----------------------------------
Summary: Define Protobuf schemas and domain models for Object Lock
and Retention
Key: HDDS-16485
URL: https://issues.apache.org/jira/browse/HDDS-16485
Project: Apache Ozone
Issue Type: Sub-task
Reporter: Chung-En Lee
Establish protobuf schemas, domain classes, and RockDB table model extensions
to support retention and legal hold configurations.
* In {{{}OmClientProtocol.proto{}}}:
** Define {{RetentionMode}} enum ({{{}GOVERNANCE = 1{}}}, {{{}COMPLIANCE =
2{}}}), {{{}Rule{}}}, {{{}EventHold{}}}, and {{RetentionConfig}} messages.
** Extend {{BucketInfo}} with {{optional bool objectLockEnabled = 24}} and
{{{}optional RetentionConfig defaultRetention = 25{}}}.
** Extend {{KeyInfo}} & {{KeyInfoProtoLight}} with {{optional RetentionConfig
retentionConfig = 23}} and {{{}optional bool legalHold = 24{}}}.
* In {{{}hadoop-ozone/common{}}}:
** Update {{OmBucketInfo}} and {{OmKeyInfo}} builders, getters, and proto
serialization methods.
** Add {{Retention}} domain model ({{{}fromProto{}}}, {{{}toProto{}}}).
** Implement {{RetentionUtil}} helper for {{RetainUntilDate}} validation and
calculation.
h4.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]