improve handling of non-fsyncable directories

XMLWordPrintableJSON

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

      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 (Inactive)
            Reporter:
            Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: