@Override public synchronized void markProcessed(SourceRecord record) throws InterruptedException { task.commitRecord(record); recordsSinceLastCommit += 1; offsetWriter.offset(record.sourcePartition(), record.sourceOffset()); }
private void commitTaskRecord(SourceRecord record) { try { task.commitRecord(record); } catch (Throwable t) { log.error("{} Exception thrown while calling task.commitRecord()", this, t); } }
try { if (current._3() != null) { current._3().commitRecord(current._1());