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

improve handling of non-fsyncable directories

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.5.3
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      If you attempt to use MongoDB with e.g. an HGFS mount as the data directory, you may see an fassert on startup:

      Sat Feb 16 07:04:41.098 [initandlisten] Assertion: 13651:Couldn't fsync directory '/mnt/hgfs/data/db/bug': errno:22 Invalid argument
      

      This typically indicates the use of a device that does not support fsyncing on directories. We should handle this error (EINVAL) better:

      • either not worry about fsyncing the directory and give a warning
      • or still abort, but give suggestions as to how to correct the issue

            Assignee:
            matt.dannenberg Matt Dannenberg
            Reporter:
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: