[SERVER-12726] addArb adding full member if incorrect input supplied Created: 14/Feb/14  Updated: 25/Jan/17  Resolved: 04/Mar/15

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 2.4.9
Fix Version/s: 3.1.0

Type: Bug Priority: Minor - P4
Reporter: John Greenall Assignee: Siyuan Zhou
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: RPL 0 3/13/15
Participants:

 Description   

Small niggle:

running
rs.addArb(

{"_id":9,"host":"myhost:27017"}

)

from mongo shell adds myhost as a full member of replicaSet.
whereas

rs.addArb("host":"myhost:27017")
works as intended



 Comments   
Comment by Githook User [ 04/Mar/15 ]

Author:

{u'username': u'visualzhou', u'name': u'Siyuan Zhou', u'email': u'siyuan.zhou@mongodb.com'}

Message: SERVER-12726 addArb adding full member if incorrect input supplied
Branch: master
https://github.com/mongodb/mongo/commit/c5fb91085d5083f70b87820a509989b57b521c8a

Comment by Eric Milkie [ 20/Feb/15 ]

The problem is that rs.add ignores the hostandport if it's not a string. Instead, we should throw an error.

Generated at Thu Feb 08 03:29:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.