<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:54:25 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-536] Drop collection, restart mongod, create index results in unnecessary creation of data files</title>
                <link>https://jira.mongodb.org/browse/SERVER-536</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Reproduction steps:&lt;/p&gt;

&lt;p&gt;(using the default &apos;test&apos; database)&lt;br/&gt;
1. db.dropDatabase()  &amp;#8211; ensure no data files already present for &apos;test&apos;&lt;br/&gt;
2. db.test.ensureIndex( &lt;/p&gt;
{j:1}
&lt;p&gt; )&lt;br/&gt;
3. db.test.drop()&lt;br/&gt;
4. ls -l mongo data dir and observe that test.0 and test.1 are present (and on subsequent iterations test.2, test.3 etc)&lt;br/&gt;
5. restart mongod&lt;br/&gt;
6. goto 2.&lt;/p&gt;

&lt;p&gt;Each iteration creates an additional test.X datafile even though no data is stored.  Curiously without the restart of mongod the drop &amp;amp; ensureIndex behave as expected and no additional data files are created.&lt;/p&gt;

&lt;p&gt;I have observed this behaviour with 1.3 release and the 2010-01-13 1.3 nightly.&lt;/p&gt;

&lt;p&gt;1.2.1 appears to be ok, only .0 and .1 files are created.&lt;/p&gt;</description>
                <environment>Linux 64 bit (Ubuntu)</environment>
        <key id="11115">SERVER-536</key>
            <summary>Drop collection, restart mongod, create index results in unnecessary creation of data files</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="3">Duplicate</resolution>
                                        <assignee username="aaron">Aaron Staple</assignee>
                                    <reporter username="goosmurf">Yun Huang Yong</reporter>
                        <labels>
                    </labels>
                <created>Wed, 13 Jan 2010 08:09:23 +0000</created>
                <updated>Tue, 29 May 2012 14:53:15 +0000</updated>
                            <resolved>Tue, 19 Jan 2010 20:39:40 +0000</resolved>
                                    <version>1.3.0</version>
                                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="11842" author="goosmurf" created="Tue, 19 Jan 2010 21:35:35 +0000"  >&lt;p&gt;Compiled from master head just now to confirm this problem is resolved.&lt;/p&gt;

&lt;p&gt;thanks!&lt;br/&gt;
yun&lt;/p&gt;</comment>
                            <comment id="11841" author="aaron" created="Tue, 19 Jan 2010 20:39:40 +0000"  >&lt;p&gt;I believe this is a duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-493&quot; title=&quot;replica pairs keep growing&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-493&quot;&gt;&lt;del&gt;SERVER-493&lt;/del&gt;&lt;/a&gt;, which was just fixed.  Please give tonight&apos;s nightly a try if you like.&lt;/p&gt;</comment>
                            <comment id="11838" author="goosmurf" created="Tue, 19 Jan 2010 20:11:35 +0000"  >&lt;p&gt;This was with a clean dbpath.&lt;/p&gt;

&lt;p&gt;For the above log I downloaded mongodb-linux-x86_64-1.3.0 fresh, unpacked into a clean dir and used its own dbpath (../data relative to the bin/ dir).&lt;/p&gt;

&lt;p&gt;Just to add more info - the extra data files are created as a result of the ensureIndex call.  So the key is that the collection is dropped /before/ mongod is restarted, and the ensureIndex is /after/ the restart.&lt;/p&gt;</comment>
                            <comment id="11837" author="goosmurf" created="Tue, 19 Jan 2010 20:06:42 +0000"  >&lt;p&gt;mongod with -vvvvv&lt;/p&gt;</comment>
                            <comment id="11829" author="aaron" created="Tue, 19 Jan 2010 13:41:51 +0000"  >&lt;p&gt;Hi Yun,&lt;/p&gt;

&lt;p&gt;I was unable to reproduce this behavior using the 1.3.0 release on a 64bit ubuntu instance.  (Only the .0 and .1 files were created in my testing.)&lt;/p&gt;

&lt;p&gt;Would it be possible for you to run mongod with the -v option to provide extra debug info and send a log of your runs?  Also, when you started your test, was there some data in the dbpath or was it a clean dbpath?  I am just trying to duplicate the conditions under which this failure occurred.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="10119" name="mongod.log" size="11439" author="goosmurf" created="Tue, 19 Jan 2010 20:06:42 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</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 2010 13:41:51 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            14 years, 5 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_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>aaron</customfieldvalue>
            <customfieldvalue>goosmurf</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hriifb:</customfieldvalue>

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

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

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