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

createCollection() silently ignores the {usePowerOf2Sizes:false} option with previous versions of the shell

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 2.5.5
    • Component/s: Shell
    • Labels:
    • ALL
    • Hide

      call db.createCollection("collName", {usePowerOf2Sizes:false}) from any version of the shell prior to v2.5.x.

      Show
      call db.createCollection("collName", {usePowerOf2Sizes:false}) from any version of the shell prior to v2.5.x.

      Creating a collection with v2.4.9 of the shell silently ignores the {usePowerOf2Sizes:false} option supplied to createCollection(). The following output was taken from the same instance of the server:

      Shell v.2.4.9:

      MongoDB shell version: 2.4.9
      connecting to: test
      Server has startup warnings: 
      2014-02-10T10:27:50.105-0800 [initandlisten] 
      2014-02-10T10:27:50.105-0800 [initandlisten] ** NOTE: This is a development version (2.5.6-pre-) of MongoDB.
      2014-02-10T10:27:50.105-0800 [initandlisten] **       Not recommended for production.
      2014-02-10T10:27:50.105-0800 [initandlisten] 
      2014-02-10T10:27:50.105-0800 [initandlisten] ** WARNING: soft rlimits too low. Number of files is 256, should be at least 1000
      2014-02-10T10:27:50.106-0800 [initandlisten] 
      > db.createCollection("v249Shell", {usePowerOf2Sizes:false})
      { "ok" : 1 }
      > db.v249Shell.stats().userFlags
      1
      

      Shell v2.5.6-pre (2/3/14, git hash b4f14a19abc1de619f94676cfaf0611099959be5):

      MongoDB shell version: 2.5.6-pre-
      connecting to: test
      Server has startup warnings: 
      2014-02-10T10:27:50.105-0800 [initandlisten] 
      2014-02-10T10:27:50.105-0800 [initandlisten] ** NOTE: This is a development version (2.5.6-pre-) of MongoDB.
      2014-02-10T10:27:50.105-0800 [initandlisten] **       Not recommended for production.
      2014-02-10T10:27:50.105-0800 [initandlisten] 
      2014-02-10T10:27:50.105-0800 [initandlisten] ** WARNING: soft rlimits too low. Number of files is 256, should be at least 1000
      2014-02-10T10:27:50.106-0800 [initandlisten] 
      > db.createCollection("v256Shell", {usePowerOf2Sizes:false})
      { "ok" : 1 }
      > db.v256Shell.stats().userFlags
      0
      > 
      

            Assignee:
            matt.kangas Matt Kangas
            Reporter:
            benjamin.becker Ben Becker
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: