LuciferYang commented on code in PR #13851:
URL: https://github.com/apache/gravitino/pull/13851#discussion_r4560882069


##########
clients/filesystem-hadoop3/src/main/java/org/apache/gravitino/filesystem/hadoop/BaseGVFSOperations.java:
##########
@@ -972,10 +972,31 @@ private Cache<FileSystemCacheKey, FileSystem> 
newFileSystemCache(Configuration c
   Map<String, String> getAllProperties(NameIdentifier filesetIdent) {
     String catalogName = filesetIdent.namespace().level(1);
     String schemaName = filesetIdent.namespace().level(2);
-    Catalog catalog = getGravitinoClient().loadCatalog(catalogName);
-    Schema schema = catalog.asSchemas().loadSchema(schemaName);
+    // Go through the metadata cache when it is enabled, so that an operation 
does not reload the

Review Comment:
   Yes. This is how the cache behaved before #12572, and the operation has 
already read the fileset from the cache in `getFileset` before it gets here. 
Secrets and the catalog's static credentials are still fetched on every call. 
The cache entries have no TTL and stay until they are evicted by size. The 
config docs already mentioned the side effect for the fileset and its catalog; 
in 8cba966c6 I reworded both rows (Java and Python) to cover the schema and the 
properties, and to say that secrets are still fetched for every operation.



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

Reply via email to