Skip to content

Commit

Permalink
[hotfix][kafka] Add claryfiying comment in FlinkKafkaProducer011
Browse files Browse the repository at this point in the history
  • Loading branch information
pnowojski committed Aug 17, 2018
1 parent 741aa43 commit 552ae2b
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -916,6 +916,7 @@ private void abortTransactions(Set<String> transactionalIds) {
for (String transactionalId : transactionalIds) {
try (FlinkKafkaProducer<byte[], byte[]> kafkaProducer =
initTransactionalProducer(transactionalId, false)) {
// it suffice to call initTransactions - this will abort any lingering transactions
kafkaProducer.initTransactions();
}
}
Expand Down

0 comments on commit 552ae2b

Please sign in to comment.