[SERVER-43777] Validate cmd with {background:true} should not yield cursors Created: 02/Oct/19 Updated: 29/Oct/23 Resolved: 04/Oct/19 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Storage |
| Affects Version/s: | None |
| Fix Version/s: | 4.3.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Dianna Hohensee (Inactive) | Assignee: | Dianna Hohensee (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Sprint: | Execution Team 2019-10-07 | ||||||||
| Participants: | |||||||||
| Description |
|
When we save and restore cursors during collection validation, we close the cursors and recreate them. This is a problem because closing the cursor clears the memory to which the Record from the last next() call on the cursor points. We do not need to worry about cache pressure from holding onto a snapshot too long for background validation because we read from a checkpoint. Therefore, there is no need to follow the usual cursor yield policy for regular queries. |
| Comments |
| Comment by Githook User [ 04/Oct/19 ] |
|
Author: {'username': 'DiannaHohensee', 'email': 'dianna.hohensee@mongodb.com', 'name': 'Dianna Hohensee'}Message: should not yield checkpoint cursors |