You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "liangyepianzhou (via GitHub)" <gi...@apache.org> on 2023/03/15 14:45:41 UTC

[GitHub] [pulsar] liangyepianzhou commented on pull request #19816: [fix] [txn] fix race condition while update transaction state.

liangyepianzhou commented on PR #19816:
URL: https://github.com/apache/pulsar/pull/19816#issuecomment-1470140343

   If you want to filter the exception of the invalidTxnStats for the stats that are already `committing` or `committed`.
   You can do a catch here.
   
   ```java
         return updateTxnStatus(txnID, newStatus, TxnStatus.OPEN, isTimeout)
                 .thenCompose(__ -> endTxnInTransactionBuffer(txnID, txnAction));
   ```


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org