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

DocumentSourceBackupFile should ensure backup cursor is open before returning data

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 6.0.4, 6.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Fully Compatible
    • ALL
    • v6.2, v6.1, v6.0
    • Repl 2022-12-12

      Currently in FCBIS we call killCursor on the backup cursor in "fire and forget" mode when copying the files from the sync source is done. There is a theoretical race condition where WiredTiger may have internally closed the backup cursor (e.g. due to a slow refresh) and the last file may be corrupt. The documented way to detect this is to check the result on the killCursor when this happens. For FCBIS and any other users of DocumentSourceBackupFile, it is possible and more convenient (and less error-prone) to return an error from DocumentSourceBackupFile if the backup cursor is not still open after reading the data.

            Assignee:
            matthew.russotto@mongodb.com Matthew Russotto
            Reporter:
            matthew.russotto@mongodb.com Matthew Russotto
            Votes:
            0 Vote for this issue
            Watchers:
            15 Start watching this issue

              Created:
              Updated:
              Resolved: