[SERVER-80302] capped_large_docs.js is not resilient to replication rollback Created: 22/Aug/23  Updated: 29/Oct/23  Resolved: 22/Aug/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.1.0-rc0, 6.0.10, 5.0.21, 7.0.2

Type: Bug Priority: Major - P3
Reporter: Gregory Noma Assignee: Gregory Noma
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
related to SERVER-16049 Replicate capped collection deletes e... Closed
is related to SERVER-56262 Fix _cappedFirstRecord usage for capp... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.0, v6.0, v5.0
Sprint: Execution NAMR Team 2023-09-04
Participants:
Linked BF Score: 144

 Description   

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:

  1. Add the does_not_support_stepdowns tag
  2. Adjust the assertion to accept fewer than two documents


 Comments   
Comment by Githook User [ 24/Aug/23 ]

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-80302 Protect `capped_large_docs.js` from replication rollback

(cherry picked from commit 4ff998985ba7bcf744696f8dc3641d16a63469e6)
Branch: v7.0
https://github.com/mongodb/mongo/commit/966891e1b3ca70946bb5c93b8e35fbf5aecd7c10

Comment by Githook User [ 24/Aug/23 ]

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-80302 Protect `capped_large_docs.js` from replication rollback

(cherry picked from commit 4ff998985ba7bcf744696f8dc3641d16a63469e6)
Branch: v6.0
https://github.com/mongodb/mongo/commit/605cd71b0dcde136f4b84de3f6a438aff8d5efe1

Comment by Githook User [ 24/Aug/23 ]

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-80302 Protect `capped_large_docs.js` from replication rollback

(cherry picked from commit 4ff998985ba7bcf744696f8dc3641d16a63469e6)
Branch: v5.0
https://github.com/mongodb/mongo/commit/6928142d06c2470e689f8b8383f468276ebd283a

Comment by Githook User [ 22/Aug/23 ]

Author:

{'name': 'Gregory Noma', 'email': 'gregory.noma@gmail.com', 'username': 'gregorynoma'}

Message: SERVER-80302 Protect `capped_large_docs.js` from replication rollback
Branch: master
https://github.com/mongodb/mongo/commit/4ff998985ba7bcf744696f8dc3641d16a63469e6

Generated at Thu Feb 08 06:43:11 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.