<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:44:17 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-17397] Dropping a Database or Collection in a Sharded Cluster may not fully succeed</title>
                <link>https://jira.mongodb.org/browse/SERVER-17397</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;div class=&quot;panel&quot; style=&quot;background-color: #eeeeee;border-color: #cccccc;border-width: 1px;&quot;&gt;&lt;div class=&quot;panelHeader&quot; style=&quot;border-bottom-width: 1px;border-bottom-color: #cccccc;background-color: #6cb33f;&quot;&gt;&lt;b&gt;Issue Status as of Sep 18, 2020&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;panelContent&quot; style=&quot;background-color: #eeeeee;&quot;&gt;
&lt;p&gt;&lt;b&gt;ISSUE SUMMARY&lt;/b&gt;&lt;br/&gt;
 When dropping a database / collection in a sharded cluster, even if the drop is reported as successful it is possible the database / collection may still be present in some nodes in the cluster. In MongoDB 4.2 and later, rerunning the drop command should clean up the data. In MongoDB 4.0 and earlier, we do not recommend that users drop a database or collection and then attempt to reuse the namespace.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;USER IMPACT&lt;/b&gt;&lt;br/&gt;
 When the database/collection is not successfully dropped in a given node, the corresponding files continue to use disk space in that node. Attempting to reuse the namespace may lead to undefined behavior.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;WORKAROUNDS&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;To work around this issue one can follow the steps below to drop a database/collection in a sharded environment.&lt;/p&gt;

&lt;p&gt;MongoDB 4.4:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Drop the database / collection using a &lt;tt&gt;mongos&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;Rerun the drop command using a &lt;tt&gt;mongos&lt;/tt&gt;&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;MongoDB 4.2:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Drop the database / collection using a &lt;tt&gt;mongos&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;Rerun the drop command using a &lt;tt&gt;mongos&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;Connect to each &lt;tt&gt;mongos&lt;/tt&gt; and run &lt;a href=&quot;http://docs.mongodb.org/manual/reference/command/flushRouterConfig/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;flushRouterConfig&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;MongoDB 4.0 and earlier:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Drop the database / collection using a &lt;tt&gt;mongos&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;Connect to each shard&apos;s primary and verify the namespace has been dropped. If it has not, please drop it. Dropping a database (e.g &lt;tt&gt;db.dropDatabase()&lt;/tt&gt;) removes the data files on disk for the database being dropped.&lt;/li&gt;
	&lt;li&gt;Connect to a &lt;tt&gt;mongos&lt;/tt&gt;, switch to the &lt;tt&gt;config&lt;/tt&gt; database and remove any reference to the removed namespace from the collections &lt;tt&gt;chunks&lt;/tt&gt;, &lt;tt&gt;locks&lt;/tt&gt;, &lt;tt&gt;databases&lt;/tt&gt; and &lt;tt&gt;collections&lt;/tt&gt;:
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;thead&gt;
			&lt;tr id=&quot;syntaxplugin_title&quot;&gt;
			&lt;td bgcolor=&quot;#f5f5f5&quot; style=&quot;font-family: Arial,sans-serif; color: #333; border-bottom: 1px solid #bbb; background-color: #f5f5f5 !important; font-weight: bold; line-height: 1em;&quot; &gt;
				&lt;p style=&quot;margin: 5px 10px; padding: 0;&quot;&gt;When dropping a database:&lt;/p&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/thead&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;use config&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.collections.remove( { _id: /^DATABASE\./ }, {writeConcern: {w: &apos;majority&apos; }} )&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.databases.remove( { _id: &quot;DATABASE&quot; }, {writeConcern: {w: &apos;majority&apos; }} )&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.chunks.remove( { ns: /^DATABASE\./ }, {writeConcern: {w: &apos;majority&apos; }} )&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.tags.remove( { ns: /^DATABASE\./ }, {writeConcern: {w: &apos;majority&apos; }} )&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.locks.remove( { _id: /^DATABASE\./ }, {writeConcern: {w: &apos;majority&apos; }} )&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;thead&gt;
			&lt;tr id=&quot;syntaxplugin_title&quot;&gt;
			&lt;td bgcolor=&quot;#f5f5f5&quot; style=&quot;font-family: Arial,sans-serif; color: #333; border-bottom: 1px solid #bbb; background-color: #f5f5f5 !important; font-weight: bold; line-height: 1em;&quot; &gt;
				&lt;p style=&quot;margin: 5px 10px; padding: 0;&quot;&gt;When dropping a collection:&lt;/p&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/thead&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;use config&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.collections.remove( { _id: &quot;DATABASE.COLLECTION&quot; }, {writeConcern: {w: &apos;majority&apos; }} )&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.chunks.remove( { ns: &quot;DATABASE.COLLECTION&quot; }, {writeConcern: {w: &apos;majority&apos; }} )&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.tags.remove( { ns: &quot;DATABASE.COLLECTION&quot; }, {writeConcern: {w: &apos;majority&apos; }} )&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.locks.remove( { _id: &quot;DATABASE.COLLECTION&quot; }, {writeConcern: {w: &apos;majority&apos; }} )&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;&lt;/li&gt;
	&lt;li&gt;Connect to the primary of each shard, remove any reference to the removed namespace from the collections &lt;tt&gt;cache.databases&lt;/tt&gt;, &lt;tt&gt;cache.collections&lt;/tt&gt; and &lt;tt&gt;cache.chunks.DATABASE.COLLECTION&lt;/tt&gt;:
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;thead&gt;
			&lt;tr id=&quot;syntaxplugin_title&quot;&gt;
			&lt;td bgcolor=&quot;#f5f5f5&quot; style=&quot;font-family: Arial,sans-serif; color: #333; border-bottom: 1px solid #bbb; background-color: #f5f5f5 !important; font-weight: bold; line-height: 1em;&quot; &gt;
				&lt;p style=&quot;margin: 5px 10px; padding: 0;&quot;&gt;When dropping a database:&lt;/p&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/thead&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.getSiblingDB(&quot;config&quot;).cache.databases.remove({_id:&quot;DATABASE&quot;}, {writeConcern: {w: &apos;majority&apos; }});&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.getSiblingDB(&quot;config&quot;).cache.collections.remove({_id:/^DATABASE.*/}, {writeConcern: {w: &apos;majority&apos; }});&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.getSiblingDB(&quot;config&quot;).getCollectionNames().forEach(function(y) {&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;			if(y.indexOf(&quot;cache.chunks.DATABASE.&quot;) == 0)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;				db.getSiblingDB(&quot;config&quot;).getCollection(y).drop()&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;	})&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;thead&gt;
			&lt;tr id=&quot;syntaxplugin_title&quot;&gt;
			&lt;td bgcolor=&quot;#f5f5f5&quot; style=&quot;font-family: Arial,sans-serif; color: #333; border-bottom: 1px solid #bbb; background-color: #f5f5f5 !important; font-weight: bold; line-height: 1em;&quot; &gt;
				&lt;p style=&quot;margin: 5px 10px; padding: 0;&quot;&gt;When dropping a collection:&lt;/p&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/thead&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.getSiblingDB(&quot;config&quot;).cache.collections.remove({_id:&quot;DATABASE.COLLECTION&quot;}, {writeConcern: {w: &apos;majority&apos; }});&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;db.getSiblingDB(&quot;config&quot;).getCollection(&quot;cache.chunks.DATABASE.COLLECTION&quot;).drop()&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;&lt;/li&gt;
	&lt;li&gt;Connect to each &lt;tt&gt;mongos&lt;/tt&gt; and run &lt;a href=&quot;http://docs.mongodb.org/manual/reference/command/flushRouterConfig/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;flushRouterConfig&lt;/a&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
        <key id="186484">SERVER-17397</key>
            <summary>Dropping a Database or Collection in a Sharded Cluster may not fully succeed</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="backlog-server-sharding-emea">[DO NOT USE] Backlog - Sharding EMEA</assignee>
                                    <reporter username="peter.garafano@mongodb.com">Peter Garafano</reporter>
                        <labels>
                            <label>ShardingAutomationSupport</label>
                            <label>stop-orphaning-fallout</label>
                    </labels>
                <created>Thu, 26 Feb 2015 20:39:25 +0000</created>
                <updated>Wed, 25 Oct 2023 15:33:56 +0000</updated>
                            <resolved>Fri, 9 Jul 2021 10:29:27 +0000</resolved>
                                    <version>3.0.16</version>
                    <version>3.4.18</version>
                    <version>3.6.9</version>
                    <version>4.0.5</version>
                                    <fixVersion>5.0.0</fixVersion>
                                    <component>Sharding</component>
                                        <votes>56</votes>
                                    <watches>111</watches>
                                                                                                                <comments>
                            <comment id="3924930" author="tommaso.tocci" created="Fri, 9 Jul 2021 10:29:28 +0000"  >&lt;p&gt;As part of a project to start using reliable coordinators for sharded DDL we made both drop database and collection operations resilient to crashes, stepdowns and network partitions.&lt;/p&gt;

&lt;p&gt;The new implementation guarantees that if a drop database/collection operation returns successfully to the client, all the data and metadata associated with that db/collection have been correctly deleted and the namespace could be safely reused immediately. In other words if a drop database/collection operation starts deleting any data it will eventually delete all the data and leave the cluster in a consistent state.&lt;/p&gt;</comment>
                            <comment id="3021821" author="xgen-internal-githook" created="Wed, 1 Apr 2020 19:59:20 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Oleg Pudeyev&apos;, &apos;email&apos;: &apos;39304720+p-mongo@users.noreply.github.com&apos;, &apos;username&apos;: &apos;p-mongo&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/RUBY-2149&quot; title=&quot;Do not repeatedly resume if getMore receives the same error&quot; class=&quot;issue-link&quot; data-issue-key=&quot;RUBY-2149&quot;&gt;&lt;del&gt;RUBY-2149&lt;/del&gt;&lt;/a&gt; unify change stream and crud spec runners (#1839)&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;make collection2 and database2 optional&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;parse expectations for change streams as extended json&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;unify change stream and crud operations&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;rename fail point to fail point command to match the crud test&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;rename ops to operations for consistency with crud runner&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;extract description and expectations as common attributes for crud and change stream tests&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;add trailing comma&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;move change stream runner code into spec and test files to match the defined classes&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;create a change stream outcome class to handle label matching&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;use crud verifier to check documents in change stream test for equality&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;add removedFields to the expected result to match the actual result&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;needed since we are now doing strict comparisons&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;move code in crud and transaction tests to resemble each other more&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;sync spec test for extended json changes&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;work around &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-17397&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-17397&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Co-authored-by: Oleg Pudeyev &amp;lt;oleg@bsdpower.com&amp;gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-ruby-driver/commit/bbbcd99e0e779990ff4e6df8989628f2351170c7&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-ruby-driver/commit/bbbcd99e0e779990ff4e6df8989628f2351170c7&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2601827" author="sheeri.cabral" created="Thu, 12 Dec 2019 15:53:36 +0000"  >&lt;p&gt;Note: there has been work done so that in 4.2 all that is needed is to re-drop the database and flushRouterConfig on all the mongos. In 4.4, all that is needed is to re-drop the database.&lt;/p&gt;

&lt;p&gt;This issue remains open as we decide if backporting to versions 4.0 and earlier is possible. There is a workaround for versions 4.0 and earlier, so those who are on 4.0 and below can recover if needed.&lt;/p&gt;</comment>
                            <comment id="1775053" author="kaloian.manassiev" created="Tue, 16 Jan 2018 15:24:22 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=mishra.rajat91%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;mishra.rajat91@gmail.com&quot;&gt;mishra.rajat91@gmail.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thank you for your question. Unfortunately, as it stands now, the zones (tags) will be left around after a collection drop. I have filed &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-32716&quot; title=&quot;Dropping sharded database or collection leaves orphaned zone documents&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-32716&quot;&gt;&lt;del&gt;SERVER-32716&lt;/del&gt;&lt;/a&gt; to track this bug.&lt;/p&gt;

&lt;p&gt;You are correct that the workaround steps should include a &lt;tt&gt;db.tags.remove({ns: &apos;DATABASE.COLLECTION&apos;})&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;I am going to update the workaround steps above. In the mean time feel free to monitor &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-32716&quot; title=&quot;Dropping sharded database or collection leaves orphaned zone documents&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-32716&quot;&gt;&lt;del&gt;SERVER-32716&lt;/del&gt;&lt;/a&gt; for when the fix makes it into the product and which version.&lt;/p&gt;

&lt;p&gt;Best regards,&lt;br/&gt;
-Kal.&lt;/p&gt;</comment>
                            <comment id="1774162" author="mishra.rajat91@gmail.com" created="Mon, 15 Jan 2018 09:01:51 +0000"  >&lt;p&gt;We have implemented a tag aware sharding and created tags for each shard. In the steps given for workaround,  do we also also need to remove the documents from tags collection present in config database. &lt;/p&gt;</comment>
                            <comment id="1569132" author="schwerin" created="Thu, 11 May 2017 17:33:38 +0000"  >&lt;p&gt;Direct work on this problem is not scheduled at present, but enabling work on the shard and distributed catalogs is taking place during 3.6 development.&lt;/p&gt;</comment>
                            <comment id="1567550" author="evilchill" created="Tue, 9 May 2017 08:02:41 +0000"  >&lt;p&gt;What are the plans in terms of resolving this issue?  Is work being scheduled on this?&lt;/p&gt;</comment>
                            <comment id="1533273" author="thomas.schubert" created="Mon, 27 Mar 2017 15:37:06 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=gauravps&quot; class=&quot;user-hover&quot; rel=&quot;gauravps&quot;&gt;gauravps&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;It is not possible for issue described by this ticket to affect non-sharded clusters. Please open a new SERVER ticket and supply additional details about this behavior (MongoDB Version, storage engine, how you observe that the database has not been deleted), and we will be happy to investigate.&lt;/p&gt;

&lt;p&gt;Thank you,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                            <comment id="1532679" author="gauravps" created="Fri, 24 Mar 2017 23:33:25 +0000"  >&lt;p&gt;@ramon.fernandez, is there any chance this might be affecting replicated setups? We have a cluster of three mongod nodes with one of them set to master. ~ once in 24 hours, we see that a deleted database (deleted using dropDatabase from our regression runner scripts) does not actually get deleted. We are re-using the same database name so we can identify who that database belongs to.&lt;/p&gt;</comment>
                            <comment id="1408494" author="jblackburn" created="Fri, 14 Oct 2016 13:09:43 +0000"  >&lt;p&gt;Would be good to have this fixed.  It causes all sorts of problems with real-world workloads.&lt;/p&gt;</comment>
                            <comment id="1277317" author="hh@dexi.io" created="Fri, 27 May 2016 08:50:39 +0000"  >&lt;p&gt;Seeing same issue in:&lt;/p&gt;

&lt;p&gt;db version v3.0.11&lt;br/&gt;
git version: 48f8b49dc30cc2485c6c1f3db31b723258fcbf39&lt;/p&gt;

&lt;p&gt;This severely affects performance (we&apos;re creating and dropping db&apos;s as part of an integration test process).&lt;/p&gt;</comment>
                            <comment id="1248249" author="ramon.fernandez" created="Wed, 27 Apr 2016 19:02:09 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=andrewdoumaux%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;andrewdoumaux@gmail.com&quot;&gt;andrewdoumaux@gmail.com&lt;/a&gt;, sorry to hear you&apos;re being affected by this issue. The biggest impact of this bug is if you attempt to reuse the namespace, which I&apos;d recommend against. As described above, dropping collections may yield stale metadata that should not have a significant impact on your cluster as long as the namespace is not reused, but if &lt;tt&gt;sh.status()&lt;/tt&gt; is impacted due to having a large number of collections then the only workaround is, unfortunately, to clean up the orphan metadata as described above.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Ram&#243;n.&lt;/p&gt;</comment>
                            <comment id="1248240" author="andrewdoumaux" created="Wed, 27 Apr 2016 18:53:05 +0000"  >&lt;p&gt;My issue might be somewhat related, and not sure when its going to fully bite me.&lt;/p&gt;

&lt;p&gt;So my use case is caching analytic output in MongoDB.  Since we have no good way to know what data has changed between analytic runs, we load the data into a new shared collection and once the data has been fully loaded and replicated, we drop the old/previous collection and via an aliasing process the service layer starts reading from the new collection.  &lt;/p&gt;

&lt;p&gt;However, in my current environment we are creating and dropping 50+ collections a day.  Thus over the course of a year there will be an ~20k documents in the &quot;config.collections&quot; collection.  This does seem to impact sh.status() since it does a find() across the config.collections collection.  &lt;/p&gt;

&lt;p&gt;Are there any good means of cleaning up a dropped sharded collection?  Or at this point is the work-around state here the best option to clean up orphaned metadata?&lt;/p&gt;</comment>
                            <comment id="874687" author="ramon.fernandez" created="Tue, 7 Apr 2015 15:32:26 +0000"  >&lt;p&gt;Thanks for the update &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=paulgpa&quot; class=&quot;user-hover&quot; rel=&quot;paulgpa&quot;&gt;paulgpa&lt;/a&gt;, glad to hear you were able to make progress. Please note that while completing step (2) is sufficient to reclaim disk space, unless you also complete (3) and (4) it is highly likely that you&apos;ll run into trouble if you attempt to reuse the dropped namespace. &lt;/p&gt;</comment>
                            <comment id="873178" author="paulgpa" created="Mon, 6 Apr 2015 02:31:26 +0000"  >&lt;p&gt;Thank you, Ramon. Doing (2) did help us to remove what&apos;s left from the database that we wanted to remove. We didn&apos;t do the router drill.&lt;/p&gt;</comment>
                            <comment id="872602" author="ramon.fernandez" created="Fri, 3 Apr 2015 20:23:06 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=paulgpa&quot; class=&quot;user-hover&quot; rel=&quot;paulgpa&quot;&gt;paulgpa&lt;/a&gt;, the data files are removed in step 2; I&apos;ve amended the ticket&apos;s summary box to reflect that.&lt;/p&gt;

&lt;p&gt;Please see the &lt;a href=&quot;http://docs.mongodb.org/manual/reference/config-database/#config-database&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;documentation on the config database&lt;/a&gt; for more information. In step 3 you can use &lt;tt&gt;find()&lt;/tt&gt; to find all the references to the namespace that was not successfully removed, and &lt;tt&gt;remove()&lt;/tt&gt; to delete the relevant documents. For example, if I had&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;mongos&amp;gt; db.databases.find()&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;{ &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;_id&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; : &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;admin&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;partitioned&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; : &lt;/span&gt;&lt;span style=&quot;color: #006699; font-weight: bold; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;primary&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; : &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;config&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;{ &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;_id&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; : &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;test&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;partitioned&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; : &lt;/span&gt;&lt;span style=&quot;color: #006699; font-weight: bold; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;primary&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; : &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;shard0000&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;and &lt;tt&gt;test&lt;/tt&gt; is the database that I needed to drop, I would run:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;mongos&amp;gt; db.databases.remove({_id:&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;test&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;})&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;WriteResult({ &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;nRemoved&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; : 1 })&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;mongos&amp;gt; db.databases.find()&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;{ &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;_id&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; : &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;admin&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;partitioned&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; : &lt;/span&gt;&lt;span style=&quot;color: #006699; font-weight: bold; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;false&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;primary&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; : &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;config&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt; }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;If you need further assistance on the details please post on the &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;mongodb-user group&lt;/a&gt; or &lt;a href=&quot;http://stackoverflow.com/questions/tagged/mongodb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Stack Overflow with the &lt;tt&gt;mongodb&lt;/tt&gt; tag&lt;/a&gt;, where your question will reach a larger audience. A question like this involving more discussion would be best posted on the &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;mongodb-user group&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Ram&#243;n.&lt;/p&gt;</comment>
                            <comment id="872517" author="paulgpa" created="Fri, 3 Apr 2015 18:59:23 +0000"  >&lt;ol&gt;
	&lt;li&gt;Please notice that our Mongo cluster is version &lt;b&gt;2.6.8&lt;/b&gt;&lt;/li&gt;
	&lt;li&gt;Assuming that we did all steps 1-4 - can we remove files on disk?&lt;/li&gt;
	&lt;li&gt;We cannot claim to be comfortable with messing with &lt;tt&gt;config&lt;/tt&gt; database&lt;/li&gt;
	&lt;li&gt;At which point data files will be removed? Do you expect them to be removed by our Mongo cluster or this is all just a preparation for us to remove those by hand?&lt;/li&gt;
&lt;/ol&gt;

</comment>
                            <comment id="872436" author="paulgpa" created="Fri, 3 Apr 2015 17:33:37 +0000"  >&lt;p&gt;We need some practical recommendations. We do understand that it will be fixed some day, but we have a disk issue within 1 week. Can we simply remove files for the dropped databases (successfully) from the shard hosts? &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                                        </outwardlinks>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="15153">SERVER-2782</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="178598">SERVER-16836</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="193841">SERVER-17884</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="222845">SERVER-19603</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="243484">SERVER-21866</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="677065">SERVER-39167</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="35569">SERVER-5521</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2231832">SERVER-72797</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2217910">DOCS-15797</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="513380">SERVER-33973</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="306943">DOCS-8514</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="224544">SERVER-19811</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="149040">SERVER-14678</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="483373">SERVER-32716</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1306191">SERVER-47372</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1378301">DOCS-13703</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1058634">MONGOID-4826</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>18.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25133"><![CDATA[Sharding EMEA]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[500A000000Vpu6tIAB, 500A000000WSeBJIA1, 500A000000XOXLCIA5, 500A000000XTpMcIAL, 500A000000YgGBMIA3, 500A000000asGBtIAM, 500A000000bQwpvIAC, 500A000000cDKg1IAG, 500A000000cFaDlIAK, 500A000000cFBj1IAG, 500A000000cEHWdIAO, 5002K00000ctDWpQAM, 5002K00000cvzfMQAQ, 5002K00000d81HsQAI, 5002K00000dAa9tQAC, 5002K00000dC28tQAC, 5002K00000dH29mQAC, 5002K00000dH7G4QAK, 500A000000ZgTqQIAV, 5002K00000da86QQAQ, 5002K00000fGbaFQAS, 5002K00000g4fPWQAY, 5002K00000iPUS8QAO, 5002K00000iyeWqQAI, 5002K00000jbQfoQAE, 5002K00000jb9E6QAI, 5002K00000lkp4bQAA, 5002K00000kqHvVQAU, 5002K00000nn3ZxQAI, 5002K00000nqPXSQA2, 5002K00000pDJCZQA4, 5002K00000pG1NbQAK, 5002K00000pk3LzQAI, 5002K00000qfcagQAA, 5002K00000qfyYzQAI, 5002K00000r5I5nQAE, 5002K00000ryw8CQAQ, 5002K00000r568mQAA, 5002K00000s12kgQAA, 5002K00000s2Gr2QAE, 5002K00000sbVz3QAE, 5002K00000scQxlQAE, 5002K00000vf0FFQAY, 5002K00000vfuFWQAY, 5002K00000wWxQnQAK, 5002K00000wXGXnQAO, 5002K00000wXfGaQAK, 5002K00000wXKpBQAW, 5002K00000xl9sJQAQ, 5002K00000yXGU4QAO, 5006R00001ltXS9QAM, 5006R00001kmj82QAA, 5006R00001nIwloQAC, 5006R00001nLctnQAC, 5006R00001nLLEAQA4, 5006R00001oHh5bQAC, 5006R00001oHg8UQAS, 5006R00001oIz0EQAS, 5006R00001onnfiQAA, 5006R00001pnSi6QAE, 5006R00001qGkYCQA0, 5006R00001rZYNkQAO, 5006R00001su0MAQAY, 5006R00001tVFujQAG]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 3 Apr 2015 17:17:38 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 30 weeks, 5 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<s><a href='https://jira.mongodb.org/browse/PM-1965'>PM-1965</a></s>]]></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_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16941"><![CDATA[Not Needed]]></customfieldvalue>

                        </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>julian.torres@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            2 years, 30 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-server-sharding-emea</customfieldvalue>
            <customfieldvalue>AndrewDoumaux</customfieldvalue>
            <customfieldvalue>schwerin@mongodb.com</customfieldvalue>
            <customfieldvalue>EvilChill</customfieldvalue>
            <customfieldvalue>gauravps</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>hh@dexi.io</customfieldvalue>
            <customfieldvalue>jblackburn</customfieldvalue>
            <customfieldvalue>kaloian.manassiev@mongodb.com</customfieldvalue>
            <customfieldvalue>kelsey.schubert@mongodb.com</customfieldvalue>
            <customfieldvalue>paulgpa</customfieldvalue>
            <customfieldvalue>peter.garafano@mongodb.com</customfieldvalue>
            <customfieldvalue>mishra.rajat91@gmail.com</customfieldvalue>
            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>
            <customfieldvalue>sheeri.cabral</customfieldvalue>
            <customfieldvalue>tommaso.tocci@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrlbrj:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>164224</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_11861" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>User Summary</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11858"><![CDATA[Completed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrig0f:</customfieldvalue>

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