Skip to content

Commit

Permalink
hotfix: reset bufferCount after buffers are cleared
Browse files Browse the repository at this point in the history
  • Loading branch information
whhe committed Mar 13, 2024
1 parent 27b0dab commit f65041b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ public synchronized void flush(boolean endOfInput) throws IOException, Interrupt
reducedBuffer.clear();
}
}
bufferCount = 0;

// sync write current record
Record record = currentRecord.get();
Expand All @@ -221,7 +222,6 @@ public synchronized void flush(boolean endOfInput) throws IOException, Interrupt
}
metricGroup.getIOMetricGroup().getNumRecordsOutCounter().inc();
currentRecord.compareAndSet(record, null);
bufferCount = 0;
break;
} catch (Exception e) {
LOG.error("OceanBaseWriter flush error, retry times = {}", i, e);
Expand Down

0 comments on commit f65041b

Please sign in to comment.