-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 2.2.1
-
Component/s: None
-
None
-
Environment:RHEL 5
-
ALL
Attempting to switch userPowerOf2Sizes on through a mongos on a sharded collection doesn't seem to work:
mongos> use mongoose mongos> db.runCommand({"collMod":"centaur", "usePowerOf2Sizes":true}) { "raw" : { "rs0/cn14-ib:27118,cn53-ib:27118,cn17-ib:27118" : { "usePowerOf2Sizes_old" : true, "errmsg" : "unknown command: $auth", "ok" : 0 }, "rs1/cn54-ib:27118,cn55-ib:27118" : { "usePowerOf2Sizes_old" : true, "errmsg" : "unknown command: $auth", "ok" : 0 } }, "ok" : 0, "errmsg" : "{ rs0/cn14-ib:27118,cn53-ib:27118,cn17-ib:27118: \"unknown command: $auth\", rs1/cn54-ib:27118,cn55-ib:27118: \"unknown command: $auth\" }" }
It's not clear to me if the problem is the fact that the cluster is authenticated, or that it's sharded...
Note the same command works fine against a plain old un-sharded, un-auth'd mongod primary:
reggie:PRIMARY> db.runCommand({"collMod":"asdf", "usePowerOf2Sizes":true}) { "usePowerOf2Sizes_old" : false, "ok" : 1 }
- is duplicated by
-
SERVER-9142 turning on usePowerOf2Sizes throws error on sharding with auth
- Closed