alexeykudinkin commented on a change in pull request #4716:
URL: https://github.com/apache/hudi/pull/4716#discussion_r794979942
##########
File path:
hudi-client/hudi-spark-client/src/main/java/org/apache/hudi/client/SparkRDDWriteClient.java
##########
@@ -442,8 +443,11 @@ private void updateTableMetadata(HoodieTable<T,
JavaRDD<HoodieRecord<T>>, JavaRD
metaClient, config, context,
SparkUpgradeDowngradeHelper.getInstance())
.run(HoodieTableVersion.current(), instantTime);
metaClient.reloadActiveTimeline();
- initializeMetadataTable(Option.of(instantTime));
}
+ // Initialize Metadata Table to make sure it's bootstrapped _before_ the
operation,
+ // if it didn't exist before
+ // See https://issues.apache.org/jira/browse/HUDI-3343 for more details
+ initializeMetadataTable(Option.of(instantTime));
Review comment:
This is addressing HUDI-3343
##########
File path:
hudi-common/src/main/java/org/apache/hudi/metadata/HoodieTableMetadataUtil.java
##########
@@ -264,17 +265,6 @@ private static void
processRollbackMetadata(HoodieActiveTimeline metadataTableTi
partitionToAppendedFiles.get(partition).merge(new
Path(path).getName(), size, fileMergeFn);
});
}
-
- if (pm.getWrittenLogFiles() != null &&
!pm.getWrittenLogFiles().isEmpty()) {
Review comment:
This is addressing HUDI-3322
--
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]