-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: 2.3.2
-
Component/s: None
-
None
-
Linux
I wanted to switch on usePowerOf2Sizes and got the follwing error:
MongoDB shell version: 2.2.1 connecting to: sx210:27018/admin mongos> use offerStore switched to db offerStore mongos> db.runCommand( {collMod: "offer", usePowerOf2Sizes : true }) { "raw" : { "offerStoreDE2/172.16.242.1:27018,s127:27018,s131:27018,s136:27018" : { "usePowerOf2Sizes_old" : false, "errmsg" : "unknown command: $auth", "ok" : 0 }, "offerStoreDE3/s124:27018,s129:27018,s132:27018" : { "usePowerOf2Sizes_old" : false, "errmsg" : "unknown command: $auth", "ok" : 0 }, "offerStoreDE4/s115:27018,s117:27018,s125:27018" : { "usePowerOf2Sizes_old" : false, "errmsg" : "unknown command: $auth", "ok" : 0 } }, "ok" : 0, "errmsg" : "{ offerStoreDE2/172.16.242.1:27018,s127:27018,s131:27018,s136:27018: \"unknown command: $auth\", offerStoreDE3/s124:27018,s129:27018,s132:27018: \"unknown command: $auth\", offerStoreDE4/s115:27018,s117:27018,s125:27018: \"unknown command: $auth\" }" }
My mongo shell version is 2.2.1. MongoDB is v2.2.3 Linux 64 bit. We are running mongo with --keyfile option.
When I run the command against a replSet primary, it worked:
MongoDB shell version: 2.2.1 connecting to: s117:27018/admin offerStoreDE4:PRIMARY> use offerStore switched to db offerStore offerStoreDE4:PRIMARY> db.runCommand( {collMod: "offer", usePowerOf2Sizes : true }) { "usePowerOf2Sizes_old" : true, "ok" : 1 } offerStoreDE4:PRIMARY>
Hence my question: Does usePowerOf2Sizes work with sharding and auth or do we need to run the command against all shard members?
- duplicates
-
SERVER-8409 collMod doesn't work when run through a mongos on an authenticated cluster
- Closed