-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: Needs Triage
-
Component/s: Replication
-
Fully Compatible
-
Repl 2018-11-19, Repl 2018-12-03
We already have a basic concurrency test to verify that the various transactions metrics tracked in serverStatus follow basic invariants when multiple transactions are run concurrently.
We should extend this test to include cases with prepared transactions. For example, we can:
- check that the expected totalPreparedThenAborted and totalPreparedThenCommitted counts are correct
- check that totalPreparedThenAborted + totalPreparedThenCommitted = totalPrepared
- check that totalCommitted + totalAborted + totalPreparedThenAborted + totalPreparedThenCommitted + currentOpen = totalStarted