Skip to content

Commit

Permalink
[Transaction] Fix transaction buffer handler sync problem. (apache#10424
Browse files Browse the repository at this point in the history
)
  • Loading branch information
congbobo184 authored Apr 29, 2021
1 parent 55867f1 commit 5238822
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ private CompletableFuture<TxnID> endTxn(long requestId, String topic, ByteBuf cm
if (throwable == null) {
if (clientCnx.ctx().channel().isActive()) {
clientCnx.registerTransactionBufferHandler(TransactionBufferHandlerImpl.this);
synchronized (TransactionBufferHandlerImpl.class) {
synchronized (TransactionBufferHandlerImpl.this) {
pendingRequests.put(requestId, op);
cmd.retain();
}
Expand Down

0 comments on commit 5238822

Please sign in to comment.