[SERVER-1482] rs.add() assert db/repl/rs.h:184 Created: 25/Jul/10  Updated: 12/Jul/16  Resolved: 29/Jul/10

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: 1.5.6
Fix Version/s: 1.5.7

Type: Bug Priority: Major - P3
Reporter: Alex Assignee: Dwight Merriman
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

ubuntu 10.04 64bit mongodb 1.5.6


Issue Links:
Duplicate
duplicates SERVER-1479 Error when setting up replica sets - ... Closed
Operating System: ALL
Participants:

 Description   

rs.add({_id:<id>,host:"<host>",priority:<prio>});

creates fatal replication error. master shuts down replication. this happened multiple times on different master nodes.

[conn40] Sun Jul 25 00:27:36 replSet replSetReconfig config object parses ok, 7 members specified
[initandlisten] Sun Jul 25 00:27:36 connection accepted from xxxxxxxxx #68
[conn40] Sun Jul 25 00:27:36 replSet replSetReconfig all members seem up
[conn40] Sun Jul 25 00:27:36 replSet info saving a newer config version to local.system.replset
[conn40] Sun Jul 25 00:27:36 Assertion failure !sp.state.primary() db/repl/rs.h 184
[conn40] Sun Jul 25 00:27:36 replSet error unexpected exception in haveNewConfig() : 0 assertion db/repl/rs.h:184
[conn40] Sun Jul 25 00:27:36 replSet fatal error
[conn40] Sun Jul 25 00:27:36 replSet error fatal error, stopping replication



 Comments   
Comment by Kyle Banker [ 27/Jul/10 ]

This issue is reproduced by jstests/replsets/replsetadd.js

Comment by auto [ 26/Jul/10 ]

Author:

{'login': 'banker', 'name': 'Kyle Banker', 'email': 'kylebanker@gmail.com'}

Message: SERVER-1482 SERVER-1479 failing replica set add test
http://github.com/mongodb/mongo/commit/c23a930a46a82e558ab467be1be63e9764d562e6

Comment by Eliot Horowitz (Inactive) [ 25/Jul/10 ]

kyle - can you add a test for this.
when you have a test that fiels, comment out failing part, commit and assign back to me

Comment by Alex [ 25/Jul/10 ]

Seems like same issue as http://jira.mongodb.org/browse/SERVER-1479

Generated at Thu Feb 08 02:57:09 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.