madhavan-narayanan commented on a change in pull request #14613:
URL: https://github.com/apache/pulsar/pull/14613#discussion_r828822130



##########
File path: 
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/ServerCnx.java
##########
@@ -2172,6 +2172,9 @@ protected void handleNewTxn(CommandNewTxn command) {
                     }
                     ctx.writeAndFlush(Commands.newTxnResponse(requestId, 
txnID.getLeastSigBits(),
                             txnID.getMostSigBits()));
+                    if (getBrokerService().getInterceptor() != null) {
+                        
getBrokerService().getInterceptor().beginTxn(command.getTcId(), 
txnID.toString());
+                    }

Review comment:
       Hi @codelipenghui , 
      I have added unit tests and refactored code as you had recommended. Can 
you please review again?




-- 
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