-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Sharding
-
Labels:None
-
ALL
Create zero shard sharded setup, attempt to add the first shard without first doing "use admin".
The error message for subsequent shards tell use the user to "use admin" which makes sense. The first shard to be added does the following:
mongos> db.runCommand(
{addShard:"rs1/addShard:charlie-VirtualBox:27012", name:"shard01"})
Wed Feb 5 15:15:37.422 error:
at src/mongo/shell/query.js:128
Having the first error message tell the user to use admin is the desired behavior.
- duplicates
-
SERVER-4021 Running "addshard" outside admin db produces cryptic error message
- Closed
- is related to
-
DOCS-2672 db.runCommand and the admin database
- Closed