Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENG-3189: Fix intermittent "transaction expired" error when committin…
…g a distributed transaction Summary: In transaction coordinator, the last_touch_ time of a transaction may be skewed compared to the coordinator's clock. Sometimes the last_touch_ time may go after the coordinator's clock and thus an underflow error when last_touch_ time is subtracted from now() in TransactionState::ExpiredAt() and the transaction erroneously considered expired. Test Plan: Run CassandraTransactionalKeyValue read/write workload with 1000000 keys inserted in a GCP cluster with no "transaction expired" error. ``` java -jar ~/code/yugabyte/java/yb-loadtester/target/yb-sample-apps.jar -workload CassandraTransactionalKeyValue -num_threads_read 64 -num_threads_write 8 -nodes ... ``` Reviewers: mikhail, sergei Reviewed By: sergei Differential Revision: https://phabricator.dev.yugabyte.com/D4615
- Loading branch information