adoroszlai commented on code in PR #9631:
URL: https://github.com/apache/ozone/pull/9631#discussion_r2711404184


##########
hadoop-ozone/common/src/main/java/org/apache/hadoop/ozone/om/helpers/OmKeyArgs.java:
##########
@@ -327,20 +338,22 @@ public Builder setMultipartUploadPartNumber(int 
multipartUploadPartNumber) {
       return this;
     }
 
+    @Override
     public Builder addMetadata(String key, String value) {
-      this.metadata.put(key, value);
+      super.addMetadata(key, value);
       return this;
     }
 
+    @Override
     public Builder addAllMetadata(Map<String, String> metadatamap) {
-      this.metadata.putAll(metadatamap);
+      super.addAllMetadata(metadatamap);
       return this;
     }
 
     public Builder addAllMetadataGdpr(Map<String, String> metadatamap) {
       addAllMetadata(metadatamap);
-      if (Boolean.parseBoolean(metadata.get(OzoneConsts.GDPR_FLAG))) {
-        GDPRSymmetricKey.newDefaultInstance().acceptKeyDetails(metadata::put);
+      if (Boolean.parseBoolean(metadatamap.get(OzoneConsts.GDPR_FLAG))) {

Review Comment:
   Thanks, added a null check.



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