codelipenghui commented on a change in pull request #9776:
URL: https://github.com/apache/pulsar/pull/9776#discussion_r585996155
##########
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:
Why not keep the state consistent with the transaction state?
Open/Committing/Aborting/Committed/Aborted ?
----------------------------------------------------------------
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]