Skip to content

Commit

Permalink
horrendous
Browse files Browse the repository at this point in the history
  • Loading branch information
fqaiser94 committed Apr 9, 2024
1 parent 3801226 commit e190f1d
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,8 +84,12 @@ public void open(Collection<TopicPartition> partitions) {

@Override
public void put(Collection<SinkRecord> sinkRecords) {
writer.put(sinkRecords);
committer.commit(writer);
if (writer != null) {
writer.put(sinkRecords);
if (committer != null) {
committer.commit(writer);
}
}
}

@Override
Expand Down

0 comments on commit e190f1d

Please sign in to comment.