yihua commented on code in PR #18176:
URL: https://github.com/apache/hudi/pull/18176#discussion_r2795758232
##########
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:
nit: it would be good to create a private method
`isPermissionDeniedException(IOException e)` for the exception parsing with the
string matching on `"Permission denied"` / `"Access denied"` so the logic here
is easier to read.
--
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]