nsivabalan commented on a change in pull request #4712:
URL: https://github.com/apache/hudi/pull/4712#discussion_r807347542
##########
File path:
hudi-common/src/main/java/org/apache/hudi/common/table/HoodieTableConfig.java
##########
@@ -228,13 +228,20 @@ public HoodieTableConfig() {
private void fetchConfigs(FileSystem fs, String metaPath) throws IOException
{
Path cfgPath = new Path(metaPath, HOODIE_PROPERTIES_FILE);
+ Path backupCfgPath = new Path(metaPath, HOODIE_PROPERTIES_FILE_BACKUP);
try (FSDataInputStream is = fs.open(cfgPath)) {
props.load(is);
+ // validate checksum and upgrade
+ if (!contains(TABLE_CHECKSUM.key()) || !validateChecksum(props)) {
Review comment:
oh, I forgot the read path. What incase someone tries to use hudi-0.11
to read a table written w/ hudi 0.10 and has not made any new writes w/ 0.11 at
all. basically if someone upgrades hudi just on the read path, would this logic
still hold good?
sorry for back and forth. wanted to ensure we don't miss anything or break
things.
--
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]