<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:52:52 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-40] Graceful handling of &quot;Disk Full&quot;</title>
                <link>https://jira.mongodb.org/browse/SERVER-40</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When I run out of diskspace I currently see this:&lt;/p&gt;

&lt;p&gt;Sat May  9 13:12:52 allocating new datafile /ram/mongo_1/test.5, filling with zeroes...&lt;br/&gt;
Sat May  9 13:12:55 Assertion: write failed&lt;br/&gt;
Sat May  9 13:12:55  Got signal: 11 (Segmentation fault).&lt;br/&gt;
Sat May  9 13:12:55  Last op: { opid: 227, active: 0, op: &quot;update&quot;, ns: &quot;test.data&quot;, query: &quot;&lt;/p&gt;
{ _id: 207 }
&lt;p&gt;&quot;, inLock: 0 }&lt;br/&gt;
Sat May  9 13:12:55  Backtrace:&lt;br/&gt;
0x52545f 0x2b5d4f13294d 0x2b5d4f12ffab 0x2b5d4f1334e0 0x2b5d4f12febe 0x2b5d4e4b9d00 0x2b5d4fc8e400 0x2b5d4e65312a 0x4e6662 0x418c06 0x529f9c 0x2b5d4e7cdcac 0x2b5d4e4b30fa 0x2b5d4fcd966e &lt;br/&gt;
 mongod(_ZN5mongo10abruptQuitEi+0x7af) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x52545f&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /opt/m1/sys/jdk/jre/lib/amd64/server/libjvm.so &lt;span class=&quot;error&quot;&gt;&amp;#91;0x2b5d4f13294d&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /opt/m1/sys/jdk/jre/lib/amd64/server/libjvm.so &lt;span class=&quot;error&quot;&gt;&amp;#91;0x2b5d4f12ffab&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /opt/m1/sys/jdk/jre/lib/amd64/server/libjvm.so(JVM_handle_linux_signal+0x170) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x2b5d4f1334e0&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /opt/m1/sys/jdk/jre/lib/amd64/server/libjvm.so &lt;span class=&quot;error&quot;&gt;&amp;#91;0x2b5d4f12febe&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/libpthread.so.0 &lt;span class=&quot;error&quot;&gt;&amp;#91;0x2b5d4e4b9d00&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/libc.so.6(strlen+0x10) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x2b5d4fc8e400&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.1/libstdc++.so.6(_ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc+0x5a) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x2b5d4e65312a&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongod &lt;span class=&quot;error&quot;&gt;&amp;#91;0x4e6662&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongod &lt;span class=&quot;error&quot;&gt;&amp;#91;0x418c06&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongod &lt;span class=&quot;error&quot;&gt;&amp;#91;0x529f9c&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/lib/libboost_thread-mt.so(thread_proxy+0x6c) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x2b5d4e7cdcac&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/libpthread.so.0 &lt;span class=&quot;error&quot;&gt;&amp;#91;0x2b5d4e4b30fa&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/libc.so.6(__clone+0x6e) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x2b5d4fcd966e&amp;#93;&lt;/span&gt;&lt;br/&gt;
Sat May  9 13:12:55  dbexit: &lt;br/&gt;
Sat May  9 13:12:55 MessagingPort recv() error 9 127.0.0.1:52142&lt;br/&gt;
Sat May  9 13:12:55 end connection 127.0.0.1:52142&lt;br/&gt;
Sat May  9 13:12:55 connection accepted from 127.0.0.1:53934&lt;br/&gt;
Sat May  9 13:12:55 Listener on port 5001 aborted&lt;/p&gt;


&lt;p&gt;Further observations:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;The mongod process keeps running&lt;/li&gt;
	&lt;li&gt;All active connections appear to be deadlocked (not timing out)&lt;/li&gt;
	&lt;li&gt;SIGTERM triggers this msg: &quot;got kill or ctrl c signal 2 (Interrupt), will terminate after current cmd ends&quot;&lt;/li&gt;
&lt;/ul&gt;



&lt;p&gt;This doesn&apos;t feel right.&lt;br/&gt;
&quot;Disk full&quot; is a corner case but a critical one. It can and does happen in production.&lt;/p&gt;

&lt;p&gt;Questions:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;What happens to operations that were in flight when the &quot;disk full&quot; happened?&lt;/li&gt;
	&lt;li&gt;What is our on-disk state, are we corrupted now?&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Wishes:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Disk-Full should be handled gracefully. Db corruption must be avoided. mongod should shutdown cleanly.&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="10121">SERVER-40</key>
            <summary>Graceful handling of &quot;Disk Full&quot;</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="aaron">Aaron Staple</assignee>
                                    <reporter username="raz">Jim Jones</reporter>
                        <labels>
                    </labels>
                <created>Sat, 9 May 2009 07:22:43 +0000</created>
                <updated>Tue, 12 Jul 2016 00:30:24 +0000</updated>
                            <resolved>Tue, 12 May 2009 13:41:34 +0000</resolved>
                                                    <fixVersion>0.9.3</fixVersion>
                                    <component>Stability</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="10075" author="aaron" created="Tue, 12 May 2009 13:41:34 +0000"  >&lt;p&gt;Ok, now when we run out of disk space we just exit cleanly.  Tested in diskfull.js.&lt;/p&gt;</comment>
                            <comment id="10073" author="aaron" created="Mon, 11 May 2009 11:27:49 +0000"  >&lt;p&gt;I&apos;ve worked on fixing this a couple of times already.  I&apos;d like to write a test for running out of disk space, but I think it would be difficult to make that portable.  Can I just do a single platform test ( osx or linux &amp;#8211; I&apos;ll choose whichever os makes this easiest unless there&apos;s a preference).&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 11 May 2009 11:27:49 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        14 years, 41 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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            14 years, 41 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>aaron</customfieldvalue>
            <customfieldvalue>raz</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpylb:</customfieldvalue>

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

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

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