[SERVER-1479] Error when setting up replica sets - assertion failure !sp.state.primary() db/repl/rs.h 184 Created: 24/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: | nosh petigara | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
OSX 64 |
||
| Issue Links: |
|
||||||||
| Operating System: | ALL | ||||||||
| Participants: | |||||||||
| Description |
|
Don't know if this is some weirdness (or screwup on my part) because I am running on the same machine... but I can reproduce this repeatedly: Steps to reproduce: 1. start 1st server as follows: 2. start 2nd server as follows: -starts, up but doesn't really do anything. ] } 3. Then call rs.add("Nosh-Petigaras-MacBook-Pro.local:27018") on first server ] }, ok: 1.0 } [conn2] Sat Jul 24 16:28:44 replSet replSetReconfig all members seem up , { _id: 1.0, host: "Nosh-Petigaras-MacBook-Pro.local:27018" }] } } reslen:53 154ms |
| Comments |
| Comment by Kristina Chodorow (Inactive) [ 28/Jul/10 ] |
|
This works for me now. |
| Comment by Kyle Banker [ 27/Jul/10 ] |
|
Note that this is a duplicate issue. See linked issue. |
| Comment by Kyle Banker [ 27/Jul/10 ] |
|
these are the same issue |
| Comment by auto [ 26/Jul/10 ] |
|
Author: {'login': 'banker', 'name': 'Kyle Banker', 'email': 'kylebanker@gmail.com'}Message: |
| Comment by Kristina Chodorow (Inactive) [ 26/Jul/10 ] |
|
I'm also getting this. Run: $ ./mongod --replSet unicomplex/hostname:27017 --dbpath ~/dbs/blort1 Wait until 27017 prints "replSet sleeping 20sec and will try again." then in the shell: > rs.initiate() The ./mongod running at 27017 will have the assertion failure. It's caused by the box.setOtherPrimary(0); line of rs.cpp. |
| Comment by auto [ 26/Jul/10 ] |
|
Author: {'login': 'banker', 'name': 'Kyle Banker', 'email': 'kylebanker@gmail.com'}Message: |
| Comment by Eliot Horowitz (Inactive) [ 25/Jul/10 ] |
|
kyle - can you add a test for this. |