-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 1.7.0
-
Component/s: None
-
None
-
ALL
Problem:
When adding a shard, if the passive members of the replset are included, then the addshard command fails
db.runCommand(
{ addshard : "set3/rs3a:27018,rs3b:27018,rs3c:27018,rs3d:27018", maxSize: 409600, name : "shard3" });
{
"ok" : 0,
"errmsg" : "host rs3c:27018 does not belong to replica set set3"
}
Workaround:
Only include the active members in the addshard command, and the addshard will succeed
Reproduce:
- create a 3 member replset
- set two nodes with Priority 1 and one with Priority 0
- try the addshard command with all three nodes
- get the failure message
Business Case:
Ease of use