xushiyan commented on code in PR #4913:
URL: https://github.com/apache/hudi/pull/4913#discussion_r1205870328


##########
hudi-client/hudi-flink-client/src/main/java/org/apache/hudi/io/FlinkAppendHandle.java:
##########
@@ -60,17 +63,28 @@ public FlinkAppendHandle(
       Iterator<HoodieRecord<T>> recordItr,
       TaskContextSupplier taskContextSupplier) {
     super(config, instantTime, hoodieTable, partitionPath, fileId, recordItr, 
taskContextSupplier);
-    this.writeMarkers = WriteMarkersFactory.get(config.getMarkersType(), 
hoodieTable, instantTime);
   }
 
-  @Override
-  protected void createMarkerFile(String partitionPath, String dataFileName) {
-    // In some rare cases, the task was pulled up again with same write file 
name,
-    // for e.g, reuse the small log files from last commit instant.
-
-    // Just skip the marker creation if it already exists, the new data would 
append to
-    // the file directly.
-    writeMarkers.createIfNotExists(partitionPath, dataFileName, getIOType());
+  protected HoodieLogFileWriteCallback getLogWriteCallback() {
+    return new DefaultHoodieLogFileWriteCallBack() {

Review Comment:
   ok sg



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