[DOCS-1821] Comment on: "manual/reference/method/rs.add.txt" Created: 16/Aug/13  Updated: 11/Jan/17  Resolved: 15/Oct/14

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: 01112017-cleanup

Type: Improvement Priority: Minor - P4
Reporter: auto Assignee: Unassigned
Resolution: Done Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Location: http://docs.mongodb.org/manual/reference/method/rs.add/#rs.add
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.36
Referrer: http://docs.mongodb.org/manual/reference/replica-commands/
Screen Resolution: 2560 x 1440
repo: docs
source: reference/method/rs.add


Participants:
Days since reply: 9 years, 18 weeks ago

 Description   

Hi,

This pages states that: "This function will disconnect the shell briefly and forces a reconnection as the replica set renegotiates which member will be primary. As a result, the shell will display an error even if this command succeeds.".

Can you validate this statement? My understanding is that, for an additive change, there is no actual re-negotiation of which member is primary unless there are other configuration changes taking place, or if there is no chaining allowed.

https://github.com/mongodb/mongo/blob/master/src/mongo/db/repl/rs.cpp#L602-L616

Thanks.



 Comments   
Comment by Sam Kleinman (Inactive) [ 15/Oct/14 ]

comment amended in master

Generated at Thu Feb 08 07:41:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.