[DOCS-10212] Comment on: "manual/reference/method/rs.add.txt" Created: 05/May/17  Updated: 29/Oct/23  Resolved: 16/May/17

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Kevin Adistambha Assignee: Kevin Adistambha
Resolution: Fixed Votes: 0
Labels: collector-298ba4e7
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Location: https://docs.mongodb.com/v3.2/reference/method/rs.add/#behavior
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36
Referrer: https://www.google.com/url?q=https%3A%2F%2Fdocs.mongodb.com%2Fv3.2%2Freference%2Fmethod%2Frs.add%2F%23behavior&sa=D&sntz=1&usg=AFQjCNHGRQXfmuSsIISK6zV-kLVO9DZcpg
Screen Resolution: 1440 x 900


Issue Links:
Related
Participants:
Days since reply: 6 years, 39 weeks, 2 days ago

 Description   

The "Behavior" section says:

rs.add() can, in some cases, trigger an election for primary which will disconnect the shell. In such cases, the mongo shell displays an error even if the operation succeeds.

It is unclear what event could trigger an election, but a quick JIRA search seem to indicate that rs.add() that leads to reconfig with different priorities will trigger an election, while a pure additive action (e.g. adding a new member with default priority) will not trigger an election.

It may be helpful to include a summary of that situation into the docs to make the Behavior section more definitive and clearer.



 Comments   
Comment by Githook User [ 16/May/17 ]

Author:

{u'username': u'kevinadi', u'name': u'Kevin Adistambha', u'email': u'kevinadi@gmail.com'}

Message: DOCS-10212 provided an example when rs.add will cause an election

Signed-off-by: kay <kay.kim@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/6b61eda5f29d8422d74cc35292fadaf1ae5e68ba

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