<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:32:02 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-53852] MongoDB hangs randomly</title>
                <link>https://jira.mongodb.org/browse/SERVER-53852</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I am running MongoDB 4.4.2 cluster with one Primary, one Secondary and one hidden Secondary. On the hidden Secondary, sometimes (like once every 2 days or so) MongoDB just hangs (once it also happened on the Primary). By &quot;hangs&quot;, I mean:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;I am not able to connect to mongod via mongoshell&lt;/li&gt;
	&lt;li&gt;Secondary stops replicating, and starts lagging (until I restart it manually)&lt;/li&gt;
	&lt;li&gt;but running `rs.status()` on the Primary server shows that hung Secondary is reachable&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I referred to &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-34190&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-34190&lt;/a&gt; which looked like a similar issue (but it was fixed in 3.6.4). So I have attached the files that were requested in that issue:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Output of the gdb command: &lt;font color=&quot;#000000&quot;&gt;gdb &lt;del&gt;p $(pidof mongod) -batch -ex &apos;thread apply all bt&apos; &amp;gt; gdb_`date +&quot;%Y&lt;/del&gt;%m-%d_%H-%M-%S&quot;`.txt&lt;/font&gt;&lt;/li&gt;
	&lt;li&gt;Last 500 lines of mongod.log&lt;/li&gt;
	&lt;li&gt;I have provided the latest files in diagnostic.data folder&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Please let me know if you need anything else or you want me to try running some commands.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1592811">SERVER-53852</key>
            <summary>MongoDB hangs randomly</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="13201">Fixed</resolution>
                                        <assignee username="sergey.galtsev@mongodb.com">Sergey Galtsev</assignee>
                                    <reporter username="ashish@provakil.com">Ashish Madeti</reporter>
                        <labels>
                    </labels>
                <created>Sat, 16 Jan 2021 07:56:42 +0000</created>
                <updated>Sun, 29 Oct 2023 21:58:42 +0000</updated>
                            <resolved>Sat, 20 Feb 2021 16:39:32 +0000</resolved>
                                    <version>4.4.2</version>
                                    <fixVersion>4.4.6</fixVersion>
                    <fixVersion>5.0.0-rc0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>15</watches>
                                                                                                                <comments>
                            <comment id="3706524" author="xgen-internal-githook" created="Wed, 7 Apr 2021 20:45:55 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Sergey Galtsev&apos;, &apos;email&apos;: &apos;sergey.galtsev@mongodb.com&apos;, &apos;username&apos;: &apos;brushless-glitch&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-53852&quot; title=&quot;MongoDB hangs randomly&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-53852&quot;&gt;&lt;del&gt;SERVER-53852&lt;/del&gt;&lt;/a&gt; MongoDB hangs randomly (combined patches)&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 51142d61eeea0a30b2691680663d60c17441afce)&lt;br/&gt;
(cherry picked from commit 77d144dad2f49d78903c98985f61bf9245145e49)&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/ae83ae0fa283efabb93c0fc55bf640cedd4916d7&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/ae83ae0fa283efabb93c0fc55bf640cedd4916d7&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3626668" author="JIRAUSER1258302" created="Sun, 21 Feb 2021 12:21:35 +0000"  >&lt;p&gt;Hello.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Just wanted to know in which version will the fix be live in? Does the &apos;&lt;b&gt;Fix Version&lt;/b&gt;&apos; mean that the fix will be live in MongoDB 5.0?&lt;/p&gt;</comment>
                            <comment id="3626443" author="JIRAUSER1258160" created="Sat, 20 Feb 2021 16:39:32 +0000"  >&lt;p&gt;separate ticket &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-54680&quot; title=&quot;logv2: use mongo::quickExit instead of std::quick_exit&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-54680&quot;&gt;&lt;del&gt;SERVER-54680&lt;/del&gt;&lt;/a&gt; was created to track &lt;tt&gt;quick_exit&lt;/tt&gt; issue, closing present ticket&lt;/p&gt;</comment>
                            <comment id="3626362" author="JIRAUSER1258160" created="Sat, 20 Feb 2021 06:32:29 +0000"  >&lt;p&gt;The patch broke the Mac build due to non-supported &lt;tt&gt;std::quick_exit&lt;/tt&gt;&lt;/p&gt;</comment>
                            <comment id="3625495" author="xgen-internal-githook" created="Fri, 19 Feb 2021 17:45:42 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Sergey Galtsev&apos;, &apos;email&apos;: &apos;sergey.galtsev@mongodb.com&apos;, &apos;username&apos;: &apos;brushless-glitch&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-53852&quot; title=&quot;MongoDB hangs randomly&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-53852&quot;&gt;&lt;del&gt;SERVER-53852&lt;/del&gt;&lt;/a&gt; MongoDB hangs randomly&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/51142d61eeea0a30b2691680663d60c17441afce&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/51142d61eeea0a30b2691680663d60c17441afce&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3613796" author="bruce.lucas@10gen.com" created="Fri, 12 Feb 2021 15:02:32 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=sergey.galtsev&quot; class=&quot;user-hover&quot; rel=&quot;sergey.galtsev&quot;&gt;sergey.galtsev&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mark.benvenuto&quot; class=&quot;user-hover&quot; rel=&quot;mark.benvenuto&quot;&gt;mark.benvenuto&lt;/a&gt;, I think a customer may be unlikely to see a message written to stderr. I wonder if it would be a good idea to write a message to the log file instead or in addition to writing a message to stderr, but without taking a lock. I imagine this might result in a log file that&apos;s not valid json, but that might be better than not recording the error anywhere.&lt;/p&gt;</comment>
                            <comment id="3572594" author="JIRAUSER1257066" created="Tue, 19 Jan 2021 22:55:26 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=ashish%40provakil.com&quot; class=&quot;user-hover&quot; rel=&quot;ashish@provakil.com&quot;&gt;ashish@provakil.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thank you for your detailed description and attaching all of the necessary files! It really helped expedite the investigation.&lt;/p&gt;

&lt;p&gt;We believe that a lock was acquired for logging, and encountered an issue that caused logging to stop. We end up handling the resulting signal and try to recursively log the issue. However, we believe that the logging mechanism attempts to acquire that same lock, causing it to hang.&lt;/p&gt;

&lt;p&gt;I&apos;ll be passing this along to the security team for further investigation.&lt;/p&gt;

&lt;p&gt;Best,&lt;br/&gt;
Edwin&lt;/p&gt;</comment>
                            <comment id="3568802" author="JIRAUSER1258302" created="Sat, 16 Jan 2021 07:59:24 +0000"  >&lt;p&gt;I failed to mention in my initial description that I recently upgraded this cluster from MongoDB 3.6 to MongoDB 4.4 (via 4.0 and 4.2). And the issue has started happening after that only.&lt;/p&gt;

&lt;p&gt;I am running the hidden secondary on a Digital Ocean droplet with 12 vCPUs and 48 GB RAM.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                                                <inwardlinks description="is documented by">
                                        <issuelink>
            <issuekey id="1628677">DOCS-14239</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                        <issuelink>
            <issuekey id="1629035">SERVER-54680</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="296056" name="Screen Shot 2021-01-19 at 2.28.30 PM.png" size="228442" author="edwin.zhou@mongodb.com" created="Tue, 19 Jan 2021 19:28:47 +0000"/>
                            <attachment id="295763" name="gdb_2021-01-16_13-02-39.txt" size="619583" author="ashish@provakil.com" created="Sat, 16 Jan 2021 07:54:53 +0000"/>
                            <attachment id="295761" name="metrics.2021-01-16T01-00-10Z-00000" size="7521931" author="ashish@provakil.com" created="Sat, 16 Jan 2021 07:55:05 +0000"/>
                            <attachment id="295760" name="metrics.interim" size="31489" author="ashish@provakil.com" created="Sat, 16 Jan 2021 07:55:01 +0000"/>
                            <attachment id="295762" name="mongod_500l.log" size="132188" author="ashish@provakil.com" created="Sat, 16 Jan 2021 07:54:54 +0000"/>
                    </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_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="18953"><![CDATA[v4.4]]></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_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[5002K00000uzl9BQAQ]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 19 Jan 2021 19:28:05 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 44 weeks 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_17052" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Downstream Changes Summary</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Bug has been fixed which could cause mongod to hang up when there is a failure to write to log file.</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16942"><![CDATA[Needed]]></customfieldvalue>

                        </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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            2 years, 44 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>ashish@provakil.com</customfieldvalue>
            <customfieldvalue>bruce.lucas@mongodb.com</customfieldvalue>
            <customfieldvalue>edwin.zhou@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>sergey.galtsev@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hypzgv:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="4572">Security 2021-02-08</customfieldvalue>
    <customfieldvalue id="4573">Security 2021-02-22</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;Sorry, but I actually don&apos;t know how to reproduce it. Like I said, it randomly hangs.&lt;/p&gt;</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_17051" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Teams Impacted</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16944"><![CDATA[Docs]]></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>
                                    <customfieldvalue><![CDATA[edwin.zhou@mongodb.com]]></customfieldvalue>
    

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

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