<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:15:53 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-7893] report fatal startup errors to console on a --fork when possible,</title>
                <link>https://jira.mongodb.org/browse/SERVER-7893</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;for example if the db path doesn&apos;t exist, the forked process stops almost immediately, but there is no indication outside the log file specified that this happened.  it would be a nice-to-have to get that.&lt;/p&gt;

&lt;p&gt;it might be a bit tricky to do this with a universality to it.  three approaches? : &lt;br/&gt;
1) fork later.  then more has happened that could have gone wrong.&lt;br/&gt;
2) after forking, have the forking parent wait for a sentinel state from the child either that it is ok or not ok or still in initialization.  once out of initialization the parent stops regardless, but perhaps with something to report.&lt;br/&gt;
3) just pre-check some very common errors like no data directory &amp;#8211; partial solution but trivial to do&lt;/p&gt;

&lt;p&gt;this brings up an interesting question of do we want an invocation with --fork to not return until init is completed anyway?  i could see some advantages to that.  i.e. i might have a script that after starting a mongod then wants to initiate the replica set; but maybe the mongod hasn&apos;t even started yet so i have to wait somehow.&lt;/p&gt;
</description>
                <environment></environment>
        <key id="58853">SERVER-7893</key>
            <summary>report fatal startup errors to console on a --fork when possible,</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="-1">Unassigned</assignee>
                                    <reporter username="dwight@mongodb.com">Dwight Merriman</reporter>
                        <labels>
                    </labels>
                <created>Mon, 10 Dec 2012 19:39:50 +0000</created>
                <updated>Fri, 24 Mar 2017 14:20:03 +0000</updated>
                            <resolved>Fri, 24 Mar 2017 14:20:03 +0000</resolved>
                                                                    <component>Usability</component>
                                        <votes>2</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="1532080" author="ian@10gen.com" created="Fri, 24 Mar 2017 14:20:03 +0000"  >&lt;p&gt;As noted by Andy we already do #2.&lt;/p&gt;

&lt;p&gt;Also, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=milkie&quot; class=&quot;user-hover&quot; rel=&quot;milkie&quot;&gt;milkie&lt;/a&gt; has noted that Micha&#322;&apos;s concern has already been handled in another SERVER ticket.&lt;/p&gt;</comment>
                            <comment id="370356" author="schwerin" created="Fri, 28 Jun 2013 20:35:31 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=dwight_10gen&quot; class=&quot;user-hover&quot; rel=&quot;dwight_10gen&quot;&gt;dwight_10gen&lt;/a&gt;, we actually already do (2), but do not log to the console once the logfile is open.  Maybe extending our existing solution to write to both the log file and the console until initialization succeeds is an appropriate solution?  It would be easy to flag-control.&lt;/p&gt;

&lt;p&gt;As for &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mgorny&quot; class=&quot;user-hover&quot; rel=&quot;mgorny&quot;&gt;mgorny&lt;/a&gt;&apos;s concern, that appears to be because the server reports to the launching process that all is well &lt;em&gt;before&lt;/em&gt; it starts listening on a port.  Moving the call to CmdLine::launchOk(), which is the signaling function, might alleviate that problem, today.&lt;/p&gt;</comment>
                            <comment id="262610" author="mgorny" created="Sun, 10 Feb 2013 19:08:59 +0000"  >&lt;p&gt;That&apos;s almost the same feature I wanted to request. However, in my case the issue is port being occupied &#8212; and similarly, mongod seems to start fine but then dies immediately and my script has to grep log to see if it failed.&lt;/p&gt;

&lt;p&gt;It should be noted that waiting until the forked process has initialized is a standard practice for forking servers to catch failures during startup. More advanced users definitely &lt;b&gt;expect&lt;/b&gt; that.&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>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sun, 10 Feb 2013 19:08:59 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 46 weeks, 5 days 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>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 46 weeks, 5 days 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_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>schwerin@mongodb.com</customfieldvalue>
            <customfieldvalue>dwight@mongodb.com</customfieldvalue>
            <customfieldvalue>ian@mongodb.com</customfieldvalue>
            <customfieldvalue>mgorny</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrnf0n:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4580</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|hszx8v:</customfieldvalue>

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