<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:59:12 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-2184] Graceful shutdown fails once in a while</title>
                <link>https://jira.mongodb.org/browse/SERVER-2184</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;These all occurred when sent a SIGTERM signal to mongo process (to gracefully terminate the instance):&lt;/p&gt;

&lt;p&gt;Example 1:&lt;/p&gt;

&lt;p&gt;Fri Dec  3 15:28:33 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: going to flush oplog...&lt;br/&gt;
Fri Dec  3 15:28:33 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: going to close sockets...&lt;br/&gt;
Fri Dec  3 15:28:33 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: waiting for fs preallocator...&lt;br/&gt;
Fri Dec  3 15:28:33 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: closing all files...&lt;br/&gt;
Fri Dec  3 15:28:33 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; end connection 127.0.0.1:58246&lt;br/&gt;
Fri Dec  3 15:28:33 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; now exiting&lt;br/&gt;
Fri Dec  3 15:28:33 dbexit: ; exiting immediately&lt;br/&gt;
mongod: /opt/boost/include/boost/thread/pthread/mutex.hpp:50: void boost::mutex::lock(): Assertion `!pthread_mutex_lock(&amp;amp;m)&apos; failed.&lt;br/&gt;
Fri Dec  3 15:28:33 Got signal: 6 (Aborted).&lt;/p&gt;

&lt;p&gt;Example 2:&lt;/p&gt;

&lt;p&gt;Mon Dec  6 09:04:55 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: going to flush oplog...&lt;br/&gt;
Mon Dec  6 09:04:55 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: going to close sockets...&lt;br/&gt;
Mon Dec  6 09:04:55 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: waiting for fs preallocator...&lt;br/&gt;
Mon Dec  6 09:04:55 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: closing all files...&lt;br/&gt;
Mon Dec  6 09:04:55 &lt;span class=&quot;error&quot;&gt;&amp;#91;interruptThread&amp;#93;&lt;/span&gt; now exiting&lt;br/&gt;
Mon Dec  6 09:04:55 dbexit: ; exiting immediately&lt;br/&gt;
Mon Dec  6 09:04:55 Got signal: 11 (Segmentation fault).&lt;/p&gt;

&lt;p&gt;Example 3:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;
	&lt;ul&gt;
		&lt;li&gt;
		&lt;ul&gt;
			&lt;li&gt;glibc detected *** /home/at/ats/ats-tools/mongodb/current/bin/mongod: double free or corruption (fasttop): 0x0a16c9b0 ***&lt;/li&gt;
		&lt;/ul&gt;
		&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


</description>
                <environment></environment>
        <key id="13883">SERVER-2184</key>
            <summary>Graceful shutdown fails once in a while</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="3">Duplicate</resolution>
                                        <assignee username="aaron">Aaron Staple</assignee>
                                    <reporter username="alex.turc">Alexandru Ioan Turc</reporter>
                        <labels>
                    </labels>
                <created>Tue, 7 Dec 2010 00:49:22 +0000</created>
                <updated>Fri, 30 Mar 2012 14:24:21 +0000</updated>
                            <resolved>Fri, 2 Sep 2011 04:53:24 +0000</resolved>
                                    <version>1.7.3</version>
                                                    <component>Stability</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="52128" author="eliot" created="Fri, 2 Sep 2011 04:53:24 +0000"  >&lt;p&gt;See linked case&lt;/p&gt;</comment>
                            <comment id="25030" author="aaron" created="Wed, 2 Mar 2011 01:44:08 +0000"  >&lt;p&gt;I ran a few tests and it looks like we only respond to the first SIGTERM or SIGINT, and I think this behavior is consistent with the intent of the code.  If any other signal is being sent that would cause a problem.&lt;/p&gt;</comment>
                            <comment id="24357" author="alex.turc" created="Mon, 21 Feb 2011 03:33:09 +0000"  >&lt;p&gt;I just realized that is possible that my shutdown script was sending multiple TERM signals, 1 second interval. I&apos;m thinking that if the application was already in shutdown mode but it did not finish by the time the second TERM signal was sent, it tried do execute some showdown procedures which were already execute as a consequence of the first TERM signal - like releasing some resource already released. This is really just an idea, I did not check the mongo server code to see if it accounts for something like this or not.&lt;/p&gt;</comment>
                            <comment id="22885" author="auto" created="Mon, 31 Jan 2011 20:03:25 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;astaple&apos;, u&apos;name&apos;: u&apos;Aaron&apos;, u&apos;email&apos;: u&apos;aaron@10gen.com&apos;}
&lt;p&gt;Message: for now, allow exit code 14 in killall test &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2184&quot; title=&quot;Graceful shutdown fails once in a while&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2184&quot;&gt;&lt;del&gt;SERVER-2184&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/59e153c5259e2ac20cf5ed449c31b379c572e0ae&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/59e153c5259e2ac20cf5ed449c31b379c572e0ae&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="21422" author="aaron" created="Tue, 14 Dec 2010 21:54:19 +0000"  >&lt;p&gt;Just wanted to check in again to ask if any more of the logs are available for examples 2 and 3 - thanks&lt;/p&gt;</comment>
                            <comment id="21170" author="auto" created="Wed, 8 Dec 2010 08:33:42 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;astaple&apos;, &apos;name&apos;: &apos;Aaron&apos;, &apos;email&apos;: &apos;aaron@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2184&quot; title=&quot;Graceful shutdown fails once in a while&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2184&quot;&gt;&lt;del&gt;SERVER-2184&lt;/del&gt;&lt;/a&gt; clarify usage of mongo mutex&lt;br/&gt;
/mongodb/mongo/commit/0b97deb52745f7da9464ddaf11ea2f85f211fa26&lt;/p&gt;</comment>
                            <comment id="21169" author="aaron" created="Wed, 8 Dec 2010 08:23:42 +0000"  >&lt;p&gt;Would it be possible to send more of the log files for examples 2 and 3?&lt;/p&gt;</comment>
                            <comment id="21168" author="aaron" created="Wed, 8 Dec 2010 08:21:26 +0000"  >&lt;p&gt;I did an audit for uses of boost mutexes which could potentially trigger the first message reported:&lt;/p&gt;


&lt;p&gt;RWLock&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;MongoFile / mmmutex&lt;/li&gt;
	&lt;li&gt;SpinLock&lt;/li&gt;
	&lt;li&gt;NetworkCounter&lt;/li&gt;
	&lt;li&gt;ServiceStats ?&lt;/li&gt;
	&lt;li&gt;CachedBSONObj ?&lt;/li&gt;
	&lt;li&gt;CmdReplSetReconfig&lt;br/&gt;
  etc.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;task / Ret ?&lt;br/&gt;
task / Server ?&lt;br/&gt;
MVar ?&lt;br/&gt;
ClientCursor::ccmutex&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="14945">SERVER-2652</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 8 Dec 2010 08:21:26 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 24 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>
                            12 years, 24 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>aaron</customfieldvalue>
            <customfieldvalue>alex.turc</customfieldvalue>
            <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpal3:</customfieldvalue>

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

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

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