[SERVER-5806] Mongo Segfaults When Assigning Elastic IP to Running Server Created: 09/May/12 Updated: 15/Aug/12 Resolved: 14/May/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | 2.0.4 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Adam Flynn | Assignee: | Eric Milkie |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Ubuntu 11.10, Linux 3.0.0-14, running on EC2 |
||
| Issue Links: |
|
||||||||
| Operating System: | Linux | ||||||||
| Participants: | |||||||||
| Description |
|
When I bring up one of my MongoDB instances (specifically the secondary) and don't assign it the correct elastic IP right away, when I later do assign it, it segfaults. Get a bunch of log messages where it tries to connect to the primary and errors because its current hostname doesn't match what's in the RS config (expected), but when its hostname changes and it tries, it just dies. Not the end of the world, but it's pretty annoying, because you have to manually remap the IPs on every server restart. Last few log entries (the replSet error happens a bunch of times): Wed May 9 16:20:50 [rsStart] warning: getaddrinfo("ec2-184-72-56-224.us-west-1.compute.amazonaws.com") failed: Name or service not known , { _id: 2, host: "ec2-184-72-56-224.us-west-1.compute.amazonaws.com:27017" }, { _id: 99, host: "ec2-50-18-235-86.us-west-1.compute.amazonaws.com:27017", arbiterOnly: true } ] } Wed May 9 16:21:10 Got signal: 11 (Segmentation fault). Wed May 9 16:21:10 Backtrace: Logstream::get called in uninitialized state |
| Comments |
| Comment by Eric Milkie [ 14/May/12 ] |
|
Ok, let us know if it becomes more of a problem for you and we can consider backporting. |
| Comment by Adam Flynn [ 11/May/12 ] |
|
So far, I've only seen it when restarting my servers if there's a lag between bringing the server up and getting the final IP assigned. Not bothering me enough to need a backport. |
| Comment by Eric Milkie [ 11/May/12 ] |
|
Hi Adam, Is this something that would should backport – how often does this affect you? |