[SERVER-12672] createCollection() silently ignores the {usePowerOf2Sizes:false} option with previous versions of the shell Created: 10/Feb/14  Updated: 10/Dec/14  Resolved: 27/Sep/14

Status: Closed
Project: Core Server
Component/s: Shell
Affects Version/s: 2.5.5
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Ben Becker Assignee: Matt Kangas
Resolution: Won't Fix Votes: 0
Labels: 26qa
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Operating System: ALL
Steps To Reproduce:

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

Participants:

 Description   

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
> 



 Comments   
Comment by Matt Kangas [ 27/Sep/14 ]

Only applies to v2.4 shell. Workaround is to update the shell.

Generated at Thu Feb 08 03:29:13 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.