codelipenghui commented on a change in pull request #12521:
URL: https://github.com/apache/pulsar/pull/12521#discussion_r771167571



##########
File path: 
pulsar-client/src/main/java/org/apache/pulsar/client/impl/PartitionedProducerImpl.java
##########
@@ -191,6 +193,20 @@ private void start(List<Integer> indexList) {
 
     @Override
     CompletableFuture<MessageId> internalSendWithTxnAsync(Message<?> message, 
Transaction txn) {
+        if (txn != null && ((TransactionImpl)txn).getState() != 
TransactionImpl.State.OPEN) {

Review comment:
       @liangyepianzhou LGTM, please check the above comment to avoid the 
duplicated code.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to