[SERVER-73896] increase number of docs to insert in oplog_sampling.js Created: 10/Feb/23  Updated: 03/Apr/23  Resolved: 03/Apr/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Benety Goh Assignee: Benety Goh
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
is related to SERVER-59445 Increase storage log verbosity in opl... Closed
Operating System: ALL
Backport Requested:
v6.3, v6.0, v5.0
Sprint: Execution Team 2023-02-20
Participants:
Linked BF Score: 13

 Description   

This oplog sampling test inserts just enough documents to clear the sampling threshold of 2000. However, the oplog stones logic relies on the size storer to decide whether to scan or sample the oplog. Occasionally, the test fails to select the sampling logic due to a small difference (we've seen values of 1990 when the actual collection count should be 2020) between the size storer count and the actual collection count.

We can make this test run more robustly by choosing a higher number of documents to insert to clear the scanning threshold comfortably even when the size storer is not 100% accurate.



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

Author:

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

Message: Revert "SERVER-73896 oplog_sampling.js logs and checks number of entries in oplog before restarting"

This reverts commit 5cfb6fdfb529630eb0cf0d13ac4c71c5e9425b24.
Branch: master
https://github.com/mongodb/mongo/commit/48ac8dc83ca2ed8be7437bab9fef6b74b795495d

Comment by Benety Goh [ 15/Feb/23 ]

We would like to reopen the build failure investigation to understand why the size store is not saving the correct counts for the oplog collection on a clean shutdown.

Comment by Githook User [ 15/Feb/23 ]

Author:

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

Message: Revert "SERVER-73896 increase number of documents to insert in oplog sampling test"

This reverts commit 8a78dc88c4b50ed4c62a05d95072b19e42e74d51.
Branch: master
https://github.com/mongodb/mongo/commit/9962320d74254ec0517ba4f478386f7f0bcb1f9e

Comment by Githook User [ 11/Feb/23 ]

Author:

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

Message: SERVER-73896 increase number of documents to insert in oplog sampling test
Branch: master
https://github.com/mongodb/mongo/commit/8a78dc88c4b50ed4c62a05d95072b19e42e74d51

Comment by Githook User [ 11/Feb/23 ]

Author:

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

Message: SERVER-73896 oplog_sampling.js logs and checks number of entries in oplog before restarting
Branch: master
https://github.com/mongodb/mongo/commit/5cfb6fdfb529630eb0cf0d13ac4c71c5e9425b24

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