[SERVER-3798] Malformed argument to rs.add(..) causes primary to throw Uncaught exception, exit Created: 09/Sep/11  Updated: 11/Jul/16  Resolved: 14/Sep/11

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 1.8.3
Fix Version/s: 2.1.0

Type: Bug Priority: Major - P3
Reporter: Mitch Patenaude Assignee: Kristina Chodorow (Inactive)
Resolution: Done Votes: 0
Labels: crash, replication
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Dell R710, CentOS 5.4


Operating System: Linux
Participants:

 Description   

I had a thinko and when trying to add a non-voting RS member, used the form
rs.add("host:port, votes: 0")

Here's an excerpt from the logs:

Fri Sep 9 13:04:43 [conn25285] Uncaught exception, terminating
Fri Sep 9 13:04:43 dbexit:
Fri Sep 9 13:04:43 [conn25285] shutdown: going to close listening sockets...
Fri Sep 9 13:04:43 [conn25285] closing listening socket: 5
Fri Sep 9 13:04:43 [conn25285] closing listening socket: 6
Fri Sep 9 13:04:43 [conn25285] closing listening socket: 7
Fri Sep 9 13:04:43 [conn25285] closing listening socket: 8
Fri Sep 9 13:04:43 [conn25285] removing socket file: /tmp/mongodb-27017.sock
Fri Sep 9 13:04:43 [conn25270] got request after shutdown()
Fri Sep 9 13:04:43 [conn25161] got request after shutdown()



 Comments   
Comment by auto [ 14/Sep/11 ]

Author:

{u'login': u'kchodorow', u'name': u'Kristina', u'email': u'kristina@10gen.com'}

Message: handle invalid host in reconfig SERVER-3798
Branch: master
https://github.com/mongodb/mongo/commit/2b8753551ade7c9950187473f31075d8c6070e7f

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