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

Linux open() with O_NOATIME can fail

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.3.2
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Linux
    • Linux

      SERVER-7497 added the O_NOATIME flag to open() calls on Linux for files opened in read-only mode, but this generates errors for certain files:
      http://buildlogs.mongodb.org/Linux%2064-bit%20DUR%20OFF/builds/1944/test/recent%20failures/sync2.js

      Thu Dec 13 13:43:54.040 In File::open(), ::open for '/etc/lsb-release' failed with errno:1 Operation not permitted
      

      The code should probably do what it did before, and only use O_NOATIME when opening files in read-write mode.

            Assignee:
            tad Tad Marshall
            Reporter:
            tad Tad Marshall
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: