This is an automated email from the ASF dual-hosted git repository.
danny0405 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hudi.git
The following commit(s) were added to refs/heads/master by this push:
new b236396d877 [HUDI-7891] Fix
HoodieActiveTimeline#deleteCompletedRollback missing check for Action type
(#11462)
b236396d877 is described below
commit b236396d877bf163af9423a57ac1d78d613c7974
Author: usberkeley <[email protected]>
AuthorDate: Mon Jun 17 08:28:51 2024 +0800
[HUDI-7891] Fix HoodieActiveTimeline#deleteCompletedRollback missing check
for Action type (#11462)
---
.../java/org/apache/hudi/common/table/timeline/HoodieActiveTimeline.java | 1 +
1 file changed, 1 insertion(+)
diff --git
a/hudi-common/src/main/java/org/apache/hudi/common/table/timeline/HoodieActiveTimeline.java
b/hudi-common/src/main/java/org/apache/hudi/common/table/timeline/HoodieActiveTimeline.java
index 2866a7ab067..950a8f74827 100644
---
a/hudi-common/src/main/java/org/apache/hudi/common/table/timeline/HoodieActiveTimeline.java
+++
b/hudi-common/src/main/java/org/apache/hudi/common/table/timeline/HoodieActiveTimeline.java
@@ -269,6 +269,7 @@ public class HoodieActiveTimeline extends
HoodieDefaultTimeline {
public void deleteCompletedRollback(HoodieInstant instant) {
ValidationUtils.checkArgument(instant.isCompleted());
+ ValidationUtils.checkArgument(Objects.equals(instant.getAction(),
HoodieTimeline.ROLLBACK_ACTION));
deleteInstantFile(instant);
}