<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:13:07 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-6924] In RunTime model, when disk full or disk damaged MongoD crashes</title>
                <link>https://jira.mongodb.org/browse/SERVER-6924</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Test1 the restart when can&apos;t Write data in Disk&lt;/p&gt;

&lt;p&gt;Step1. Write the hook.so for Write and Export to the system&lt;br/&gt;
Step2. Restart the MongoDB&lt;br/&gt;
Result: Mongo DB will terminating, and check the src code  when MongoDB write PID file  failure ,below is the failure code fragment and log of MongoD. attachment you can check&lt;/p&gt;



&lt;p&gt;So the question is  what&apos;s the exception code return when insert data into Disk failure and application call ,and in the runTime model,insert data failure ,what&apos;s result on MongoD&lt;/p&gt;

&lt;p&gt;Test2&lt;/p&gt;

&lt;p&gt;After started mongod and inserting a document to allocate the space, I filled the volume with &quot;cat /dev/zero &amp;gt; /Volume/test/bigfile&quot;.&lt;br/&gt;
I inserted another document and then it crashed.&lt;/p&gt;

&lt;p&gt;Here is the stack trace:&lt;/p&gt;

&lt;p&gt;Mon Sep  3 17:34:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;journal&amp;#93;&lt;/span&gt; LogFile::synchronousAppend failed with 8192 bytes unwritten out of 8192 bytes;  b=0x111000000 errno:28 No space left on device&lt;br/&gt;
Mon Sep  3 17:34:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;journal&amp;#93;&lt;/span&gt;   Fatal Assertion 13515&lt;br/&gt;
0x10037637b 0x1000aeeb5 0x1002319c6 0x100107471 0x1001076e2 0x10023eddb 0x100240090 0x1002426ed 0x1005a7823 0x7fff8e3568bf 0x7fff8e359b75 &lt;br/&gt;
 0   mongod                              0x000000010037637b _ZN5mongo15printStackTraceERSo + 43&lt;br/&gt;
 1   mongod                              0x00000001000aeeb5 _ZN5mongo13fassertFailedEi + 165&lt;br/&gt;
 2   mongod                              0x00000001002319c6 _ZN5mongo7LogFile17synchronousAppendEPKvm + 326&lt;br/&gt;
 3   mongod                              0x0000000100107471 _ZN5mongo3dur7Journal7journalERKNS0_11JSectHeaderERKNS_14AlignedBuilderE + 769&lt;br/&gt;
 4   mongod                              0x00000001001076e2 _ZN5mongo3dur14WRITETOJOURNALENS0_11JSectHeaderERNS_14AlignedBuilderE + 50&lt;br/&gt;
 5   mongod                              0x000000010023eddb _ZN5mongo3dur27groupCommitWithLimitedLocksEv + 411&lt;br/&gt;
 6   mongod                              0x0000000100240090 _ZN5mongo3durL20durThreadGroupCommitEv + 208&lt;br/&gt;
 7   mongod                              0x00000001002426ed _ZN5mongo3dur9durThreadEv + 1117&lt;br/&gt;
 8   mongod                              0x00000001005a7823 thread_proxy + 163&lt;br/&gt;
 9   libsystem_c.dylib                   0x00007fff8e3568bf _pthread_start + 335&lt;br/&gt;
 10  libsystem_c.dylib                   0x00007fff8e359b75 thread_start + 13&lt;br/&gt;
Mon Sep  3 17:34:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;journal&amp;#93;&lt;/span&gt; &lt;/p&gt;

&lt;p&gt;***aborting after fassert() failure&lt;/p&gt;


&lt;p&gt;Mon Sep  3 17:34:42 Got signal: 6 (Abort trap: 6).&lt;/p&gt;

&lt;p&gt;Mon Sep  3 17:34:42 Backtrace:&lt;br/&gt;
0x10037637b 0x100001a6b 0x7fff8e3aacfa 0x17fffffff 0x7fff8e349a7a 0x1000aeef0 0x1002319c6 0x100107471 0x1001076e2 0x10023eddb 0x100240090 0x1002426ed 0x1005a7823 0x7fff8e3568bf 0x7fff8e359b75 &lt;br/&gt;
 0   mongod                              0x000000010037637b _ZN5mongo15printStackTraceERSo + 43&lt;br/&gt;
 1   mongod                              0x0000000100001a6b _ZN5mongo10abruptQuitEi + 987&lt;br/&gt;
 2   libsystem_c.dylib                   0x00007fff8e3aacfa _sigtramp + 26&lt;br/&gt;
 3   ???                                 0x000000017fffffff 0x0 + 6442450943&lt;br/&gt;
 4   libsystem_c.dylib                   0x00007fff8e349a7a abort + 143&lt;br/&gt;
 5   mongod                              0x00000001000aeef0 _ZN5mongo13fassertFailedEi + 224&lt;br/&gt;
 6   mongod                              0x00000001002319c6 _ZN5mongo7LogFile17synchronousAppendEPKvm + 326&lt;br/&gt;
 7   mongod                              0x0000000100107471 _ZN5mongo3dur7Journal7journalERKNS0_11JSectHeaderERKNS_14AlignedBuilderE + 769&lt;br/&gt;
 8   mongod                              0x00000001001076e2 _ZN5mongo3dur14WRITETOJOURNALENS0_11JSectHeaderERNS_14AlignedBuilderE + 50&lt;br/&gt;
 9   mongod                              0x000000010023eddb _ZN5mongo3dur27groupCommitWithLimitedLocksEv + 411&lt;br/&gt;
 10  mongod                              0x0000000100240090 _ZN5mongo3durL20durThreadGroupCommitEv + 208&lt;br/&gt;
 11  mongod                              0x00000001002426ed _ZN5mongo3dur9durThreadEv + 1117&lt;br/&gt;
 12  mongod                              0x00000001005a7823 thread_proxy + 163&lt;br/&gt;
 13  libsystem_c.dylib                   0x00007fff8e3568bf _pthread_start + 335&lt;br/&gt;
 14  libsystem_c.dylib                   0x00007fff8e359b75 thread_start + 13&lt;/p&gt;

&lt;p&gt;db.getLastError(WriteConcern.FSYNC_SAFE)&lt;/p&gt;
</description>
                <environment>&amp;nbsp;Mac OS X Volume (Lion - 10.7.4) on a Mac OS Extended (Journaled).</environment>
        <key id="49249">SERVER-6924</key>
            <summary>In RunTime model, when disk full or disk damaged MongoD crashes</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="milkie@mongodb.com">Eric Milkie</assignee>
                                    <reporter username="xzhan@cisco.com">Xuguang zhan</reporter>
                        <labels>
                            <label>crash</label>
                    </labels>
                <created>Tue, 4 Sep 2012 00:57:13 +0000</created>
                <updated>Thu, 15 Jan 2015 15:28:47 +0000</updated>
                            <resolved>Tue, 4 Sep 2012 15:54:28 +0000</resolved>
                                    <version>2.0.6</version>
                                                    <component>Storage</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="160389" author="xzhan@cisco.com" created="Wed, 5 Sep 2012 00:55:01 +0000"  >&lt;p&gt;Thanks Team, I get the info, and see you have update them to the wiki  &lt;a href=&quot;http://www.mongodb.org/display/DOCS/Excessive+Disk+Space#ExcessiveDiskSpace-Runningoutofdiskspace&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.mongodb.org/display/DOCS/Excessive+Disk+Space#ExcessiveDiskSpace-Runningoutofdiskspace&lt;/a&gt;. but no matter what I think Crush it is not allowed, may be you should think you Design, make it more perfect&lt;/p&gt;</comment>
                            <comment id="160159" author="gianfranco" created="Tue, 4 Sep 2012 15:21:55 +0000"  >&lt;p&gt;Perfect got it now. Thanks Eric&lt;/p&gt;</comment>
                            <comment id="160157" author="milkie" created="Tue, 4 Sep 2012 15:20:48 +0000"  >&lt;p&gt;If you separate the data from the journal (see &lt;a href=&quot;http://www.mongodb.org/display/DOCS/Journaling#Journaling-ThejournalSubdirectory&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.mongodb.org/display/DOCS/Journaling#Journaling-ThejournalSubdirectory&lt;/a&gt; ), then if you fill up the data disk, the server should stay up.  You cannot fill up the journal disk, however, or the server will abort.&lt;/p&gt;</comment>
                            <comment id="160153" author="milkie" created="Tue, 4 Sep 2012 15:18:27 +0000"  >&lt;p&gt;Yes, it&apos;s because you are using journaling (turned on by default).  The journal gets written before the data files.  I changed the documentation on the Wiki to be more helpful.&lt;/p&gt;</comment>
                            <comment id="160150" author="gianfranco" created="Tue, 4 Sep 2012 15:15:30 +0000"  >&lt;p&gt;Actually I did the Test2 on my machine yesterday&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I started mongod and inserted a document to allocate the space, I filled the volume with &quot;cat /dev/zero &amp;gt; /Volume/test/bigfile&quot;.&lt;br/&gt;
And then after inserted another document which made mongod crash.&lt;/p&gt;&lt;/blockquote&gt;</comment>
                            <comment id="160139" author="milkie" created="Tue, 4 Sep 2012 15:04:09 +0000"  >&lt;p&gt;That is correct; the server will keep running if your data disk fills up.  The examples you provided were if the disk was already full when you started the server (lock file can&apos;t be written), and when your journaling disk fills up.  The server cannot stay up if you fill up the disk where your journal lives.  I will add something to the Wiki explaining this.&lt;/p&gt;</comment>
                            <comment id="160088" author="milkie" created="Tue, 4 Sep 2012 13:50:58 +0000"  >&lt;p&gt;The behavior you describe is by design.  If the disk is too full to write the server lock file or the journal, the server must exit.   &lt;br/&gt;
Depending on what stage of the write the disk runs out of space, a client may see a socket disconnect or it may see some other exception returned.  This is the same behavior as any other issue that causes the server process to abort.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="71807">SERVER-9350</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="19566" name="mongoD_log.PNG" size="49943" author="xzhan@cisco.com" created="Tue, 4 Sep 2012 00:57:13 +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_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 4 Sep 2012 13:50:58 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 24 weeks, 1 day 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>ricardo.lorenzo</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            11 years, 24 weeks, 1 day 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="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>milkie@mongodb.com</customfieldvalue>
            <customfieldvalue>gianfranco</customfieldvalue>
            <customfieldvalue>xzhan@cisco.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrnq07:</customfieldvalue>

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

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

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