Skip to content

Commit

Permalink
request commit after a successful flush() (#28)
Browse files Browse the repository at this point in the history
This limits the number of duplicates QuestDB
server has to deal with after error recovery
  • Loading branch information
jerrinot authored Sep 9, 2024
1 parent b4510d1 commit af36753
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit af36753

Please sign in to comment.