brucearctor commented on code in PR #13891:
URL: https://github.com/apache/gravitino/pull/13891#discussion_r4608283460


##########
clients/filesystem-hadoop3/src/main/java/org/apache/gravitino/filesystem/hadoop/BaseGVFSOperations.java:
##########
@@ -609,11 +616,15 @@ private void createFilesetLocationIfNeed(
     // If the server-side filesystem ops are disabled, the fileset directory 
may not exist. In such
     // case the operations like create, open, list files under this directory 
will fail. So we
     // need to check the existence of the fileset directory beforehand.
-    boolean fsOpsDisabled =
-        ((Catalog) getFilesetCatalog(catalogIdent))
-            .properties()
-            .getOrDefault("disable-filesystem-ops", "false")
-            .equalsIgnoreCase("true");
+    boolean fsOpsDisabled = false;
+    Catalog catalog = getCatalog(catalogIdent);

Review Comment:
   Addressed in aa45b0890 after rebasing onto main — 
`createFilesetLocationIfNeed` reads `disable-filesystem-ops` from the catalog 
returned by `getFilesetCatalog(catalogIdent)` while keeping a null guard on 
catalog properties. Added 
`testCreateFilesetLocationUsesHookCatalogDisableFilesystemOpsFlag` in 
`TestBaseGVFSOperationsSecrets`.



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