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


##########
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmKeyInfo.java:
##########
@@ -532,6 +545,8 @@ public static class Builder extends 
WithParentObjectId.Builder<OmKeyInfo> {
     private boolean isFile;
     private final MapBuilder<String, String> tags;
     private Long expectedDataGeneration = null;
+    private ObjectRetention retention;
+    private Boolean legalHold;

Review Comment:
   The protobuf field is `optional` because incoming requests may not always 
provide a value for it, and making it `required` would cause an error. 
   
   However, it does have a default value, in this case, false. My thought is to 
default it to false when it's `null`. Please also update the related 
`getEnabled` method.



-- 
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]

Reply via email to