Carl-Zhou-CN commented on code in PR #6024:
URL: https://github.com/apache/seatunnel/pull/6024#discussion_r1433589723
##########
seatunnel-connectors-v2/connector-doris/src/main/java/org/apache/seatunnel/connectors/doris/sink/writer/DorisSinkWriter.java:
##########
@@ -124,10 +125,26 @@ public void write(SeaTunnelRow element) throws
IOException {
return;
}
dorisStreamLoad.writeRecord(serialize);
+ if (!dorisConfig.getEnable2PC()
+ && dorisStreamLoad.getRecordCount() >=
dorisConfig.getBatchSize()) {
+ flush();
+ startLoad(labelGenerator.generateLabel(lastCheckpointId));
Review Comment:
Is it okay to flush multiple times between checkpoints? Will the flush label
be the same for multiple times?
--
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]