Skip to content

Commit

Permalink
Refactor commit logic (#2580)
Browse files Browse the repository at this point in the history
* Add tests for commit consistency showing wrong behaviour

* Clear scheduled document changes at the end of a commit operation

* Rename private variables to communicate intent

* Remove obsolete comment

* Use different error code

* Use single mongos in consistency tests

This ensures that the fail points are created on the same server that the write operations take place on, which can't be guaranteed in a sharded cluster with multiple mongoses.

* Rename test methods for clarity

* Explain reasoning for index error

* Extract helper method to create failpoint
  • Loading branch information
alcaeus authored Nov 24, 2023
1 parent 30dac17 commit 13e5ca2
Show file tree
Hide file tree
Showing 3 changed files with 610 additions and 115 deletions.
Loading

0 comments on commit 13e5ca2

Please sign in to comment.