<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:01:17 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-2825] Returns exit code 0 in case of Mongo fail to start </title>
                <link>https://jira.mongodb.org/browse/SERVER-2825</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;In case of unclean shutdown mongo fail to start, but returns exit code 0. &lt;br/&gt;
Exit code matters when used in startup scripts.&lt;br/&gt;
Look at this piece of code from my ArchLinux&apos;s mongodb startup script. Here we try to start mongo an then check exit code. Mongo should return correct exit codes.&lt;br/&gt;
    [ -z &quot;$PID&quot; ] &amp;amp;&amp;amp; /bin/su mongodb -s /bin/bash -c &quot;/usr/bin/mongod --config /etc/mongodb.conf &amp;amp;&quot; &amp;gt; /var/log/mongod 2&amp;gt;&amp;amp;1&lt;br/&gt;
    if [ $? -gt 0 ]; then&lt;br/&gt;
      stat_fail&lt;br/&gt;
    else&lt;br/&gt;
      add_daemon mongodb&lt;br/&gt;
      stat_done&lt;br/&gt;
    fi&lt;/p&gt;</description>
                <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</environment>
        <key id="15260">SERVER-2825</key>
            <summary>Returns exit code 0 in case of Mongo fail to start </summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="brandon">Brandon Diamond</assignee>
                                    <reporter username="jesu">Artyom Bolshakov</reporter>
                        <labels>
                    </labels>
                <created>Thu, 24 Mar 2011 11:40:24 +0000</created>
                <updated>Tue, 12 Jul 2016 00:18:49 +0000</updated>
                            <resolved>Tue, 25 Oct 2011 15:58:11 +0000</resolved>
                                    <version>1.8.0-rc1</version>
                                    <fixVersion>2.1.0</fixVersion>
                                    <component>Admin</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="62521" author="auto" created="Tue, 25 Oct 2011 15:58:11 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;&apos;, u&apos;name&apos;: u&apos;Brandon Diamond&apos;, u&apos;email&apos;: u&apos;brandon@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2825&quot; title=&quot;Returns exit code 0 in case of Mongo fail to start &quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2825&quot;&gt;&lt;del&gt;SERVER-2825&lt;/del&gt;&lt;/a&gt; Added async error support to mongos/d&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/9e4a870471afd6a018ddab16b89c35c88490ce4b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/9e4a870471afd6a018ddab16b89c35c88490ce4b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="62520" author="auto" created="Tue, 25 Oct 2011 15:58:10 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;&apos;, u&apos;name&apos;: u&apos;Brandon Diamond&apos;, u&apos;email&apos;: u&apos;brandon@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2825&quot; title=&quot;Returns exit code 0 in case of Mongo fail to start &quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2825&quot;&gt;&lt;del&gt;SERVER-2825&lt;/del&gt;&lt;/a&gt; Added support for async error codes&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/fc640ccdca95b3d7eac6a11acab128eba3fd91b3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/fc640ccdca95b3d7eac6a11acab128eba3fd91b3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="61793" author="brandon" created="Fri, 21 Oct 2011 14:39:13 +0000"  >&lt;p&gt;Yup, this seems like the right strategy. I&apos;m starting implementation this morning.&lt;/p&gt;</comment>
                            <comment id="61215" author="redbeard0531" created="Tue, 18 Oct 2011 18:54:07 +0000"  >&lt;p&gt;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.&lt;/p&gt;

&lt;p&gt;I &lt;b&gt;think&lt;/b&gt; 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.&lt;/p&gt;

&lt;p&gt;Search for fork in db/cmdline.cpp to see how this is currently handled&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 18 Oct 2011 18:54:07 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 17 weeks, 1 day ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 17 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10020"><![CDATA[Linux]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>jesu</customfieldvalue>
            <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>brandon</customfieldvalue>
            <customfieldvalue>mathias@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrp2rb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrgb0f:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8693</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht0e0v:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>