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

remove startingAfterUncleanShutdown decorator

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor - P4
    • Resolution: Fixed
    • None
    • 4.7.0
    • Storage
    • None
    • Fully Compatible
    • Execution Team 2020-07-27, Execution Team 2020-08-10

    Description

      TLDR: Investigate an alternate method of providing information on previous unclean shutdown to catalog initialization functions during startup.

      The startingAfterUncleanShutdown decorator was introduced in SERVER-33159 and is used when loading the catalog and reconciling unrecognized idents in the filesystem. The value of this decorator is derived from the state of the mongod.lock file at startup.

      The functions that use this decorator are also used during rollback which requires us to have to unset this decorator before completing the startup process.

      To stop using the decorator, we should consider retaining the previous shutdown state in the mongod startup function and pass that information directly to the catalog initialization process.

      Attachments

        Issue Links

          Activity

            People

              benety.goh@mongodb.com Benety Goh
              benety.goh@mongodb.com Benety Goh
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: