<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:10:31 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-6014] init.d/mongod causing 5 minute delay upon restart</title>
                <link>https://jira.mongodb.org/browse/SERVER-6014</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;attaching the patch to a version we&apos;re using&lt;/p&gt;</description>
                <environment>centos 5</environment>
        <key id="40519">SERVER-6014</key>
            <summary>init.d/mongod causing 5 minute delay upon restart</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="3">Duplicate</resolution>
                                        <assignee username="ernie.hershey@mongodb.com">Ernie Hershey</assignee>
                                    <reporter username="ootada">ttt</reporter>
                        <labels>
                    </labels>
                <created>Wed, 6 Jun 2012 05:19:52 +0000</created>
                <updated>Wed, 10 Dec 2014 23:05:57 +0000</updated>
                            <resolved>Wed, 29 Jan 2014 16:46:58 +0000</resolved>
                                    <version>2.0.6</version>
                                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="480171" author="ernie.hershey@10gen.com" created="Fri, 10 Jan 2014 15:07:04 +0000"  >&lt;p&gt;I just saw this occur on system shutdown of bbout1 which is an Amazon Linux machine. &lt;/p&gt;</comment>
                            <comment id="441637" author="ernie.hershey@10gen.com" created="Wed, 16 Oct 2013 16:23:06 +0000"  >&lt;p&gt;Sorry for the delay. I still intend to test this further. &lt;/p&gt;</comment>
                            <comment id="314038" author="ernie.hershey@10gen.com" created="Mon, 15 Apr 2013 21:36:18 +0000"  >&lt;p&gt;That is super helpful, thank you!! I&apos;m going to do some further testing and will post an update here. &lt;/p&gt;</comment>
                            <comment id="314035" author="ootada" created="Mon, 15 Apr 2013 21:33:44 +0000"  >&lt;p&gt;You are right, it looks like i have mistaken the killproc version and:&lt;/p&gt;

&lt;p&gt;killproc -p &quot;$DBPATH&quot;/mongod.lock -t30 -TERM /usr/bin/mongod&lt;/p&gt;

&lt;p&gt;probably should be:&lt;/p&gt;

&lt;p&gt;killproc -p &quot;$DBPATH&quot;/mongod.lock /usr/bin/mongod -TERM&lt;/p&gt;

&lt;p&gt;Nonetheless, the original patch appears to work, interpretting &apos;-t30&apos; for a&lt;br/&gt;
process name (which may have some consequences).&lt;/p&gt;


&lt;p&gt;Quite a few months passed after I was at this issue, but I think it has to&lt;br/&gt;
do with the &quot;killproc -d300&quot;.&lt;br/&gt;
Scenario:&lt;br/&gt;
1) killproc tries to kill process with -TERM;&lt;br/&gt;
2) killproc sleeps some, checks if process ended. Of course - when you shut&lt;br/&gt;
down huge and actively used database - it is still running - trying to&lt;br/&gt;
finish queries;&lt;br/&gt;
3) killproc then sleeps for the specified delay of 300 seconds, no&lt;br/&gt;
questions asked;&lt;br/&gt;
4) in meantime mongod finishes and is not restarting until that sleep (3)&lt;br/&gt;
ends.&lt;/p&gt;


&lt;p&gt;also, in the patch I&apos;m specifically avoiding to kill mongod with -9 as not&lt;br/&gt;
to step on to long finishing process (which is still possible) - at the&lt;br/&gt;
time I possibly had some databases running without durability so randomly&lt;br/&gt;
killing db with -9 led to guaranteed problems, with durability its less&lt;br/&gt;
disastrous but still may cause problems. If mongod is unable to finish by&lt;br/&gt;
itself (unlikely), there is a case for investigation.&lt;/p&gt;




&lt;p&gt;On Mon, Apr 15, 2013 at 11:39 PM, Tadas / XtGem &amp;lt;tadas@xtgem.com&amp;gt; wrote:&lt;/p&gt;
</comment>
                            <comment id="314007" author="ootada" created="Mon, 15 Apr 2013 20:46:49 +0000"  >&lt;p&gt;CentOS 5&lt;/p&gt;


</comment>
                            <comment id="313988" author="ernie.hershey@10gen.com" created="Mon, 15 Apr 2013 20:23:17 +0000"  >&lt;p&gt;Also, what OS was your patch generated from? I don&apos;t see a &quot;-t&quot; option to killproc in RedHat 6.3, for example. &lt;/p&gt;</comment>
                            <comment id="313986" author="ernie.hershey@10gen.com" created="Mon, 15 Apr 2013 20:22:19 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Can you provide more detail on the conditions when you see a 5 minute delay? Is it when there&apos;s no clean shutdown? &lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="70832">SERVER-9253</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="17053" name="init.d-mongod.patch" size="1069" author="ootada" created="Wed, 6 Jun 2012 05:19:52 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 15 Apr 2013 20:22:19 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            10 years, 5 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_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>ernie.hershey@mongodb.com</customfieldvalue>
            <customfieldvalue>ootada</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hro0wv:</customfieldvalue>

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

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

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