Details
-
Bug
-
Resolution: Done
-
Major - P3
-
2.2.1
-
None
-
None
-
RHEL 5
-
ALL
Description
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 }
|
Attachments
Issue Links
- is duplicated by
-
SERVER-9142 turning on usePowerOf2Sizes throws error on sharding with auth
-
- Closed
-