anuragp010 commented on code in PR #11232:
URL: https://github.com/apache/ozone/pull/11232#discussion_r4132152613


##########
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/OzoneBucket.java:
##########
@@ -377,6 +378,17 @@ public void setStoragePolicy(StoragePolicy 
newStoragePolicy) throws IOException
     storagePolicy = newStoragePolicy;
   }
 
+  /**
+   * Sets the bucket's storage-policy properties carried in the given
+   * {@link OmBucketArgs} (storage policy, allowFallback, or unset). Used by 
the
+   * update path, where the policy may be absent or explicitly cleared.
+   * @param args Bucket arguments carrying the properties to update.
+   * @throws IOException
+   */
+  public void setStoragePolicyProperty(OmBucketArgs args) throws IOException {

Review Comment:
   Right. This would not work as expected in the current form. I have updated 
the PR with the suggested changes.



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