congbobo184 opened a new pull request #9776:
URL: https://github.com/apache/pulsar/pull/9776


   ## Motivation
   Now pulsar client don't check the transaction state, so when it committed or 
aborted, it also can produce or ack message. It should be prevented.
   
   ## implement
   Add the State :
   ```
       public enum State {
           OPEN,
           CLOSE
       }
   ```
   when open we can do transaction operation, it is close we can't do 
transaction operation.
   ### Verifying this change
   Add the tests for it
   
   Does this pull request potentially affect one of the following parts:
   If yes was chosen, please highlight the changes
   
   Dependencies (does it add or upgrade a dependency): (no)
   The public API: (no)
   The schema: (no)
   The default values of configurations: (no)
   The wire protocol: (yes)
   The rest endpoints: (no)
   The admin cli options: (no)
   Anything that affects deployment: (no)
   
   


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