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

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.3.1
    • None
    • Storage
    • None
    • Fully Compatible
    • ALL
    • Execution Team 2019-10-07

    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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: