<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:17:40 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-8521] Lazily clean up temp collections</title>
                <link>https://jira.mongodb.org/browse/SERVER-8521</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Cease opening all dbs at startup &amp;#8211; this pushes the fd count past 1024 and breaks things when we try to use select() on sockets.&lt;/p&gt;

&lt;p&gt;Instead, do the temp cleanup lazily at Database open time.&lt;/p&gt;</description>
                <environment></environment>
        <key id="64964">SERVER-8521</key>
            <summary>Lazily clean up temp collections</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="eliot">Eliot Horowitz</assignee>
                                    <reporter username="milkie@mongodb.com">Eric Milkie</reporter>
                        <labels>
                    </labels>
                <created>Tue, 12 Feb 2013 15:13:57 +0000</created>
                <updated>Mon, 11 Jul 2016 17:57:22 +0000</updated>
                            <resolved>Thu, 14 Feb 2013 15:22:04 +0000</resolved>
                                    <version>2.4.0-rc0</version>
                                    <fixVersion>2.4.0-rc1</fixVersion>
                                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="268196" author="alvin" created="Sat, 16 Feb 2013 23:11:36 +0000"  >&lt;p&gt;Tested successfully on OS-X with git version: 1bd8b84c64214356f482fa3164d88e664f585243&lt;/p&gt;</comment>
                            <comment id="268187" author="alvin" created="Sat, 16 Feb 2013 22:51:56 +0000"  >&lt;p&gt;Just checked the latest open-vmtools source 9.2.2 and its says the same thing&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://sourceforge.net/projects/open-vm-tools/files/open-vm-tools/stable-9.2.x/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://sourceforge.net/projects/open-vm-tools/files/open-vm-tools/stable-9.2.x/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Ok, that eliminate the HGFS from the equation, will re-test on vanilla disks.&lt;/p&gt;</comment>
                            <comment id="268103" author="milkie" created="Sat, 16 Feb 2013 20:16:28 +0000"  >&lt;p&gt;Weird, that code says it does nothing and just returns &quot;success&quot;!  Not the behavior we&apos;re seeing here.&lt;/p&gt;</comment>
                            <comment id="268078" author="alvin" created="Sat, 16 Feb 2013 19:09:02 +0000"  >&lt;p&gt;Certainly the VMWare Tool 4.x circa 2006 explicitly states no support for fsync, see here&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.ieo.es/ftp/software/open-vm-tools-4.0.0-162945/modules/linux/vmhgfs/file.c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.ieo.es/ftp/software/open-vm-tools-4.0.0-162945/modules/linux/vmhgfs/file.c&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I&apos;ll see if I can find any later changes that would &lt;b&gt;include&lt;/b&gt; support.&lt;/p&gt;</comment>
                            <comment id="268033" author="milkie" created="Sat, 16 Feb 2013 17:28:00 +0000"  >&lt;p&gt;I&apos;m going to file a separate ticket to clean up this error message regarding fsync. I&apos;ve seen other users run into this issue and the logging could be clearer in this situation.&lt;/p&gt;</comment>
                            <comment id="268011" author="milkie" created="Sat, 16 Feb 2013 16:32:24 +0000"  >&lt;p&gt;I don&apos;t think you can call fsync on an HGFS (shared VMWare) mount?  It might not be supported.  Was this working before using that mounted device as a data directory?  Did you upgrade VMWare in the interim?&lt;/p&gt;</comment>
                            <comment id="267981" author="alvin" created="Sat, 16 Feb 2013 15:14:54 +0000"  >&lt;p&gt;Sorry, full stack is here (cut &amp;amp; paste problem)&lt;/p&gt;


&lt;p&gt;Sat Feb 16 07:04:41.093 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; MongoDB starting : pid=2518 port=27017 dbpath=/mnt/hgfs/data/db/bug/ 64-bit host=alvin-ubuntu910-server64&lt;br/&gt;
Sat Feb 16 07:04:41.093 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; db version v2.4.0-rc1-pre-, pdfile version 4.5&lt;br/&gt;
Sat Feb 16 07:04:41.093 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; git version: b73eb512ad5429bce3e796e53eaeb56a70e0140a&lt;br/&gt;
Sat Feb 16 07:04:41.093 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; build info: Linux ip-10-2-29-40 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_49&lt;br/&gt;
Sat Feb 16 07:04:41.093 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; allocator: tcmalloc&lt;br/&gt;
Sat Feb 16 07:04:41.093 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; options: &lt;/p&gt;
{ dbpath: &quot;/mnt/hgfs/data/db/bug/&quot;, logpath: &quot;/mnt/hgfs/data/db/bug/server.log&quot;, noprealloc: true, smallfiles: true }
&lt;p&gt;Sat Feb 16 07:04:41.098 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; Assertion: 13651:Couldn&apos;t fsync directory &apos;/mnt/hgfs/data/db/bug&apos;: errno:22 Invalid argument&lt;br/&gt;
0xdc1be1 0xd832ab 0xd837ec 0x9211a3 0x9e5d51 0x6d3309 0x6d3b9d 0x6da46d 0x6dc1d9 0x7f95e65ddabd 0x6cc9c9 &lt;br/&gt;
 ./mongod(_ZN5mongo15printStackTraceERSo+0x21) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xdc1be1&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod(_ZN5mongo11msgassertedEiPKc+0x9b) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xd832ab&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod &lt;span class=&quot;error&quot;&gt;&amp;#91;0xd837ec&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod(_ZN5mongo16flushMyDirectoryERKN5boost11filesystem34pathE+0x293) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x9211a3&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod(_ZN5mongo15acquirePathLockEb+0x1d1) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x9e5d51&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod(_ZN5mongo14_initAndListenEi+0x389) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6d3309&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod(_ZN5mongo13initAndListenEi+0x1d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6d3b9d&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6da46d&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod(main+0x9) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6dc1d9&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/libc.so.6(__libc_start_main+0xfd) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f95e65ddabd&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongod(__gxx_personality_v0+0x499) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6cc9c9&amp;#93;&lt;/span&gt;&lt;br/&gt;
Sat Feb 16 07:04:41.102 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; exception in initAndListen: 13651 Couldn&apos;t fsync directory &apos;/mnt/hgfs/data/db/bug&apos;: errno:22 Invalid argument, terminating&lt;br/&gt;
Sat Feb 16 07:04:41.102 dbexit: &lt;br/&gt;
Sat Feb 16 07:04:41.102 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; shutdown: going to close listening sockets...&lt;/p&gt;</comment>
                            <comment id="267977" author="eliot" created="Sat, 16 Feb 2013 15:08:57 +0000"  >&lt;p&gt;Can you post stack + git version?&lt;br/&gt;
Its almost impossible for it to be this.&lt;/p&gt;</comment>
                            <comment id="267974" author="alvin" created="Sat, 16 Feb 2013 15:07:42 +0000"  >&lt;p&gt;reduces to &amp;lt; 1024 files, same stack trace.&lt;/p&gt;</comment>
                            <comment id="267951" author="alvin" created="Sat, 16 Feb 2013 14:09:56 +0000"  >&lt;p&gt;OS-X version not availbale (yet) to re-tried on Linux, but got the following on startup&lt;/p&gt;

&lt;p&gt;Sat Feb 16 06:07:21.065 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; MongoDB starting : pid=2063 port=27017 dbpath=/mnt/hgfs/data/db/bug 64-bit host=alvin-ubuntu910-server64&lt;br/&gt;
Sat Feb 16 06:07:21.065 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; db version v2.4.0-rc1-pre-, pdfile version 4.5&lt;br/&gt;
Sat Feb 16 06:07:21.065 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; git version: b73eb512ad5429bce3e796e53eaeb56a70e0140a&lt;br/&gt;
Sat Feb 16 06:07:21.065 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; build info: Linux ip-10-2-29-40 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_49&lt;br/&gt;
Sat Feb 16 06:07:21.065 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; allocator: tcmalloc&lt;br/&gt;
Sat Feb 16 06:07:21.065 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; options: &lt;/p&gt;
{ dbpath: &quot;/mnt/hgfs/data/db/bug&quot;, logpath: &quot;/mnt/hgfs/data/db/bug/server.log&quot;, noprealloc: true, smallfiles: true }
&lt;p&gt;Sat Feb 16 06:07:21.069 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; Assertion: 13651:Couldn&apos;t fsync directory &apos;/mnt/hgfs/data/db/bug&apos;: errno:22 Invalid argument&lt;br/&gt;
0xdc1be1 0xd832ab 0xd837ec 0x9211a3 0x9e5d51 0x6d3309 0x6d3b9d 0x6da46d 0x6dc1d9 0x7f84fec35abd 0x6cc9c9 &lt;/p&gt;

&lt;p&gt;That directory path and permission are all fine. Checking setup.&lt;/p&gt;</comment>
                            <comment id="267193" author="alvin" created="Fri, 15 Feb 2013 16:15:15 +0000"  >&lt;p&gt;Downloads page still has 2013-02-12 build. Waiting for a build with at least git commit 2d71e6ab2d42c3c1cc31d42e579dec8041f6cca4 on OS-X.&lt;/p&gt;</comment>
                            <comment id="266187" author="auto" created="Thu, 14 Feb 2013 15:21:55 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-02-12T23:56:35Z&apos;, u&apos;name&apos;: u&apos;Eliot Horowitz&apos;, u&apos;email&apos;: u&apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8521&quot; title=&quot;Lazily clean up temp collections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8521&quot;&gt;&lt;del&gt;SERVER-8521&lt;/del&gt;&lt;/a&gt;: clear temp collections when a database is opened, not server startup&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/f62bc8177b52420e7dc4d0086b6902ccd188f725&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/f62bc8177b52420e7dc4d0086b6902ccd188f725&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="266186" author="auto" created="Thu, 14 Feb 2013 15:21:53 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-02-12T17:16:35Z&apos;, u&apos;name&apos;: u&apos;Eliot Horowitz&apos;, u&apos;email&apos;: u&apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8521&quot; title=&quot;Lazily clean up temp collections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8521&quot;&gt;&lt;del&gt;SERVER-8521&lt;/del&gt;&lt;/a&gt;: remove Database::_openAllFiles&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/93b0ecaf65b24109717981cc32be3fe153d33e2e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/93b0ecaf65b24109717981cc32be3fe153d33e2e&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="64901">SERVER-8515</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="65533">SERVER-8600</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>13.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 12 Feb 2013 15:42:42 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            11 years, 4 days 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>alvin</customfieldvalue>
            <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>milkie@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrn78n:</customfieldvalue>

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

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

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