beyond1920 commented on code in PR #9850:
URL: https://github.com/apache/hudi/pull/9850#discussion_r1357981634


##########
hudi-flink-datasource/hudi-flink/src/test/java/org/apache/hudi/sink/utils/TestWriteBase.java:
##########
@@ -524,9 +528,7 @@ private void checkInstantState(HoodieInstant.State state, 
String instantStr) {
     }
 
     protected String lastCompleteInstant() {
-      return OptionsResolver.isMorTable(conf)
-          ? TestUtils.getLastDeltaCompleteInstant(basePath)
-          : TestUtils.getLastCompleteInstant(basePath, 
HoodieTimeline.COMMIT_ACTION);
+      return this.ckpMetadata.lastCompleteInstant();

Review Comment:
   Updated.
   Add a special branch to handle lockless multiple writers.
   For multiple writes, the writer started first might finish later, similarly, 
the writer started later might finish first. So the last completed instant from 
ckp metadata might not be equals to the last completed instant from timeline.
    



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

To unsubscribe, e-mail: commits-unsubscr...@hudi.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to