This test expects there to always be exactly two documents in the collection at the end of the test, but this may not be there case if there was a replication rollback while the inserts were happening (since replication rollback does not adjust a collection's tracked data size).
A couple possible options to fix the test:
- Add the does_not_support_stepdowns tag
- Adjust the assertion to accept fewer than two documents
- is related to
-
SERVER-56262 Fix _cappedFirstRecord usage for capped collections
- Closed
- related to
-
SERVER-16049 Replicate capped collection deletes explicitly
- Closed