<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:08:38 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-5358] After an upgrade, --shutdown fails to shutdown the old version of mongod</title>
                <link>https://jira.mongodb.org/browse/SERVER-5358</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;1. have mongodb 2.0.3 installed.&lt;br/&gt;
2. run the daemon with sudo rc.d start mongodb&lt;br/&gt;
3. upgrade mongodb to 2.0.4&lt;br/&gt;
4. try to stop the daemon with sudo rc.d stop mongodb&lt;/p&gt;

&lt;p&gt;It prints FAIL and in /var/log/mongodb/mongod.log I get:&lt;br/&gt;
&quot;Process 3604 is running /usr/bin/mongod (deleted) not mongod&quot;&lt;/p&gt;

&lt;p&gt;The problem here is the line at:&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/blob/master/src/mongo/db/db.cpp#L1043&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/master/src/mongo/db/db.cpp#L1043&lt;/a&gt;&lt;br/&gt;
&quot;else if (!endsWith(buf, &quot;mongod&quot;)){&quot;&lt;br/&gt;
My buf ends with &quot;mongod (deleted)&quot;&lt;/p&gt;

&lt;p&gt;Note, the daemon is using the mongod --shutdown flag to stop the daemon.&lt;/p&gt;</description>
                <environment>64bit archlinux</environment>
        <key id="33533">SERVER-5358</key>
            <summary>After an upgrade, --shutdown fails to shutdown the old version of mongod</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="9">Done</resolution>
                                        <assignee username="mathias@mongodb.com">Mathias Stearn</assignee>
                                    <reporter username="td123">Thomas Dziedzic</reporter>
                        <labels>
                    </labels>
                <created>Thu, 22 Mar 2012 13:54:32 +0000</created>
                <updated>Mon, 11 Jul 2016 18:32:56 +0000</updated>
                            <resolved>Tue, 10 Apr 2012 22:17:24 +0000</resolved>
                                    <version>2.0.3</version>
                                    <fixVersion>2.0.5</fixVersion>
                    <fixVersion>2.1.1</fixVersion>
                                    <component>Shell</component>
                    <component>Usability</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="111782" author="auto" created="Thu, 19 Apr 2012 21:35:51 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;RedBeard0531&apos;, u&apos;name&apos;: u&apos;Mathias Stearn&apos;, u&apos;email&apos;: u&apos;mathias@10gen.com&apos;}
&lt;p&gt;Message: Don&apos;t check /proc/pid/exe in --shutdown &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-5358&quot; title=&quot;After an upgrade, --shutdown fails to shutdown the old version of mongod&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-5358&quot;&gt;&lt;del&gt;SERVER-5358&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It didn&apos;t mix well with updates. When the mongod binary is updated the&lt;br/&gt;
exe link gets &quot; (deleted)&quot; added to the path.&lt;br/&gt;
Branch: v2.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/264b914c4b19e3e6e094d49761e85e9555b49957&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/264b914c4b19e3e6e094d49761e85e9555b49957&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="108575" author="td123" created="Wed, 11 Apr 2012 01:33:24 +0000"  >&lt;p&gt;@Mathias: Thanks for the the tip, I backported the fix to ensure proper handling of --logpath w/ shutdown and the fix for this bug report.&lt;/p&gt;

&lt;p&gt;Cheers!&lt;/p&gt;

&lt;p&gt;edit: forgot to mention I attached both the commits to this bug report for reference.&lt;/p&gt;</comment>
                            <comment id="108544" author="redbeard0531" created="Tue, 10 Apr 2012 22:28:45 +0000"  >&lt;p&gt;@Thomas: if you backport that for the archlinux packages, you should also grab &lt;a href=&quot;https://github.com/mongodb/mongo/commit/fa2e2ef95c5c934eef63fff4b98d5eb060c56539&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/fa2e2ef95c5c934eef63fff4b98d5eb060c56539&lt;/a&gt; to ensure proper handling of --logpath with --shutdown&lt;/p&gt;</comment>
                            <comment id="108540" author="auto" created="Tue, 10 Apr 2012 22:15:48 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;RedBeard0531&apos;, u&apos;name&apos;: u&apos;Mathias Stearn&apos;, u&apos;email&apos;: u&apos;mathias@10gen.com&apos;}
&lt;p&gt;Message: Don&apos;t check /proc/pid/exe in --shutdown &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-5358&quot; title=&quot;After an upgrade, --shutdown fails to shutdown the old version of mongod&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-5358&quot;&gt;&lt;del&gt;SERVER-5358&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It didn&apos;t mix well with updates. When the mongod binary is updated the&lt;br/&gt;
exe link gets &quot; (deleted)&quot; added to the path.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c28d97d1a14a36ffc056bfd9ba7262b0a1509b5b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c28d97d1a14a36ffc056bfd9ba7262b0a1509b5b&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="15871" name="0001-Backport-for-mongodb-2.0.4-Ignore-fork-and-logpath-w.patch" size="1364" author="td123" created="Wed, 11 Apr 2012 01:32:12 +0000"/>
                            <attachment id="15872" name="0002-Backport-for-mongodb-2.0.4-Don-t-check-proc-pid-exe-.patch" size="1820" author="td123" created="Wed, 11 Apr 2012 01:32:21 +0000"/>
                    </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_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>Tue, 10 Apr 2012 21:38:53 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 43 weeks, 6 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>
                            11 years, 43 weeks, 6 days ago
                        </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>auto</customfieldvalue>
            <customfieldvalue>mathias@mongodb.com</customfieldvalue>
            <customfieldvalue>td123</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hro8yn:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9267</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_10166" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Tests Written</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10153"><![CDATA[Unneeded]]></customfieldvalue>

                        </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|ht0ain:</customfieldvalue>

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