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

Don't go up one too many directories when flushing storage.bson's directory.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.0-rc0
    • Component/s: Storage
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Storage 2017-10-23
    • Linked BF Score:
      0

      Description

      After renaming a file in place, the dbpath directory must also be flushed before a rename is durable. After renaming the storage.bson file, the dbpath's parent is accidentally being flushed. This provides the durability guarantee, but the mongod process may not have permissions to do so. This results in an exception crashing mongod.

      Problematic verbose log line when starting on the default dbpath of /data/db/:

      2017-10-05T14:18:52.806-0400 D STORAGE  [initandlisten] flushing directory /data
      

      The fixed version:

      2017-10-05T14:21:39.449-0400 D STORAGE  [initandlisten] flushing directory /data/db
      

        Attachments

          Activity

            People

            Assignee:
            daniel.gottlieb Daniel Gottlieb
            Reporter:
            daniel.gottlieb Daniel Gottlieb
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: