shenh062326 commented on a change in pull request #1819:
URL: https://github.com/apache/hudi/pull/1819#discussion_r464010724
##########
File path:
hudi-client/src/main/java/org/apache/hudi/table/HoodieTimelineArchiveLog.java
##########
@@ -267,15 +268,15 @@ private boolean
deleteAllInstantsOlderorEqualsInAuxMetaFolder(HoodieInstant thre
return success;
}
- public void archive(List<HoodieInstant> instants) throws
HoodieCommitException {
+ public void archive(JavaSparkContext jsc, List<HoodieInstant> instants)
throws HoodieCommitException {
try {
HoodieTimeline commitTimeline =
metaClient.getActiveTimeline().getAllCommitsTimeline().filterCompletedInstants();
Schema wrapperSchema = HoodieArchivedMetaEntry.getClassSchema();
LOG.info("Wrapper schema " + wrapperSchema.toString());
List<IndexedRecord> records = new ArrayList<>();
for (HoodieInstant hoodieInstant : instants) {
try {
- deleteAnyLeftOverMarkerFiles(hoodieInstant);
+ deleteAnyLeftOverMarkerFiles(jsc, hoodieInstant);
Review comment:
sorry, It does not belong to this pull request, I will remove it.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]