bvaradar commented on a change in pull request #1633:
URL: https://github.com/apache/incubator-hudi/pull/1633#discussion_r426290846



##########
File path: 
hudi-common/src/main/java/org/apache/hudi/common/table/timeline/HoodieActiveTimeline.java
##########
@@ -322,7 +327,15 @@ private void transitionState(HoodieInstant fromInstant, 
HoodieInstant toInstant,
         ValidationUtils.checkArgument(metaClient.getFs().exists(new 
Path(metaClient.getMetaPath(),
             fromInstant.getFileName())));
         // Use Write Once to create Target File
-        createImmutableFileInPath(new Path(metaClient.getMetaPath(), 
toInstant.getFileName()), data);
+        if (allowRedundantTransitions) {
+          createFileInPath(new Path(metaClient.getMetaPath(), 
toInstant.getFileName()), data);
+        } else {
+          if (allowRedundantTransitions) {
+            createFileInPath(new Path(metaClient.getMetaPath(), 
toInstant.getFileName()), data);

Review comment:
       Thanks for catching it. It was a bad merge.




----------------------------------------------------------------
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]


Reply via email to