[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: |
|
||||||||
| 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: (cherry picked from commit 277e77b7244c93a2fc485d05e0a297fd5e66c045) |
| Comment by Githook User [ 05/Apr/23 ] |
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: (cherry picked from commit 277e77b7244c93a2fc485d05e0a297fd5e66c045) |
| Comment by Githook User [ 04/Apr/23 ] |
|
Author: {'name': 'Benety Goh', 'email': 'benety@mongodb.com', 'username': 'benety'}Message: |