danny0405 commented on code in PR #5950:
URL: https://github.com/apache/hudi/pull/5950#discussion_r905833782


##########
hudi-flink-datasource/hudi-flink/src/main/java/org/apache/hudi/sink/common/AbstractStreamWriteFunction.java:
##########
@@ -265,6 +265,6 @@ protected String instantToWrite(boolean hasData) {
    * Returns whether the pending instant is invalid to write with.
    */
   private boolean invalidInstant(String instant, boolean hasData) {
-    return instant.equals(this.currentInstant) && hasData && 
!this.ckpMetadata.isAborted(instant);
+    return instant.equals(this.currentInstant) && hasData && 
this.ckpMetadata.isAborted(instant);
   }

Review Comment:
   Currently only when the checkpoint is aborted, we mark the instant as 
aborted to reuse the instant time.



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to