You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "wombatu-kun (via GitHub)" <gi...@apache.org> on 2026/06/14 01:50:10 UTC

Re: [PR] fix: Skip missing properties files gracefully in DFSPropertiesConfiguration [hudi]

wombatu-kun commented on code in PR #18805:
URL: https://github.com/apache/hudi/pull/18805#discussion_r3408876390


##########
hudi-hadoop-common/src/main/java/org/apache/hudi/common/config/DFSPropertiesConfiguration.java:
##########
@@ -156,8 +156,8 @@ public void addPropsFromFile(StoragePath filePath) {
     );
 
     try {
-      if (filePath.equals(DEFAULT_PATH) && !storage.exists(filePath)) {
-        log.debug("Properties file {} not found. Ignoring to load props file", filePath);
+      if (!storage.exists(filePath)) {
+        log.warn("Properties file {} not found. Ignoring to load props file", filePath);

Review Comment:
   This promotes the log to warn for the DEFAULT_PATH branch as well. hudi-defaults.conf is commonly absent, so loadGlobalProps (line 123) routes DEFAULT_PATH through this same return and will now emit WARN on routine global-props loads. #13986 deliberately downgraded this exact line from warn to debug to cut that noise. Consider keeping debug when filePath equals DEFAULT_PATH and warning only for explicitly user-specified files.



-- 
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: commits-unsubscribe@hudi.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org