congbobo184 commented on a change in pull request #9776:
URL: https://github.com/apache/pulsar/pull/9776#discussion_r586162476



##########
File path: 
pulsar-client/src/main/java/org/apache/pulsar/client/impl/transaction/TransactionImpl.java
##########
@@ -63,11 +61,18 @@
 
     private final ArrayList<CompletableFuture<MessageId>> sendFutureList;
     private final ArrayList<CompletableFuture<Void>> ackFutureList;
+    private volatile State state;
+
+    public enum State {
+        OPEN,
+        CLOSE

Review comment:
       some situation we can't get the real state fro this transaction, 
example: the transaction timeout, it will be aborted but client commit.




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

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


Reply via email to