[SERVER-75618] check oplog fast count before restarting server in oplog_sampling.js Created: 03/Apr/23  Updated: 29/Oct/23  Resolved: 04/Apr/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.0.0-rc0, 6.0.6, 5.0.17

Type: Improvement Priority: Major - P3
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
Assigned Teams:
Storage Execution
Backwards Compatibility: Fully Compatible
Backport Requested:
v6.3, v6.0, v5.0
Sprint: Execution Team 2023-04-17
Participants:
Linked BF Score: 13

 Description   

We have occasionally seen failures in oplog_sampling.js where the oplog stones logic at startup chooses the scanning method over the sampling option for the oplog stones. This has been attributed to an incorrect size storer/fast count persisted for the oplog collection at shutdown despite having inserted enough documents to trigger the sampling logic.

To help diagnose future occurence of this test failure, we can make the test failure earlier by detecting the incorrect fast count before shutdown rather than let the test proceed to the restart stage where the fast count would be corrected by the oplog scanning logic.

This would have the benefit of. preserving more of the server state with the incorrect counts.



 Comments   
Comment by Githook User [ 06/Apr/23 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-75618 oplog_sampling.js checks oplog fast count between inserts

(cherry picked from commit 277e77b7244c93a2fc485d05e0a297fd5e66c045)
Branch: v5.0
https://github.com/mongodb/mongo/commit/21401a73933abc3ec70d04ac3e613e9b4ccccd1d

Comment by Githook User [ 05/Apr/23 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-75618 oplog_sampling.js checks oplog fast count between inserts

(cherry picked from commit 277e77b7244c93a2fc485d05e0a297fd5e66c045)
Branch: v6.0
https://github.com/mongodb/mongo/commit/78163441adb96ba4addfd6fe86bfa0982aeba207

Comment by Githook User [ 04/Apr/23 ]

Author:

{'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}

Message: SERVER-75618 oplog_sampling.js checks oplog fast count between inserts
Branch: master
https://github.com/mongodb/mongo/commit/277e77b7244c93a2fc485d05e0a297fd5e66c045

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