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.

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.0-rc0
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Fully Compatible
    • ALL
    • Storage 2017-10-23
    • 0

      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
      

            Assignee:
            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            Reporter:
            daniel.gottlieb@mongodb.com Daniel Gottlieb (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: