Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backport UnmanagedTransaction stage and completion improvements (#1069)
* Make UnmanagedTransaction return ongoing tx completion stage (#1057) This update ensures that `UnmanagedTransaction` returns existing on-going tx completion stage when a similar request is made. For instance, if it was requested to be rolled back and then requested to be closed, both invocations should get the same on-going stage. In addition, it should not accept conflicting actions, like committing and rolling back at the same time. In addition, it makes sure that cancellation on reactive transaction function results in rollback. * Call close with the appropriate flag to commit or rollback on UnmanagedTransaction where possible to avoid double state acquisition (#1065) * Call close with the appropriate flag to commit or rollback on UnmanagedTransaction where possible to avoid double state acquisition Calling `close` instead of separate `isOpen` and `commitAsync` requires less lock acquisitions and is safer. * Update tests
- Loading branch information