JNSimba commented on code in PR #113:
URL:
https://github.com/apache/doris-kafka-connector/pull/113#discussion_r4717497298
##########
src/main/java/org/apache/doris/kafka/connector/writer/load/AsyncDorisStreamLoad.java:
##########
@@ -226,6 +226,32 @@ public void run() {
loadThreadAlive = false;
}
+ /**
+ * Loads one buffer, retrying with a distinct label per attempt,
bounded by max.retries with
+ * retry.interval.ms backoff. Group commit sends no client-controlled
label, so it keeps a
+ * single attempt.
+ */
+ private void loadWithRetry(RecordBuffer buffer) throws IOException,
InterruptedException {
+ if (enableGroupCommit) {
+ load(buffer.getLabel(), buffer);
+ return;
Review Comment:
Why does this part need to be handled separately?
--
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]