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

remove startingAfterUncleanShutdown decorator

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • 4.7.0
    • Affects Version/s: None
    • Component/s: Storage
    • Labels:
      None
    • Fully Compatible
    • Execution Team 2020-07-27, Execution Team 2020-08-10

      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.

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

              Created:
              Updated:
              Resolved: