Rajeev-01 commented on code in PR #13473:
URL: https://github.com/apache/hudi/pull/13473#discussion_r2311832780


##########
hudi-common/src/main/java/org/apache/hudi/common/table/HoodieTableConfig.java:
##########
@@ -504,6 +505,7 @@ public static void recover(HoodieStorage storage, 
StoragePath metadataFolder) th
   private static void modify(HoodieStorage storage, StoragePath 
metadataFolder, Properties modifyProps, BiConsumer<Properties, Properties> 
modifyFn) {
     StoragePath cfgPath = new StoragePath(metadataFolder, 
HOODIE_PROPERTIES_FILE);
     StoragePath backupCfgPath = new StoragePath(metadataFolder, 
HOODIE_PROPERTIES_FILE_BACKUP);
+    StoragePath tempCfgPath = new StoragePath(metadataFolder, 
HOODIE_PROPERTIES_FILE + HOODIE_TEMP_FILE_SUFFIX);

Review Comment:
   Thanks @danny0405 for reviewing the PR 
https://github.com/apache/hudi/pull/13740
   Since we have added all the guardrails to makesure that properties file is 
not corrupted, I'm thinking we still need this atomic rename to make sure that 
we didn't end up in empty  property file (due to JVM crash or filesytem gets 
closed or due to other issues, even if we end up in empty file or corrupted 
file it gets handled by the prechecks added, but this rename will make sure 
that there will be no empty and no calls in the recoverIfNeeded method). WDYT? 



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