<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:24:03 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-10783] MongoDB displays databases even after dropDatabase() has completed successfully</title>
                <link>https://jira.mongodb.org/browse/SERVER-10783</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I have several databases listed:&lt;/p&gt;

&lt;p&gt;&amp;gt; show dbs&lt;br/&gt;
13825aa067	(empty)&lt;br/&gt;
78002fa14d	(empty)&lt;br/&gt;
89da4e1154	(empty)&lt;br/&gt;
bd24985d6a	(empty)&lt;br/&gt;
befd1bcc5e	(empty)&lt;br/&gt;
developer	0.203125GB&lt;br/&gt;
local	0.078125GB&lt;/p&gt;

&lt;p&gt;Except for developer and local, I remove them one by one like this:&lt;/p&gt;

&lt;p&gt;&amp;gt; use befd1bcc5e&lt;br/&gt;
switched to db befd1bcc5e&lt;br/&gt;
&amp;gt; db.dropDatabase()&lt;/p&gt;
{ &quot;dropped&quot; : &quot;befd1bcc5e&quot;, &quot;ok&quot; : 1 }

&lt;p&gt;MongoDB reports something like this:&lt;/p&gt;

&lt;p&gt;Mon Sep 16 08:14:53.085 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn7305&amp;#93;&lt;/span&gt; dropDatabase befd1bcc5e starting&lt;br/&gt;
Mon Sep 16 08:14:53.089 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn7305&amp;#93;&lt;/span&gt; removeJournalFiles&lt;br/&gt;
Mon Sep 16 08:14:53.089 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn7305&amp;#93;&lt;/span&gt; dropDatabase befd1bcc5e finished&lt;/p&gt;

&lt;p&gt;When I display all available databases, they&apos;re still reported:&lt;/p&gt;

&lt;p&gt;&amp;gt; show dbs&lt;br/&gt;
13825aa067	(empty)&lt;br/&gt;
78002fa14d	(empty)&lt;br/&gt;
89da4e1154	(empty)&lt;br/&gt;
bd24985d6a	(empty)&lt;br/&gt;
befd1bcc5e	(empty)&lt;br/&gt;
developer	0.203125GB&lt;br/&gt;
local	0.078125GB&lt;/p&gt;

&lt;p&gt;These UUID-looking databases won&apos;t die.&lt;/p&gt;</description>
                <environment>Mac OS X 10.8/10.9</environment>
        <key id="90051">SERVER-10783</key>
            <summary>MongoDB displays databases even after dropDatabase() has completed successfully</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="5">Cannot Reproduce</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="tito">Tito Ciuro</reporter>
                        <labels>
                    </labels>
                <created>Mon, 16 Sep 2013 15:30:57 +0000</created>
                <updated>Wed, 10 Dec 2014 23:17:58 +0000</updated>
                            <resolved>Wed, 19 Mar 2014 08:35:19 +0000</resolved>
                                    <version>2.4.4</version>
                                                    <component>Admin</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="519037" author="stennie" created="Wed, 19 Mar 2014 08:35:19 +0000"  >&lt;p&gt;Hi Tito,&lt;/p&gt;

&lt;p&gt;Please be advised I&apos;m now closing this issue as we have been unable to reproduce the reported problem.&lt;/p&gt;

&lt;p&gt;If you do have any further information that would help us reproduce this issue (as per the last questions from Dan), please let us know.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Stephen&lt;/p&gt;</comment>
                            <comment id="437897" author="dan@10gen.com" created="Wed, 9 Oct 2013 03:53:37 +0000"  >&lt;p&gt;This could this be a side-effect of using MongoHub?  Can you try without MongoHub in the reproduction?  Querying an empty collection has the effect of caching the database name in the server, even if it&apos;s empty.  You can see this easily by opening two shells, querying an empty collection with one and then running &lt;tt&gt;show dbs&lt;/tt&gt; with the other.  You&apos;ll see that the database is listed even though it&apos;s empty.&lt;/p&gt;</comment>
                            <comment id="433613" author="tito" created="Tue, 1 Oct 2013 02:38:26 +0000"  >&lt;p&gt;This is my setting:&lt;/p&gt;

&lt;p&gt;1) I have mongo running&lt;br/&gt;
2) I also have MongoHub open which helps me diagnose and introspect the databases. (&lt;a href=&quot;https://github.com/fotonauts/MongoHub-Mac&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/fotonauts/MongoHub-Mac&lt;/a&gt;)&lt;br/&gt;
3) My Node.js app at some point I create a db, performs some ops and then drops the database.&lt;br/&gt;
4) The dropped db disappears most of the time, only to re-appear later. I quit MongoHub and relaunch and the database still is there, though without collections or anything else.&lt;br/&gt;
5) Dropping it again makes no difference.&lt;br/&gt;
6) The only way to truly get rid of it is by killing mongo and relaunching it again.&lt;/p&gt;</comment>
                            <comment id="432911" author="dan@10gen.com" created="Mon, 30 Sep 2013 03:05:21 +0000"  >&lt;p&gt;Are you able to provide a precise repro?&lt;/p&gt;</comment>
                            <comment id="432873" author="tito" created="Sun, 29 Sep 2013 23:08:34 +0000"  >&lt;p&gt;Actually, I spoke too soon. I still see this with 2.4.6. I see a lot of &quot;ghost&quot; databases that go away the minute I restart MongoDB. Is there a way to trigger a &quot;cleanup&quot; of some sort?&lt;/p&gt;</comment>
                            <comment id="427702" author="tito" created="Wed, 18 Sep 2013 13:04:30 +0000"  >&lt;p&gt;Hello Dan,&lt;/p&gt;

&lt;p&gt;I have a combination of clients: RoboMongo and MongoHub. These two clients are used to query documents and work in read-only mode. The other client is a Node.js app, which reads and writes data. Please note that the &quot;ghost&quot; databases are created when the unit tests execute and are supposed to be removed on tear down. The configuration is standalone, both client and server running on the same Mac (development phase.)&lt;/p&gt;

&lt;p&gt;FWIW, upgrading to v2.4.6 has solved the issue. I worked exactly the same way and I cannot reproduce this problem.&lt;/p&gt;</comment>
                            <comment id="426687" author="dan@10gen.com" created="Tue, 17 Sep 2013 03:26:22 +0000"  >&lt;p&gt;Couple questions.&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Do you have any clients trying to read from those databases?  If any read is performed on an empty db an in-memory, &quot;phantom&quot; db entry will be created.  It will disappear after a restart.&lt;/li&gt;
	&lt;li&gt;What is your configuration?  Standalone or replica set?&lt;/li&gt;
&lt;/ul&gt;
</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="13655">SERVER-2080</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="14151">SERVER-2329</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>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, 17 Sep 2013 03:26:22 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        9 years, 48 weeks 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>
                            9 years, 48 weeks 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="10021"><![CDATA[OS X]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>dan@mongodb.com</customfieldvalue>
            <customfieldvalue>stephen.steneker@mongodb.com</customfieldvalue>
            <customfieldvalue>tito</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmghz:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>82566</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_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;1) Launch mongo&lt;br/&gt;
2) show dbs&lt;br/&gt;
3) use &amp;lt;database name&amp;gt;&lt;br/&gt;
4) db.dropDatabase()&lt;br/&gt;
5) Go to step #2 to #4 until you have deleted all the ones you want&lt;br/&gt;
6) exit mongo&lt;br/&gt;
7) Launch mongo&lt;/p&gt;

&lt;p&gt;Something really interesting once the shell has opened:&lt;/p&gt;

&lt;p&gt;TurboMonkey:~ tito$ mongo&lt;br/&gt;
MongoDB shell version: 2.4.4&lt;br/&gt;
connecting to: test&lt;br/&gt;
Server has startup warnings: &lt;br/&gt;
Sun Sep 15 22:08:29.401 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; &lt;br/&gt;
Sun Sep 15 22:08:29.401 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; ** WARNING: soft rlimits too low. Number of files is 256, should be at least 1000&lt;br/&gt;
&amp;gt; show dbs&lt;br/&gt;
developer	0.203125GB&lt;br/&gt;
local	0.078125GB&lt;/p&gt;

&lt;p&gt;List all databases again and voil&#224;! They&apos;re back!&lt;/p&gt;

&lt;p&gt;&amp;gt; show dbs&lt;br/&gt;
13825aa067	(empty)&lt;br/&gt;
78002fa14d	(empty)&lt;br/&gt;
89da4e1154	(empty)&lt;br/&gt;
bd24985d6a	(empty)&lt;br/&gt;
befd1bcc5e	(empty)&lt;br/&gt;
developer	0.203125GB&lt;br/&gt;
local	0.078125GB&lt;br/&gt;
&amp;gt; &lt;/p&gt;</customfieldvalue>

                        </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|hspb9j:</customfieldvalue>

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