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


##########
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:
   Using `Boolean` allows us to distinguish between an absent optional protobuf 
field (`null`) and an explicitly OFF value (`false`). The conversion code 
preserves this distinction across serialization round trips.
   
   What do you think?



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