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

Race between watchdog and FCBIS deleting old storage files

    • Replication
    • Fully Compatible
    • ALL
    • v7.0, v6.0
    • Hide

      Start initial sync node with FCBIS and watchdog on, and hang it after deleting the old storage files.

      Show
      Start initial sync node with FCBIS and watchdog on, and hang it after deleting the old storage files.
    • Repl 2024-01-08, Repl 2024-01-22, Repl 2024-02-05, Repl 2024-02-19
    • 164

      When we start the watchdog, we add the directories to be checked to a list of directories. This is added as just the filepath to the directory. For example, we might add the journal directory here. Then, the watchdog runs in a loop every x seconds, and checks the directories. As part of FCBIS, we switch the storage location. So the watchdog should get interrupted, but as part of SERVER-66444 we just continue with the loop if that happens, and the list of directories to be checked remains the same. Then FCBIS deletes the existing local files used by WT (including the journal directory) here. Then the watchdog would try to open files in the now-deleted directory, resulting in an fassert.

            Assignee:
            huayu.ouyang@mongodb.com Huayu Ouyang
            Reporter:
            huayu.ouyang@mongodb.com Huayu Ouyang
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: