1
0

[HUDI-2997] Skip the corrupt meta file for pending rollback action (#4296)

This commit is contained in:
Danny Chan
2021-12-14 14:08:13 +08:00
committed by GitHub
parent 29bc5fd912
commit c8d6bd8898
3 changed files with 20 additions and 13 deletions

View File

@@ -334,6 +334,10 @@ public interface HoodieTimeline extends Serializable {
return new HoodieInstant(State.INFLIGHT, REPLACE_COMMIT_ACTION, timestamp);
}
static HoodieInstant getRollbackRequestedInstant(HoodieInstant instant) {
return instant.isRequested() ? instant : HoodieTimeline.getRequestedInstant(instant);
}
/**
* Returns the inflight instant corresponding to the instant being passed. Takes care of changes in action names
* between inflight and completed instants (compaction <=> commit).