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

Opt out of oplog sampling during restore

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0, 8.0.4
    • Affects Version/s: None
    • Component/s: None
    • None
    • RSS Sydney
    • Fully Compatible
    • v8.0, v7.0, v6.0
    • PopcornChicken - 2024-09-17, MorningKaraoke 2024-10-01

      Oplog sampling can take a long time during startup depending on the size of the oplog. Since the restore procedure includes multiple rounds of restarting the server, we should opt out of oplog sampling until the restore is completed. We currently do this when recoverFromOplogAsStandalone is set to true (since it sets disallowUserWrites) but not during other parts of the restore procedure.

      Originally we thought SERVER-60761 changed this behavior but on further inspection it seems like oplog sampling was never disabled during these sections of restore, which can lead to HELP tickets around a long restore procedure.

            Assignee:
            clarisse.cheah@mongodb.com Clarisse Cheah
            Reporter:
            samy.lanka@mongodb.com Samyukta Lanka
            Votes:
            0 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: