suryaprasanna commented on code in PR #18176:
URL: https://github.com/apache/hudi/pull/18176#discussion_r2796670785


##########
hudi-common/src/main/java/org/apache/hudi/common/util/ConfigUtils.java:
##########
@@ -682,7 +682,16 @@ public static TypedProperties fetchConfigs(
           }
           return props;
         } catch (IOException e) {
-          LOG.warn("Could not read properties from {}: {}", path, e);
+          // Check if this is a permission denied error by checking the 
exception class name
+          // This works across different storage implementations (Hadoop, S3, 
GCS, etc.)
+          if (e.getClass().getSimpleName().contains("AccessControl")

Review Comment:
   Makes sense, created HoodieExceptionUtil class and moved the logic there.



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