Skip to content

Commit 488feeb

Browse files
committed
add preparedTxnReset on completeTransaction
1 parent 49dfaa1 commit 488feeb

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

clients/src/main/java/org/apache/kafka/clients/producer/internals/TransactionManager.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1332,6 +1332,7 @@ private void completeTransaction() {
13321332
newPartitionsInTransaction.clear();
13331333
pendingPartitionsInTransaction.clear();
13341334
partitionsInTransaction.clear();
1335+
preparedTxnState = new PreparedTxnState();
13351336
}
13361337

13371338
abstract class TxnRequestHandler implements RequestCompletionHandler {

0 commit comments

Comments
 (0)