You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by da...@apache.org on 2023/08/28 01:38:08 UTC
[hudi] branch master updated: [MINOR] Add detail exception when instant transition state (#9476)
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 60e271cca0c [MINOR] Add detail exception when instant transition state (#9476)
60e271cca0c is described below
commit 60e271cca0c702730520e1c00e03c09cfe9a78af
Author: hehuiyuan <47...@qq.com>
AuthorDate: Mon Aug 28 09:38:01 2023 +0800
[MINOR] Add detail exception when instant transition state (#9476)
---
.../org/apache/hudi/common/table/timeline/HoodieActiveTimeline.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 dbfe484531a..1a36bb15d57 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
@@ -599,7 +599,7 @@ public class HoodieActiveTimeline extends HoodieDefaultTimeline {
protected void transitionState(HoodieInstant fromInstant, HoodieInstant toInstant, Option<byte[]> data,
boolean allowRedundantTransitions) {
- ValidationUtils.checkArgument(fromInstant.getTimestamp().equals(toInstant.getTimestamp()));
+ ValidationUtils.checkArgument(fromInstant.getTimestamp().equals(toInstant.getTimestamp()), String.format("%s and %s are not consistent when transition state.", fromInstant, toInstant));
try {
if (metaClient.getTimelineLayoutVersion().isNullVersion()) {
// Re-create the .inflight file by opening a new file and write the commit metadata in