stinger1206 commented on code in PR #113:
URL:
https://github.com/apache/doris-kafka-connector/pull/113#discussion_r4704974217
##########
src/main/java/org/apache/doris/kafka/connector/writer/load/AsyncDorisStreamLoad.java:
##########
@@ -204,18 +222,23 @@ public void run() {
// When the label is empty, it is the eof buffer for
checkpoint flush.
continue;
}
- load(buffer.getLabel(), buffer);
Review Comment:
Yes, that would simplify the retry logic. The trade-off is that if Doris
commits a load but the HTTP response is lost, retrying with a new label can
load the same batch again. This is consistent with the at-least-once semantics
of combined-flush mode, although it removes deduplication between retry
attempts.
The same-label approach was intended to avoid those duplicate submissions.
I'm happy to switch to your proposed approach and keep the existing retry
bounds, buffer preservation and offset safety.
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]