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

improve handling of non-fsyncable directories

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.5.3
    • Component/s: None
    • Labels:

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: