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

prealloc of datafiles not on by default in 2.6

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Critical - P2 Critical - P2
    • None
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Minor Change
    • ALL
    • Hide

      See above.

      Show
      See above.
    • Server 2.7.4, Server 2.7.5, Server 2.7.6

      Mac OSX, starting up mongod from commend line (either no parameters, or passing an empty config file (old format)), using a new db and inserting inserting a single document.

      In 2.6.3, I get the following:

      drwxr-xr-x   2 thomasboyd  wheel         68 Jul 16 15:03 _tmp
      drwxr-xr-x   3 thomasboyd  wheel        102 Jul 16 15:02 journal
      -rw-------   1 thomasboyd  wheel   67108864 Jul 16 15:03 local.0
      -rw-------   1 thomasboyd  wheel   16777216 Jul 16 15:03 local.ns
      -rwxr-xr-x   1 thomasboyd  wheel          5 Jul 16 15:02 mongod.lock
      -rw-------   1 thomasboyd  wheel   67108864 Jul 16 14:50 test.0
      -rw-------   1 thomasboyd  wheel   16777216 Jul 16 14:50 test.ns
      

      In 2.4.10, I get the following (note two data files for test DB):

      drwxr-xr-x   2 thomasboyd  wheel         68 Jul 16 14:57 _tmp
      drwxr-xr-x   2 thomasboyd  wheel         68 Jul 16 15:01 journal
      -rw-------   1 thomasboyd  wheel   67108864 Jul 16 14:57 local.0
      -rw-------   1 thomasboyd  wheel   16777216 Jul 16 14:57 local.ns
      -rwxr-xr-x   1 thomasboyd  wheel          0 Jul 16 15:01 mongod.lock
      -rw-------   1 thomasboyd  wheel   67108864 Jul 16 14:57 test.0
      -rw-------   1 thomasboyd  wheel  134217728 Jul 16 14:57 test.1
      -rw-------   1 thomasboyd  wheel   16777216 Jul 16 14:57 test.ns
      

      Other than for changes around the way no/prealloc is set in YAML files, I could not find any explanation for this change of behavior in release notes or jira tickets.

            Assignee:
            matt.kangas Matt Kangas
            Reporter:
            thomas.boyd Thomas Boyd
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: