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

improve handling of non-fsyncable directories

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.5.3
    • None
    • None

    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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: