<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:37:49 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-15369] explicitly zero .ns files on creation</title>
                <link>https://jira.mongodb.org/browse/SERVER-15369</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;div class=&quot;panel&quot; style=&quot;background-color: #EEEEEE;border-color: #ccc;border-width: 1px;&quot;&gt;&lt;div class=&quot;panelHeader&quot; style=&quot;border-bottom-width: 1px;border-bottom-color: #ccc;background-color: #6CB33F;&quot;&gt;&lt;b&gt;Issue Status as of Oct 03, 2014&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;panelContent&quot; style=&quot;background-color: #EEEEEE;&quot;&gt;
&lt;p&gt;&lt;b&gt;ISSUE SUMMARY&lt;/b&gt;&lt;br/&gt;
MongoDB installations on some Linux systems running on VMWare may see corruption in namespace files.&lt;/p&gt;

&lt;p&gt;MongoDB uses namespace (.ns) files to store database and collection metadata, and requires initial zeroing of these .ns files upon creation. A request to the operating system to zero a .ns file may fail to completely zero the file, leaving the previous contents of some disk locations exposed as part of the .ns file. This incomplete zeroing yields a corrupt .ns file, and may affect MongoDB in various ways.&lt;/p&gt;

&lt;p&gt;Only .ns files created on systems running the following configuration are affected by this issue:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;certain 3.x Linux kernels, including Ubuntu 12.x, 14.x, and Fedora 20; and&lt;/li&gt;
	&lt;li&gt;VMWare platform, including VMWare ESXi, Fusion, and Workstation; and&lt;/li&gt;
	&lt;li&gt;virtual SCSI disks managed by LVM&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;See &lt;a href=&quot;https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1371591&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;the bug report on Launchpad&lt;/a&gt; for more information.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;USER IMPACT&lt;/b&gt;&lt;br/&gt;
Symptoms that have been observed include:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;failures of various operations that require enumerating namespaces, such as &lt;tt&gt;db.stats()&lt;/tt&gt;, &lt;tt&gt;db.repairDatabase()&lt;/tt&gt;, &lt;tt&gt;db.dropDatabase()&lt;/tt&gt;, and others&lt;/li&gt;
	&lt;li&gt;operations such as the above that don&#8217;t fail may report nonsense database names&lt;/li&gt;
	&lt;li&gt;failure of &lt;tt&gt;mongod&lt;/tt&gt; to start&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;These failures may be accompanied by logged error messages such as:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;exception: assertion src/mongo/db/catalog/database.cpp:472&lt;/li&gt;
	&lt;li&gt;Assertion failure _name == nsToDatabaseSubstring( ns ) src/mongo/db/catalog/database.cpp 472&lt;/li&gt;
	&lt;li&gt;exception: nsToDatabase: db too long&lt;/li&gt;
	&lt;li&gt;Fatal Assertion 16253&lt;/li&gt;
	&lt;li&gt;ERROR: Uncaught std::exception: basic_string::substr, terminating&lt;/li&gt;
	&lt;li&gt;Error messages like: {&lt;tt&gt;&quot;ok&quot; : 0, &quot;errmsg&quot; : &quot;missing ns: ...&quot;&lt;/tt&gt;}&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Additional symptoms may be possible depending on the exact nature of the left-over data in the .ns file.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;WORKAROUNDS&lt;/b&gt;&lt;br/&gt;
There are no workarounds for affected systems. For new installations using the above setup users may either apply a vendor-supplied patch to their Linux kernel, use IDE/SATA disks instead of SCSI, or avoid the use of LVM.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;AFFECTED VERSIONS&lt;/b&gt;&lt;br/&gt;
MongoDB production releases up to 2.6.4 are affected by this issue.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;FIX VERSION&lt;/b&gt;&lt;br/&gt;
MongoDB versions 2.6.5 and 2.4.12 include a workaround for this issue. This workaround does not fix .ns files that are already corrupted.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;RESOLUTION DETAILS&lt;/b&gt;&lt;br/&gt;
Make &lt;tt&gt;mongod&lt;/tt&gt; manually allocate and zero .ns files. &lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;h6&gt;&lt;a name=&quot;Originaldescription&quot;&gt;&lt;/a&gt;Original description&lt;/h6&gt;

&lt;p&gt;Certain versions of Linux may under some conditions use SCSI WRITE SAME to implement the requirement to zero a file on initial allocation. However, certain platforms do not properly implement WRITE SAME. The result is that the initial zeroing of a file may be unreliable on those platforms, causing potentially fatal corruption in the .ns file, which depends on the initial zeroing of the file to initialize the hash table. As a defensive measure mongod could explicitly zero the .ns files on creation.&lt;/p&gt;</description>
                <environment></environment>
        <key id="159958">SERVER-15369</key>
            <summary>explicitly zero .ns files on creation</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="mathias@mongodb.com">Mathias Stearn</assignee>
                                    <reporter username="bruce.lucas@mongodb.com">Bruce Lucas</reporter>
                        <labels>
                    </labels>
                <created>Wed, 24 Sep 2014 15:23:06 +0000</created>
                <updated>Thu, 15 Oct 2015 07:25:53 +0000</updated>
                            <resolved>Fri, 26 Sep 2014 14:48:42 +0000</resolved>
                                                    <fixVersion>2.4.12</fixVersion>
                    <fixVersion>2.6.5</fixVersion>
                    <fixVersion>2.7.7</fixVersion>
                                    <component>Storage</component>
                                        <votes>0</votes>
                                    <watches>10</watches>
                                                                                                                <comments>
                            <comment id="729984" author="xgen-internal-githook" created="Mon, 29 Sep 2014 21:27:27 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;monkey101&apos;, u&apos;name&apos;: u&apos;Dan Pasette&apos;, u&apos;email&apos;: u&apos;dan@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-15369&quot; title=&quot;explicitly zero .ns files on creation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-15369&quot;&gt;&lt;del&gt;SERVER-15369&lt;/del&gt;&lt;/a&gt;: Clean up partially created .ns files&lt;/p&gt;

&lt;p&gt;    (cherry picked from commit 243f11cd82d7925c77df0b04fad58b18f70cf031)&lt;br/&gt;
Branch: v2.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/e4a5649bb5bed607e0e907ce6f2d08e607dcde12&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/e4a5649bb5bed607e0e907ce6f2d08e607dcde12&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="729363" author="xgen-internal-githook" created="Mon, 29 Sep 2014 14:45:53 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;monkey101&apos;, u&apos;name&apos;: u&apos;Dan Pasette&apos;, u&apos;email&apos;: u&apos;dan@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-15369&quot; title=&quot;explicitly zero .ns files on creation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-15369&quot;&gt;&lt;del&gt;SERVER-15369&lt;/del&gt;&lt;/a&gt;: Clean up partially created .ns files&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 689c0faf75e0cc3f1663b962c3db55360e0ef3b5)&lt;/p&gt;

&lt;p&gt;Conflicts:&lt;br/&gt;
	jstests/dur/diskfull.js&lt;br/&gt;
Branch: v2.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/243f11cd82d7925c77df0b04fad58b18f70cf031&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/243f11cd82d7925c77df0b04fad58b18f70cf031&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="729348" author="xgen-internal-githook" created="Mon, 29 Sep 2014 14:31:01 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;monkey101&apos;, u&apos;name&apos;: u&apos;Dan Pasette&apos;, u&apos;email&apos;: u&apos;dan@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-15369&quot; title=&quot;explicitly zero .ns files on creation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-15369&quot;&gt;&lt;del&gt;SERVER-15369&lt;/del&gt;&lt;/a&gt;: Clean up partially created .ns files&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/689c0faf75e0cc3f1663b962c3db55360e0ef3b5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/689c0faf75e0cc3f1663b962c3db55360e0ef3b5&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="727580" author="xgen-internal-githook" created="Thu, 25 Sep 2014 22:17:22 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;name&apos;: u&apos;Dan Pasette&apos;, u&apos;email&apos;: u&apos;dan@10mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-15369&quot; title=&quot;explicitly zero .ns files on creation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-15369&quot;&gt;&lt;del&gt;SERVER-15369&lt;/del&gt;&lt;/a&gt; Explicitly write zeros when creating ns files&lt;/p&gt;

&lt;p&gt;Backported from commit b39f5ccc3e5c74918c8f2cd46d33c5b6316f4b06&lt;br/&gt;
Branch: v2.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/66bfc5b6fbb64e03cfb80c1c830ac88b1d3ec5ba&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/66bfc5b6fbb64e03cfb80c1c830ac88b1d3ec5ba&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="727492" author="xgen-internal-githook" created="Thu, 25 Sep 2014 21:07:08 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;name&apos;: u&apos;Dan Pasette&apos;, u&apos;email&apos;: u&apos;dan@10mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-15369&quot; title=&quot;explicitly zero .ns files on creation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-15369&quot;&gt;&lt;del&gt;SERVER-15369&lt;/del&gt;&lt;/a&gt; Explicitly write zeros when creating ns files&lt;br/&gt;
(cherry picked from commit 60d379f9e0c3eaf85850e768328d94c49170a7d7)&lt;/p&gt;

&lt;p&gt;Conflicts:&lt;br/&gt;
	src/mongo/db/structure/catalog/namespace_index.cpp&lt;br/&gt;
Branch: v2.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/b39f5ccc3e5c74918c8f2cd46d33c5b6316f4b06&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/b39f5ccc3e5c74918c8f2cd46d33c5b6316f4b06&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="727477" author="xgen-internal-githook" created="Thu, 25 Sep 2014 20:49:37 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;name&apos;: u&apos;Dan Pasette&apos;, u&apos;email&apos;: u&apos;dan@10mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-15369&quot; title=&quot;explicitly zero .ns files on creation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-15369&quot;&gt;&lt;del&gt;SERVER-15369&lt;/del&gt;&lt;/a&gt; Explicitly write zeros when creating ns files&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/60d379f9e0c3eaf85850e768328d94c49170a7d7&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/60d379f9e0c3eaf85850e768328d94c49170a7d7&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                                        </outwardlinks>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="139672">SERVER-14137</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12451" key="com.atlassian.jira.plugin.system.customfieldtypes:multiversion">
                        <customfieldname>Backport Completed</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="14288">2.4.12</customfieldvalue>
    <customfieldvalue id="14192">2.6.5</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>Wed, 24 Sep 2014 22:28:07 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        9 years, 20 weeks, 2 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<s><a href='https://jira.mongodb.org/browse/WRITING-1049'>WRITING-1049</a></s>]]></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>dmitry.ryabtsev@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            9 years, 20 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.0</customfieldvalue>

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

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>139297</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_11861" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>User Summary</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11858"><![CDATA[Completed]]></customfieldvalue>

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

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