[SERVER-2825] Returns exit code 0 in case of Mongo fail to start Created: 24/Mar/11 Updated: 12/Jul/16 Resolved: 25/Oct/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Admin |
| Affects Version/s: | 1.8.0-rc1 |
| Fix Version/s: | 2.1.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Artyom Bolshakov | Assignee: | Brandon Diamond |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Linux 2.6.37-ARCH #1 SMP PREEMPT Tue Mar 15 09:21:17 CET 2011 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4600+ AuthenticAMD GNU/Linux |
||
| Operating System: | Linux |
| Participants: |
| Description |
|
In case of unclean shutdown mongo fail to start, but returns exit code 0. |
| Comments |
| Comment by auto [ 25/Oct/11 ] |
|
Author: {u'login': u'', u'name': u'Brandon Diamond', u'email': u'brandon@10gen.com'}Message: |
| Comment by auto [ 25/Oct/11 ] |
|
Author: {u'login': u'', u'name': u'Brandon Diamond', u'email': u'brandon@10gen.com'}Message: |
| Comment by Brandon Diamond [ 21/Oct/11 ] |
|
Yup, this seems like the right strategy. I'm starting implementation this morning. |
| Comment by Mathias Stearn [ 18/Oct/11 ] |
|
This only applies when using --fork. I think the best way to do this is to have the parent process wait for a message from the child that it is up and running, or to wait for it to die. I think this can be done by waitpid()ing on the child in the parent, then having the child send the parent SIGUSR2 on successful startup. This should be tested to make sure it works on all unix platforms. Search for fork in db/cmdline.cpp to see how this is currently handled |