Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-43777

Validate cmd with {background:true} should not yield cursors

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.3.1
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Fully Compatible
    • ALL
    • Execution Team 2019-10-07

      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.

            Assignee:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Reporter:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: