diff --git a/connector/src/main/java/io/questdb/kafka/QuestDBSinkTask.java b/connector/src/main/java/io/questdb/kafka/QuestDBSinkTask.java index 4a803fd..dc41a5b 100644 --- a/connector/src/main/java/io/questdb/kafka/QuestDBSinkTask.java +++ b/connector/src/main/java/io/questdb/kafka/QuestDBSinkTask.java @@ -224,6 +224,7 @@ private void flushAndResetCounters() { if (sender != null) { sender.flush(); } + context.requestCommit(); nextFlushNanos = System.nanoTime() + flushConfig.autoFlushNanos; pendingRows = 0; } catch (LineSenderException | HttpClientException e) {