dlmarion commented on pull request #2462:
URL: https://github.com/apache/accumulo/pull/2462#issuecomment-1029358425


   > I'm not really sure I understand the difference between the NEW state that 
already exists and your new SUBMITTED state.
   
   Prior to this change, when `Fate.startTransaction` was called to allocate a 
transaction id its state would be `NEW`. Then, when `Fate.seedTransaction()` 
was called to associate the Repo with the transaction id, the state would be 
changed to `IN_PROGRESS`. `Fate.startTransaction` would just serialize the Repo 
into ZooKeeper, it didn't actually run it.
   
   With this change, there is an intermediate state (SUBMITTED).
   
   Here's an excerpt from FateIT:
   
   ```
         long txid = fate.startTransaction();
         assertEquals(TStatus.NEW, getTxStatus(zk, txid));
         fate.seedTransaction(txid, new TestOperation(NS, TID), true);
         assertEquals(TStatus.SUBMITTED, getTxStatus(zk, txid));
   ```
   
   When a transaction is allocated, it's status is `NEW`. 


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