yandrey321 commented on code in PR #10792:
URL: https://github.com/apache/ozone/pull/10792#discussion_r3633107722


##########
hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneClientAdapterImpl.java:
##########
@@ -132,6 +133,11 @@ public class BasicRootedOzoneClientAdapterImpl
   private BucketLayout defaultOFSBucketLayout;
   private final OzoneConfiguration config;
   private final OzoneClientConfig clientConfig;
+  /**
+   * Cache of successfully validated bucket layouts for read paths.
+   */
+  private final ConcurrentHashMap<String, BucketLayout> validatedBucketLayouts 
=
+      new ConcurrentHashMap<>();

Review Comment:
   it might be the case for HBase, so I'd agree with Copilot that we need 
TTL/eviction policy and size limit for the cache.



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