<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:47:16 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-18313] Commnad &quot;show dbs&quot; does not list all the database</title>
                <link>https://jira.mongodb.org/browse/SERVER-18313</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When user says &quot;use &amp;lt;database_name&amp;gt;&quot;, if database with that name doesn&apos;t exists, mongodb creates the database and switches to it. If database already exists, mongodb only switches to asked database in the command.&lt;/p&gt;

&lt;p&gt;if user doesn&apos;t create any collection or add user to newly created database, mongodb doesn&apos;t show newly created database when &quot;use &amp;lt;databae_name&amp;gt;&quot; command is issued.&lt;/p&gt;</description>
                <environment></environment>
        <key id="201909">SERVER-18313</key>
            <summary>Commnad &quot;show dbs&quot; does not list all the database</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="sam.kleinman">Sam Kleinman</assignee>
                                    <reporter username="dsdave">Darshit</reporter>
                        <labels>
                    </labels>
                <created>Mon, 4 May 2015 19:42:25 +0000</created>
                <updated>Fri, 10 Mar 2023 03:24:31 +0000</updated>
                            <resolved>Wed, 13 May 2015 20:16:49 +0000</resolved>
                                    <version>3.0.2</version>
                                                    <component>Internal Client</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="907736" author="samk" created="Thu, 7 May 2015 16:08:15 +0000"  >&lt;p&gt;Hello, &lt;/p&gt;

&lt;p&gt;After running some tests and poking around in the code, there are a couple of underlying issues here. &lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Databases are created and exist after inserting the first document into a collection in the database. Databases and collections are created implicitly; however, creating a database or collection object in your client does &lt;b&gt;not&lt;/b&gt; create a database or collection. &lt;tt&gt;use &amp;lt;db&amp;gt;&lt;/tt&gt; does not create new database files.&lt;/li&gt;
&lt;/ul&gt;


&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Empty databases are not listed in the output of &lt;tt&gt;show dbs&lt;/tt&gt;. This is partially storage engine dependent. MMAPv1, it&apos;s impossible to have an extant but empty database: you cannot create a database except by inserting data. Even if you later drop that data, there is a small amount of internal overhead that remains. The one exception is that before 3.0, &lt;tt&gt;show dbs&lt;/tt&gt; reported the &lt;tt&gt;admin&lt;/tt&gt; database as &lt;tt&gt;empty&lt;/tt&gt; in some cases, but there were no corresponding. WiredTiger does not report databases that do not have data, other storage engines may have different behavior here.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Given this, I think the behavior that you&apos;re seeing is expected. I&apos;m going to go ahead and close this ticket, but I&apos;ve sent this ticket to our documentation team who will consider the best way to clarify these expectations in the documentation.&lt;/p&gt;

&lt;p&gt;Cheers,&lt;br/&gt;
sam2&lt;/p&gt;</comment>
                            <comment id="904610" author="dsdave" created="Mon, 4 May 2015 19:50:58 +0000"  >&lt;p&gt;There are few mistakes. Corrections are shown below.&lt;/p&gt;

&lt;p&gt;1.) Title: Commnad &quot;show dbs&quot; does not list all the databases.&lt;br/&gt;
2.) Description: When user says &quot;use &amp;lt;database_name&amp;gt;&quot;, if database with that name doesn&apos;t exist, mongodb creates the database and switches to it. If database already exists, mongodb only switches to asked database in the command.&lt;br/&gt;
if user doesn&apos;t create any collection or add user to newly created database, mongodb doesn&apos;t show newly created database when &quot;show dbs&quot; command is issued.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="204085">DOCS-5432</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="72791" name="Capture.PNG" size="7275" author="dsdave" created="Mon, 4 May 2015 19:42:25 +0000"/>
                    </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, 4 May 2015 19:46:52 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        8 years, 40 weeks, 6 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>rachelle.palmer@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            8 years, 40 weeks, 6 days ago
                        </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>dsdave</customfieldvalue>
            <customfieldvalue>sam.kleinman</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrl6uf:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</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;Steps:&lt;br/&gt;
1.) show dbs&lt;br/&gt;
2.) use &amp;lt;database_name&amp;gt; &amp;#8211; &amp;lt;database_name&amp;gt; should not exists, and if it does, it should not have any collections or users associated with it.&lt;br/&gt;
3.) show dbs&lt;/p&gt;

&lt;p&gt;Now, when step 3 is executed, it doesn&apos;t show database created in step 2.&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|hs6fmn:</customfieldvalue>

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