[DOCS-2287] doc for rs.add suggests that shell will get disconnected, which isn't necessarily true Created: 22/Nov/13  Updated: 16/Mar/15  Resolved: 10/Apr/14

Status: Closed
Project: Documentation
Component/s: manual
Affects Version/s: None
Fix Version/s: v1.3.3

Type: Bug Priority: Major - P3
Reporter: Michael O'Brien Assignee: Bob Grabar
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Days since reply: 9 years, 44 weeks, 5 days ago

 Description   

http://docs.mongodb.org/manual/reference/method/rs.add/

This doc page says:

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.

This actually isn't always the case. Often times you can use rs.add() to add members and the shell will stay connected. The primary only disconnects its connections if adding the member results in a stepdown/election occurring.
I am not sure if this behavior has always been so in older versions, but it seems to be the case at least as early as 2.4.x.



 Comments   
Comment by Githook User [ 11/Apr/14 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-2287: tweak sentence
Branch: v2.4
https://github.com/mongodb/docs/commit/fdf3789536db84e896b8c727b731b0544869fb80

Comment by Githook User [ 11/Apr/14 ]

Author:

{u'username': u'bgrabar', u'name': u'Bob Grabar', u'email': u'bob.grabar@10gen.com'}

Message: DOCS-2287 rs.add no longer disconnects shell

Signed-off-by: Sam Kleinman <samk@10gen.com>
Branch: v2.4
https://github.com/mongodb/docs/commit/6877bf5770fd02894c59299a66a462a8aeed8033

Comment by Githook User [ 11/Apr/14 ]

Author:

{u'username': u'tychoish', u'name': u'Sam Kleinman', u'email': u'samk@10gen.com'}

Message: DOCS-2287: tweak sentence
Branch: master
https://github.com/mongodb/docs/commit/4be2c6bebc889f2f536360fe5c0764a063010d66

Comment by Githook User [ 11/Apr/14 ]

Author:

{u'username': u'bgrabar', u'name': u'Bob Grabar', u'email': u'bob.grabar@10gen.com'}

Message: DOCS-2287 rs.add no longer disconnects shell

Signed-off-by: Sam Kleinman <samk@10gen.com>
Branch: master
https://github.com/mongodb/docs/commit/399cb1666e6b0f06e55b188ee90dd75cb249dbc1

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