<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:43:08 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-17047] MongoD aborts when running under memory pressure</title>
                <link>https://jira.mongodb.org/browse/SERVER-17047</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Dump file \\eitan6\tmp\eitan8av.dmp&lt;br/&gt;
net use &lt;br class=&quot;atl-forced-newline&quot; /&gt;eitan6 /u:eitan6\administrator Admin01&lt;br/&gt;
eitan6 ip (10.4.109.190)&lt;/p&gt;

&lt;p&gt;The log file indicated Invariant failure(see below)&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2015-01-25T08:07:53.158-0800 I -        [conn17] Invariant failure: ret resulted in status UnknownError -28992: Not enough storage is available to process this command.&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;If I understand correctly the crash happen because WT ONLY reported about the error, however, the evict thread executed before the invariant kicked in and blocked a graceful termination of the Mongod.&lt;/p&gt;


&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;015-01-25T08:07:53.129-0800 E STORAGE  [conn17] WiredTiger (-28992) [1422202073:27909][2072:140723412734768], file:collection-6-8102947714341443838.wt, cursor.next: memory allocation: Not enough storage is available to process this command.&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;000000c0`71ccf950 00007ffc`b9e16a16 ntdll!RtlReportCriticalFailure+0x8c&lt;br/&gt;
000000c0`71ccfa60 00007ffc`b9e17614 ntdll!RtlpHeapHandleError+0x12&lt;br/&gt;
000000c0`71ccfa90 00007ffc`b9dd2b4d ntdll!RtlpLogHeapFailure+0xa4&lt;br/&gt;
000000c0`71ccfac0 00007ff7`bc4a78f0 ntdll!RtlFreeHeap+0x6bfbd&lt;br/&gt;
000000c0`71ccfb60 00007ff7`bc3fc8b1 mongod!free+0x1c &lt;span class=&quot;error&quot;&gt;&amp;#91;f:\dd\vctools\crt\crtw32\heap\free.c @ 51&amp;#93;&lt;/span&gt;&lt;br/&gt;
000000c0`71ccfb90 00007ff7`bc3fc815 mongod!__free_skip_array+0x71 &lt;span class=&quot;error&quot;&gt;&amp;#91;c:\data\mci\shell\src\src\third_party\wiredtiger\src\btree\bt_discard.c @ 356&amp;#93;&lt;/span&gt;&lt;br/&gt;
000000c0`71ccfbe0 00007ff7`bc3fcec4 mongod!__free_page_row_leaf+0x95 &lt;span class=&quot;error&quot;&gt;&amp;#91;c:\data\mci\shell\src\src\third_party\wiredtiger\src\btree\bt_discard.c @ 336&amp;#93;&lt;/span&gt;&lt;br/&gt;
000000c0`71ccfc20 00007ff7`bc409950 mongod!__wt_page_out+0xd4 &lt;span class=&quot;error&quot;&gt;&amp;#91;c:\data\mci\shell\src\src\third_party\wiredtiger\src\btree\bt_discard.c @ 124&amp;#93;&lt;/span&gt;&lt;br/&gt;
000000c0`71ccfc50 00007ff7`bc43312a mongod!__wt_split_multi+0x1b0 &lt;span class=&quot;error&quot;&gt;&amp;#91;c:\data\mci\shell\src\src\third_party\wiredtiger\src\btree\bt_split.c @ 1535&amp;#93;&lt;/span&gt;&lt;br/&gt;
000000c0`71ccfce0 00007ff7`bc4336ef mongod!__evict_page_dirty_update+0x10a &lt;span class=&quot;error&quot;&gt;&amp;#91;c:\data\mci\shell\src\src\third_party\wiredtiger\src\evict\evict_page.c @ 215&amp;#93;&lt;/span&gt;&lt;br/&gt;
000000c0`71ccfd10 00007ff7`bc432d1e mongod!__wt_evict+0x1ff &lt;span class=&quot;error&quot;&gt;&amp;#91;c:\data\mci\shell\src\src\third_party\wiredtiger\src\evict\evict_page.c @ 110&amp;#93;&lt;/span&gt;&lt;br/&gt;
000000c0`71ccfd90 00007ff7`bc431f0a mongod!__wt_evict_lru_page+0xae &lt;span class=&quot;error&quot;&gt;&amp;#91;c:\data\mci\shell\src\src\third_party\wiredtiger\src\evict\evict_lru.c @ 1310&amp;#93;&lt;/span&gt;&lt;br/&gt;
000000c0`71ccfdd0 00007ff7`bc431c0c mongod!__evict_server_work+0x6a &lt;span class=&quot;error&quot;&gt;&amp;#91;c:\data\mci\shell\src\src\third_party\wiredtiger\src\evict\evict_lru.c @ 827&amp;#93;&lt;/span&gt;&lt;br/&gt;
000000c0`71ccfe00 00007ff7`bc431ccc mongod!__evict_pass+0x22c &lt;span class=&quot;error&quot;&gt;&amp;#91;c:\data\mci\shell\src\src\third_party\wiredtiger\src\evict\evict_lru.c @ 495&amp;#93;&lt;/span&gt;&lt;br/&gt;
000000c0`71ccfe60 00007ffc`b90715bd mongod!__evict_server+0x3c &lt;span class=&quot;error&quot;&gt;&amp;#91;c:\data\mci\shell\src\src\third_party\wiredtiger\src\evict\evict_lru.c @ 164&amp;#93;&lt;/span&gt;&lt;br/&gt;
000000c0`71ccfe90 00007ffc`b9d943d1 kernel32!BaseThreadInitThunk+0xd&lt;br/&gt;
000000c0`71ccfec0 00000000`00000000 ntdll!RtlUserThreadStart+0x1d&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&amp;nbsp;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</description>
                <environment></environment>
        <key id="180717">SERVER-17047</key>
            <summary>MongoD aborts when running under memory pressure</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="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="eitan.klein">Eitan Klein</reporter>
                        <labels>
                            <label>28qa</label>
                    </labels>
                <created>Mon, 26 Jan 2015 03:36:42 +0000</created>
                <updated>Tue, 3 Feb 2015 19:41:22 +0000</updated>
                            <resolved>Mon, 26 Jan 2015 18:54:31 +0000</resolved>
                                    <version>3.0.0-rc6</version>
                                                    <component>Storage</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="813371" author="mark.benvenuto" created="Mon, 26 Jan 2015 18:54:12 +0000"  >&lt;p&gt;I am closing this as by design.&lt;/p&gt;

&lt;p&gt;The times in the dump file (i,e the stack in the bug) do not line up with the log file so I cannot say anything about cause/effect. I believe it may be a double free or overwrite, but it will like not repro easily. You would need to trap in the debugger, and use the various !heap commands in inspect it.&lt;/p&gt;

&lt;p&gt;The abort/rude shutdown is expected in this case. When WT returns an unexpected status code (basically any error generally), we raise an &lt;b&gt;invariantWTOK&lt;/b&gt; which aborts the server. This means when WT hits OOM, out of disk space, etc, we shutdown since we do not have special error handling code for the arbitrary OS errors that WT may return.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="62779" name="rs1.txt" size="148618" author="eitan.klein" created="Mon, 26 Jan 2015 04:13:04 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.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, 26 Jan 2015 12:44:26 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        9 years, 3 weeks, 2 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>atul.kachru</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            9 years, 3 weeks, 2 days 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>eitan.klein</customfieldvalue>
            <customfieldvalue>mark.benvenuto@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrldov:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>158728</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_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;Configured Windows 8 on HyperV environment and assign low amount RAM for quick repro&lt;/p&gt;


&lt;p&gt;Environment &lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;2 replica set on windows 8 with 2 G byte of RAM and page file = 0.5 GB&lt;br/&gt;
--replSet EitanRs3 --port 5001 --dbpath c:\data\db1 --wiredTigerCacheSizeGB 1 --storageEngine wiredTiger --logpath &lt;/li&gt;
&lt;/ul&gt;


&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Hammar.mongo insert only profile&lt;br/&gt;
command line  -initdb=false &#8211;server ip:port &#8211;profile=INSERT &#8211;totaltime=52000 &#8211;worker=8&#8211;rps=0&lt;/li&gt;
&lt;/ul&gt;
</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|hsgadj:</customfieldvalue>

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