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

Delete WiredTigerPreplog and WiredTigerTmpLog files instead of moving them in the InitialSyncFileMover

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.2.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Fully Compatible
    • Replication 2021-11-29

      WiredTiger owns the file space of any file with the WiredTiger prefix and often only look for prefixes rather than entire filenames when manipulating files. Our current implementation of renaming files that already exist in the dbpath and then moving them causes issues for WiredTigerPrepLog and WiredTigerTmpLog files as a result.

      One such issue happens when a PrepLog file was renamed before initial sync files were moved, but WT tries to delete the PrepLog file twice (because of its use of prefixes and extracting the log number from the file).

            Assignee:
            matthew.russotto@mongodb.com Matthew Russotto
            Reporter:
            samy.lanka@mongodb.com Samyukta Lanka
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: