Arguments to createCollection need better validation:
- Start mongod with the WT storage engine
$ rm -rf db && mkdir db && mongod --dbpath db --storageEngine wiredtiger
- Create a collection
> db.createCollection("foo", {storageEngine: {wiredTiger: {configString: "foo=bar"}}}) { "ok" : 1 }
The casing of the storage engine is incorrect, it should be wiredtiger (no uppercase T), but the options are ignored without errors in the shell or the logs. For that matter the following also works:
> db.createCollection("foo", {storageEngine: {x: {y : "z"}}}) { "ok" : 1 }
This is bound to cause come confusion among users.
- is duplicated by
-
SERVER-16083 Creating collections should error with invalid storage options
- Closed
- is related to
-
SERVER-13635 Clean up the storage abstraction layer
- Closed
- related to
-
SERVER-16135 WT Storage engine options should be restricted
- Closed