<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:24:50 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-11080] dropDatabase command failed to drop database from all shards.  </title>
                <link>https://jira.mongodb.org/browse/SERVER-11080</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;We have following configuration of mongodb:(journal enabled)&lt;br/&gt;
On machines-1 have following servers &lt;br/&gt;
       mongod - 5&lt;br/&gt;
       config server - 2&lt;br/&gt;
       mongos -  1 &lt;br/&gt;
On machines-2 have following servers&lt;br/&gt;
       mongod - 5&lt;br/&gt;
       config server - 1&lt;/p&gt;


&lt;p&gt;We ran dropDatabase command from mongos, got below error:&lt;br/&gt;
mongos&amp;gt; db.dropDatabase()&lt;br/&gt;
{&lt;br/&gt;
	&quot;assertion&quot; : &quot;DBClientBase::findN: transport error:  192.168.50.222:20000 query: &lt;/p&gt;
{ dropDatabase: 1 }
&lt;p&gt;&quot;,&lt;br/&gt;
	&quot;assertionCode&quot; : 10276,&lt;br/&gt;
	&quot;errmsg&quot; : &quot;db assertion failure&quot;,&lt;br/&gt;
	&quot;ok&quot; : 0&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;dropDatabase dropped the database only from shard1.&lt;br/&gt;
database was not deleted from shard2 to shard10.&lt;/p&gt;

&lt;p&gt;i again ran dropDatabase command from mongos and get &quot;ok&quot; &lt;br/&gt;
mongos&amp;gt; db.dropDatabase()&lt;/p&gt;
{ &quot;dropped&quot; : &quot;00031013&quot;, &quot;ok&quot; : 1 }

&lt;p&gt;but database was not deleted from shard2 to shard10.&lt;/p&gt;

&lt;p&gt;We got below log in mongos:&lt;br/&gt;
couldn&apos;t find database &lt;span class=&quot;error&quot;&gt;&amp;#91;00031013&amp;#93;&lt;/span&gt; in config db&lt;/p&gt;

&lt;p&gt;I have following questions:&lt;br/&gt;
1. How can we drop the database in above condition:&lt;br/&gt;
2. what does mean by &quot;couldn&apos;t find database &lt;span class=&quot;error&quot;&gt;&amp;#91;00031013&amp;#93;&lt;/span&gt; in config db&quot; ?&lt;br/&gt;
3. Any other way to remove database files apart from dropDatabase?&lt;/p&gt;

&lt;p&gt;please help me to resolve this issue&lt;/p&gt;

&lt;p&gt;T&amp;amp;R,&lt;br/&gt;
JRV&lt;/p&gt;</description>
                <environment>OEL linux</environment>
        <key id="93241">SERVER-11080</key>
            <summary>dropDatabase command failed to drop database from all shards.  </summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="-1">Unassigned</assignee>
                                    <reporter username="jitendra908">jitendra</reporter>
                        <labels>
                            <label>sharding</label>
                    </labels>
                <created>Tue, 8 Oct 2013 15:41:15 +0000</created>
                <updated>Wed, 10 Dec 2014 23:19:18 +0000</updated>
                            <resolved>Wed, 19 Mar 2014 07:58:13 +0000</resolved>
                                    <version>2.4.6</version>
                                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="519025" author="stennie" created="Wed, 19 Mar 2014 07:58:13 +0000"  >&lt;p&gt;Hi JRV,&lt;/p&gt;

&lt;p&gt;Please be advised I&apos;m closing this issue due to inactivity.&lt;/p&gt;

&lt;p&gt;I would also note that the SERVER project is intended for reporting bugs or feature suggestions for the MongoDB server.&lt;/p&gt;

&lt;p&gt;For MongoDB-related support discussion please post on the mongodb-users group (&lt;a href=&quot;http://groups.google.com/group/mongodb-user&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://groups.google.com/group/mongodb-user&lt;/a&gt;) or ask specific questions on Stack Overflow / ServerFault.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Stephen&lt;/p&gt;</comment>
                            <comment id="447442" author="linda.qin@10gen.com" created="Mon, 28 Oct 2013 06:07:57 +0000"  >&lt;p&gt;Hi JRV,&lt;/p&gt;

&lt;p&gt;Following up with you on this subject since we haven&apos;t heard from you in a while. Could you please let us know if you were able to drop the database and do you have any progress to answer the questions in my last comment?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Linda&lt;/p&gt;</comment>
                            <comment id="442076" author="linda.qin@10gen.com" created="Thu, 17 Oct 2013 06:32:51 +0000"  >&lt;p&gt;Hi JRV,&lt;/p&gt;

&lt;p&gt;Please find my comments inline:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;1. How can we drop the database in above condition:&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;To drop the database in the above condition, you can login to the primary of each shard (if it is a replica set for each shard, otherwise just login the mongod server for each shard), and drop that database from each shard.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;2. what does mean by &quot;couldn&apos;t find database [00031013] in config db&quot; ?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;This means the configurations of database [00031013] were already removed from the config database when you retrying deleting this database again.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;3. Any other way to remove database files apart from dropDatabase?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;If it is a sharded cluster, you have to use &lt;tt&gt;dropDatabase&lt;/tt&gt; to drop the db from mongos to cleanup the database configurations for db from config database. &lt;/p&gt;

&lt;p&gt;To help us diagnose why it failed to drop the database from mongos, could you please:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;confirm which shard is running on &lt;tt&gt;192.168.50.222:20000&lt;/tt&gt;?&lt;/li&gt;
	&lt;li&gt;upload a dump of the config database using &lt;a href=&quot;http://docs.mongodb.org/manual/reference/program/mongodump/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;mongodump&lt;/tt&gt;&lt;/a&gt;, and the logs from mongos, shard1 and shard2?&lt;/li&gt;
	&lt;li&gt;confirm how you checked that database was not deleted from shard2 to shard10? Did you login to each shard to check?&lt;/li&gt;
	&lt;li&gt;confirm how you inserted data to &lt;tt&gt;database_1&lt;/tt&gt; and &lt;tt&gt;database_2&lt;/tt&gt;? Did you inserted them from mongos?&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Thanks,&lt;br/&gt;
Linda&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 17 Oct 2013 06:32:51 +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="10020"><![CDATA[Linux]]></customfieldvalue>

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

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>85368</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;Insert 100 GB data to sharding cluster for database_1.&lt;br/&gt;
Now start inserting data to database_2.&lt;br/&gt;
Run dropDatabase command from mongos for database_1 (while insertion is going on database_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|hsp99z:</customfieldvalue>

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