[SERVER-2524] mongod crashes when rs.initiate() called without arguments Created: 10/Feb/11 Updated: 30/Mar/12 Resolved: 16/Feb/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication, Stability |
| Affects Version/s: | 1.7.5 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Mike Copley | Assignee: | Kristina Chodorow (Inactive) |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
OS X 10.6.6, 32bit prebuilt server from website |
||
| Attachments: |
|
| Operating System: | OS X |
| Participants: |
| Description |
|
monogd dies when issuing 'rs.initiate()' from shell. Would have expected an error message but not death. ./bin/mongod --replSet sample --port 23001 --dbpath /data --auth --keyFile /data/replicaPassphrase.txt --oplogSize=200 --smallfiles --rest --fork --logpath /data/log/sample.log ./bin/mongo --port 23001 to: 127.0.0.1:23001 From the log file: Thu Feb 10 10:15:47 [initandlisten] MongoDB starting : pid=30903 port=23001 dbpath=/data/nz1-e 32-bit
Thu Feb 10 10:15:47 [initandlisten] db version v1.7.5, pdfile version 4.5 ] } Thu Feb 10 10:15:53 Backtrace: Thu Feb 10 10:15:53 dbexit: This is on OS X 10.6.6, 32bit binary. Haven't tried on other environments. |
| Comments |
| Comment by Eliot Horowitz (Inactive) [ 16/Feb/11 ] |
|
See |
| Comment by Mike Copley [ 16/Feb/11 ] |
|
You can close this as being a dupe of |
| Comment by Mike Copley [ 10/Feb/11 ] |
|
Tested on 1.7.5 for Linux i686, could not reproduce. Replica came up fine. |
| Comment by Mike Copley [ 10/Feb/11 ] |
|
runBug creates 3 mongod instances, assumes data directories are in /tmp/mongod-test/sample-[a,b,c]/ |
| Comment by Mike Copley [ 10/Feb/11 ] |
|
I'm attaching a script that can reproduce this - it doesn't matter what is passed to rs.initiate(), it always crashes. The script creates 3 instances (ports 23001, 23002, 23003) and tries to establish a replica set between then. The rs.initiate(cfg) crashes. Usage: After running it will only have 2 instances running (23002, 23003) as 23001 (sample-a) has crashed. To re-run test, first kill the left over mongod instances. |