Opt out of oplog sampling during restore

XMLWordPrintableJSON

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

      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
            Reporter:
            Samyukta Lanka
            Votes:
            0 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved: