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


##########
hadoop-ozone/client/src/main/java/org/apache/hadoop/ozone/client/rpc/RpcClient.java:
##########
@@ -2625,6 +2633,9 @@ public OzoneOutputStream createFile(String volumeName, 
String bucketName,
             + " Erasure Coded replication.");
       }
     }
+    if (storagePolicy != null && 
!OzoneManagerVersion.STORAGE_POLICY_SUPPORT.isSupportedBy(omVersion)) {

Review Comment:
   Thanks @rakeshadr. While looking into this, I found that 
[HDDS-17140](https://issues.apache.org/jira/browse/HDDS-17140) was recently 
merged on master and seems to cover the same problem. It refreshes the cached 
OM version on first access after a configurable expiry (10 minutes by default), 
and it applies to every version-gated check.
   
   The design differs from the retry-on-reject idea you described. A client can 
reject a storage-policy call for up to one expiry interval after finalization, 
instead of recovering right away.
   
   Do you think that window is acceptable, or would you prefer a follow-up JIRA 
that adds a retry at reject time on top of HDDS-17140?



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