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

SIGKILL during MMAPv1 namespace file creation can lead to invalid file size and will block mongod startup

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: MMAPv1, Stability, Storage
    • None
    • Storage Execution
    • ALL
    • 15

      When we create namespace files under MMAPv1 we create and initialize to 0 the contents in 1MB increments. If mongoD receives a SIGKILL during this process, it is possible for a file to be written that does not fall on a 1MB boundary which is larger than the guaranteed atomic write size (at least by default, both on Linux and Windows with our current implementation).

      When mongoD is restarted with the invalid namespace file in place, it will fatally assert when it finds that this file is not a multiple of 1MB.

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            james.wahlin@mongodb.com James Wahlin
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: