Skip to content

Commit af36753

Browse files
authored
request commit after a successful flush() (#28)
This limits the number of duplicates QuestDB server has to deal with after error recovery
1 parent b4510d1 commit af36753

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

connector/src/main/java/io/questdb/kafka/QuestDBSinkTask.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,7 @@ private void flushAndResetCounters() {
224224
if (sender != null) {
225225
sender.flush();
226226
}
227+
context.requestCommit();
227228
nextFlushNanos = System.nanoTime() + flushConfig.autoFlushNanos;
228229
pendingRows = 0;
229230
} catch (LineSenderException | HttpClientException e) {

0 commit comments

Comments
 (0)