<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:03:22 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-3547] Collections are not droppable but are present in system.namespaces</title>
                <link>https://jira.mongodb.org/browse/SERVER-3547</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;They seem to not have been added to the nsdetails hash.&lt;/p&gt;

&lt;p&gt;&amp;gt; db.getCollectionNames()&lt;br/&gt;
	&quot;tmp.mr.type_foo_tmp_reduce_items_45993_47129_inc&quot;,&lt;br/&gt;
	&quot;tmp.mr.type_foo_tmp_reduce_items_45994_47130_inc&quot;,&lt;br/&gt;
	&quot;type_foo&quot;&lt;br/&gt;
]&lt;/p&gt;

&lt;p&gt;&amp;gt; db.getCollection(&quot;tmp.mr.type_foo_tmp_reduce_items_45994_47130_inc&quot;).stats()&lt;br/&gt;
{&lt;br/&gt;
	&quot;ns&quot; : &quot;indexer_cache.tmp.mr.type_foo_tmp_reduce_items_45994_47130_inc&quot;,&lt;br/&gt;
	&quot;sharded&quot; : false,&lt;br/&gt;
	&quot;primary&quot; : &quot;p&quot;,&lt;br/&gt;
	&quot;errmsg&quot; : &quot;ns not found&quot;,&lt;br/&gt;
	&quot;ok&quot; : 0&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;&amp;gt; db.getCollection(&quot;tmp.mr.type_foo_tmp_reduce_items_45994_47130_inc&quot;).drop()&lt;br/&gt;
false&lt;/p&gt;

&lt;p&gt;&amp;#8211; ON RS&lt;/p&gt;

&lt;p&gt;PRIMARY&amp;gt; db.oplog.rs.findOne(&lt;/p&gt;
{&quot;o.drop&quot;: &quot;tmp.mr.type_foo_tmp_reduce_items_45994_47130_inc&quot;}
&lt;p&gt;)&lt;br/&gt;
null&lt;/p&gt;

&lt;p&gt;From the log:&lt;/p&gt;

&lt;p&gt;Mon Aug  8 08:23:59 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn50679&amp;#93;&lt;/span&gt; CMD: drop dbname.tmp.mr.type_foo_tmp_reduce_items_45925_47047&lt;br/&gt;
Mon Aug  8 08:23:59 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn50679&amp;#93;&lt;/span&gt; error: hashtable namespace index max chain reached:1335&lt;br/&gt;
Mon Aug  8 08:23:59 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn50679&amp;#93;&lt;/span&gt; CMD: drop dbname.tmp.mr.type_foo_tmp_reduce_items_45925_47047_inc&lt;br/&gt;
Mon Aug  8 08:23:59 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn50679&amp;#93;&lt;/span&gt; error: hashtable namespace index max chain reached:1335&lt;br/&gt;
Mon Aug  8 08:23:59 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn50679&amp;#93;&lt;/span&gt; error: hashtable namespace index max chain reached:1335&lt;br/&gt;
Mon Aug  8 08:23:59 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn50679&amp;#93;&lt;/span&gt; error: hashtable namespace index max chain reached:1335&lt;br/&gt;
Mon Aug  8 08:23:59 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn50679&amp;#93;&lt;/span&gt; mr failed, removing collection&lt;br/&gt;
Mon Aug  8 08:23:59 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn50679&amp;#93;&lt;/span&gt; CMD: drop dbname.tmp.mr.type_foo_tmp_reduce_items_45925_47047&lt;br/&gt;
Mon Aug  8 08:23:59 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn50679&amp;#93;&lt;/span&gt; error: hashtable namespace index max chain reached:1335&lt;br/&gt;
Mon Aug  8 08:23:59 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn50679&amp;#93;&lt;/span&gt; CMD: drop dbname.tmp.mr.type_foo_tmp_reduce_items_45925_47047_inc&lt;br/&gt;
Mon Aug  8 08:30:00 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn50679&amp;#93;&lt;/span&gt; error: hashtable namespace index max chain reached:1335&lt;br/&gt;
Mon Aug  8 08:30:00 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn50679&amp;#93;&lt;/span&gt; CMD: drop dbname.tmp.mr.type_foo_tmp_reduce_items_45934_47056&lt;br/&gt;
Mon Aug  8 08:30:00 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn50679&amp;#93;&lt;/span&gt; error: hashtable namespace index max chain reached:1335&lt;br/&gt;
Mon Aug  8 08:30:00 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn50679&amp;#93;&lt;/span&gt; CMD: drop dbname.tmp.mr.type_foo_tmp_reduce_items_45934_47056_inc&lt;br/&gt;
Mon Aug  8 08:30:00 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn50679&amp;#93;&lt;/span&gt; error: hashtable namespace index max chain reached:1335&lt;br/&gt;
Mon Aug  8 08:30:00 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn50679&amp;#93;&lt;/span&gt; error: hashtable namespace index max chain reached:1335&lt;br/&gt;
Mon Aug  8 08:30:00 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn50679&amp;#93;&lt;/span&gt; error: hashtable namespace index max chain reached:1335&lt;br/&gt;
Mon Aug  8 08:30:00 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn50679&amp;#93;&lt;/span&gt; mr failed, removing collection&lt;br/&gt;
Mon Aug  8 08:30:00 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn50679&amp;#93;&lt;/span&gt; error: hashtable namespace index max chain reached:1335&lt;br/&gt;
Mon Aug  8 08:30:00 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn50679&amp;#93;&lt;/span&gt; CMD: drop dbname.tmp.mr.type_foo_tmp_reduce_items_45934_47056&lt;br/&gt;
Mon Aug  8 08:30:00 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn50679&amp;#93;&lt;/span&gt; error: hashtable namespace index max chain reached:1335&lt;/p&gt;</description>
                <environment></environment>
        <key id="20692">SERVER-3547</key>
            <summary>Collections are not droppable but are present in system.namespaces</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="3">Duplicate</resolution>
                                        <assignee username="aaron">Aaron Staple</assignee>
                                    <reporter username="kristina">Kristina Chodorow</reporter>
                        <labels>
                    </labels>
                <created>Mon, 8 Aug 2011 17:05:43 +0000</created>
                <updated>Fri, 30 Mar 2012 14:24:33 +0000</updated>
                            <resolved>Thu, 18 Aug 2011 16:26:04 +0000</resolved>
                                    <version>1.8.2</version>
                                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="47827" author="kali" created="Wed, 10 Aug 2011 18:44:21 +0000"  >&lt;p&gt;Thanks for the answer, and glad to know it will help nail the root cause of a major issue. And maybe the recovery procedure will help others.&lt;/p&gt;

&lt;p&gt;Unfortunately for me, this procedure comes a bit too late. I was unaware the replica were stuck so I have stupidly scrub the primary node data directory to force a full recovery. I have to deal with a dataloss on 5 days on valuable, but not critical data. Daily backup won&apos;t help either, as they&apos;re backing up from the stale secondaries.&lt;/p&gt;

&lt;p&gt;We are still in the process of understanding how we could stay unaware of the secondaries drift for 5 days. Obviously, our monitoring was insufficient. Nevertheless, I will spin-off one or two bugs and/or feature requests in the following days, as I feel secondary nodes state reporting has shown inadequate in this instance and can be greatly improved to avoid somebody else being as lazy and stupid I have been this morning.&lt;/p&gt;</comment>
                            <comment id="47810" author="aaron" created="Wed, 10 Aug 2011 18:11:24 +0000"  >&lt;p&gt;Hi Mathieu,&lt;/p&gt;

&lt;p&gt;The root cause of this is &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3570&quot; title=&quot;allocation failure creating collection leads to inconsistent state&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3570&quot;&gt;&lt;del&gt;SERVER-3570&lt;/del&gt;&lt;/a&gt;.  For now you can drop the bad collection documents via the following:&lt;/p&gt;

&lt;p&gt;1) Drop some number of collections, until you are able to create new collections.&lt;br/&gt;
2) Create a new collection with the same collection name as in the orphaned collection document.&lt;br/&gt;
3) Drop the collection you just created.  This will remove the orphaned collection documents.&lt;/p&gt;</comment>
                            <comment id="47729" author="eliot" created="Wed, 10 Aug 2011 14:31:52 +0000"  >&lt;p&gt;On the secondary, you can use a larger --nssize to work around for now.&lt;/p&gt;</comment>
                            <comment id="47673" author="kali" created="Wed, 10 Aug 2011 07:58:39 +0000"  >&lt;p&gt;I just figure out the issue has also halted replication to the replica sets with the following message.&lt;/p&gt;

&lt;p&gt;Wed Aug 10 06:34:33 &lt;span class=&quot;error&quot;&gt;&amp;#91;replica set sync&amp;#93;&lt;/span&gt; replSet syncThread: 10081 too many namespaces/collections&lt;br/&gt;
           06:34:50 .&lt;/p&gt;

&lt;p&gt;Now, I&apos;m in deep.&lt;/p&gt;</comment>
                            <comment id="47397" author="kali" created="Tue, 9 Aug 2011 16:57:20 +0000"  >&lt;p&gt;Trying to find a way to come back to a sane configuration from here, I put the primary offline to run a repair on it. The repair runs fine, but when mongod restart, I get that kind of errors.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;...&amp;#93;&lt;/span&gt;&lt;br/&gt;
2011-08-09_16:55:38.30319 Tue Aug  9 16:55:38 &lt;span class=&quot;error&quot;&gt;&amp;#91;replica set sync&amp;#93;&lt;/span&gt; replSet WARNING ignoring op on rollback no _id TODO : kali.system.indexes { _id: ObjectId(&apos;4e415f2b644c6fce100e2d94&apos;), ts: Timestamp 1312901240000|18, h: 8754756684372246472, op: &quot;i&quot;, ns: &quot;kali.system.indexes&quot;, o: { ns: &quot;kali.tmp.mr.data_out_12876_41716_inc&quot;, key: &lt;/p&gt;
{ 0: 1 }
&lt;p&gt;, name: &quot;0_1&quot;, v: 0 } }&lt;br/&gt;
2011-08-09_16:55:38.30326 Tue Aug  9 16:55:38 &lt;span class=&quot;error&quot;&gt;&amp;#91;replica set sync&amp;#93;&lt;/span&gt; replSet WARNING ignoring op on rollback no _id TODO : kali.system.indexes { _id: ObjectId(&apos;4e415f2b644c6fce100e2d91&apos;), ts: Timestamp 1312901240000|15, h: -8852462082678340227, op: &quot;i&quot;, ns: &quot;kali.system.indexes&quot;, o: { ns: &quot;kali.tmp.mr.data_out_12874_41714_inc&quot;, key: &lt;/p&gt;
{ 0: 1 }
&lt;p&gt;, name: &quot;0_1&quot;, v: 0 } }&lt;br/&gt;
2011-08-09_16:55:38.30332 Tue Aug  9 16:55:38 &lt;span class=&quot;error&quot;&gt;&amp;#91;replica set sync&amp;#93;&lt;/span&gt; replSet info rollback of renameCollection is slow in this version of mongod&lt;br/&gt;
2011-08-09_16:55:38.30340 Tue Aug  9 16:55:38 &lt;span class=&quot;error&quot;&gt;&amp;#91;replica set sync&amp;#93;&lt;/span&gt; replSet WARNING ignoring op on rollback no _id TODO : kali.system.indexes { _id: ObjectId(&apos;4e415f2b644c6fce100e2d89&apos;), ts: Timestamp 1312901240000|7, h: -1640308357504338439, op: &quot;i&quot;, ns: &quot;kali.system.indexes&quot;, o: { ns: &quot;kali.tmp.mr.data_out_12871_41711_inc&quot;, key: &lt;/p&gt;
{ 0: 1 }
&lt;p&gt;, name: &quot;0_1&quot;, v: 0 } }&lt;br/&gt;
2011-08-09_16:55:38.30347 Tue Aug  9 16:55:38 &lt;span class=&quot;error&quot;&gt;&amp;#91;replica set sync&amp;#93;&lt;/span&gt; replSet info rollback of renameCollection is slow in this version of mongod&lt;br/&gt;
2011-08-09_16:55:38.30356 Tue Aug  9 16:55:38 &lt;span class=&quot;error&quot;&gt;&amp;#91;replica set sync&amp;#93;&lt;/span&gt; replSet WARNING ignoring op on rollback no _id TODO : kali.system.indexes { _id: ObjectId(&apos;4e415f2b644c6fce100e2d80&apos;), ts: Timestamp 1312901239000|12, h: 6925292605345270750, op: &quot;i&quot;, ns: &quot;kali.system.indexes&quot;, o: { ns: &quot;kali.tmp.mr.data_out_12870_41710_inc&quot;, key: &lt;/p&gt;
{ 0: 1 }
&lt;p&gt;, name: &quot;0_1&quot;, v: 0 } }&lt;br/&gt;
2011-08-09_16:55:38.30362 Tue Aug  9 16:55:38 &lt;span class=&quot;error&quot;&gt;&amp;#91;replica set sync&amp;#93;&lt;/span&gt; replSet info rollback of renameCollection is slow in this version of mongod&lt;br/&gt;
2011-08-09_16:55:38.30370 Tue Aug  9 16:55:38 &lt;span class=&quot;error&quot;&gt;&amp;#91;replica set sync&amp;#93;&lt;/span&gt; replSet WARNING ignoring op on rollback no _id TODO : kali.system.indexes { _id: ObjectId(&apos;4e415f2b644c6fce100e2d7b&apos;), ts: Timestamp 1312901239000|7, h: 3779087353189048104, op: &quot;i&quot;, ns: &quot;kali.system.indexes&quot;, o: { ns: &quot;kali.tmp.mr.data_out_12869_41709_inc&quot;, key: &lt;/p&gt;
{ 0: 1 }
&lt;p&gt;, name: &quot;0_1&quot;, v: 0 } }&lt;br/&gt;
2011-08-09_16:55:38.30376 Tue Aug  9 16:55:38 &lt;span class=&quot;error&quot;&gt;&amp;#91;replica set sync&amp;#93;&lt;/span&gt; replSet WARNING ignoring op on rollback no _id TODO : kali.system.indexes { _id: ObjectId(&apos;4e415f2b644c6fce100e2d79&apos;), ts: Timestamp 1312901239000|5, h: -8505161559152385289, op: &quot;i&quot;, ns: &quot;kali.system.indexes&quot;, o: { ns: &quot;kali.tmp.mr.data_out_12868_41708_inc&quot;, key: &lt;/p&gt;
{ 0: 1 }
&lt;p&gt;, name: &quot;0_1&quot;, v: 0 } }&lt;br/&gt;
2011-08-09_16:55:38.30384 Tue Aug  9 16:55:38 &lt;span class=&quot;error&quot;&gt;&amp;#91;replica set sync&amp;#93;&lt;/span&gt; replSet WARNING ignoring op on rollback no _id TODO : kali.system.indexes { _id: ObjectId(&apos;4e415f2b644c6fce100e2d77&apos;), ts: Timestamp 1312901239000|3, h: -4092830567795822378, op: &quot;i&quot;, ns: &quot;kali.system.indexes&quot;, o: { ns: &quot;kali.tmp.mr.data_out_12867_41707_inc&quot;, key: &lt;/p&gt;
{ 0: 1 }
&lt;p&gt;, name: &quot;0_1&quot;, v: 0 } }&lt;br/&gt;
2011-08-09_16:55:38.30390 Tue Aug  9 16:55:38 &lt;span class=&quot;error&quot;&gt;&amp;#91;replica set sync&amp;#93;&lt;/span&gt; replSet info rollback of renameCollection is slow in this version of mongod&lt;br/&gt;
2011-08-09_16:55:38.30400 Tue Aug  9 16:55:38 &lt;span class=&quot;error&quot;&gt;&amp;#91;replica set sync&amp;#93;&lt;/span&gt; replSet WARNING ignoring op on rollback no _id TODO : kali.system.indexes { _id: ObjectId(&apos;4e415f2b644c6fce100e2d6a&apos;), ts: Timestamp 1312901238000|19, h: -2013834961402568477, op: &quot;i&quot;, ns: &quot;kali.system.indexes&quot;, o: { ns: &quot;kali.tmp.mr.data_out_12866_41706_inc&quot;, key: &lt;/p&gt;
{ 0: 1 }
&lt;p&gt;, name: &quot;0_1&quot;, v: 0 } }&lt;br/&gt;
2011-08-09_16:55:38.30407 Tue Aug  9 16:55:38 &lt;span class=&quot;error&quot;&gt;&amp;#91;replica set sync&amp;#93;&lt;/span&gt; replSet info rollback of renameCollection is slow in this version of mongod&lt;br/&gt;
2011-08-09_16:55:38.30414 Tue Aug  9 16:55:38 &lt;span class=&quot;error&quot;&gt;&amp;#91;replica set sync&amp;#93;&lt;/span&gt; replSet WARNING ignoring op on rollback no _id TODO : kali.system.indexes { _id: ObjectId(&apos;4e415f2b644c6fce100e2d5f&apos;), ts: Timestamp 1312901238000|8, h: 315461714917508211, op: &quot;i&quot;, ns: &quot;kali.system.indexes&quot;, o: { ns: &quot;kali.tmp.mr.data_out_12865_41705_inc&quot;, key: &lt;/p&gt;
{ 0: 1 }
&lt;p&gt;, name: &quot;0_1&quot;, v: 0 } }&lt;br/&gt;
2011-08-09_16:55:38.30421 Tue Aug  9 16:55:38 &lt;span class=&quot;error&quot;&gt;&amp;#91;replica set sync&amp;#93;&lt;/span&gt; replSet WARNING ignoring op on rollback no _id TODO : kali.system.indexes { _id: ObjectId(&apos;4e415f2b644c6fce100e2d5d&apos;), ts: Timestamp 1312901238000|6, h: 3404851968451820918, op: &quot;i&quot;, ns: &quot;kali.system.indexes&quot;, o: { ns: &quot;kali.tmp.mr.data_out_12864_41704_inc&quot;, key: &lt;/p&gt;
{ 0: 1 }
&lt;p&gt;, name: &quot;0_1&quot;, v: 0 } }&lt;br/&gt;
2011-08-09_16:55:38.30439 Tue Aug  9 16:55:38 &lt;span class=&quot;error&quot;&gt;&amp;#91;replica set sync&amp;#93;&lt;/span&gt; replSet WARNING ignoring op on rollback no _id TODO : kali.system.indexes { _id: ObjectId(&apos;4e415f2b644c6fce100e2d59&apos;), ts: Timestamp 1312901238000|2, h: 7190354169504677580, op: &quot;i&quot;, ns: &quot;kali.system.indexes&quot;, o: { ns: &quot;kali.tmp.mr.data_out_12863_41703_inc&quot;, key: &lt;/p&gt;
{ 0: 1 }
&lt;p&gt;, name: &quot;0_1&quot;, v: 0 } }&lt;br/&gt;
2011-08-09_16:55:38.30446 Tue Aug  9 16:55:38 &lt;span class=&quot;error&quot;&gt;&amp;#91;replica set sync&amp;#93;&lt;/span&gt; replSet rollback found matching events at Aug  9 14:47:18:1&lt;br/&gt;
2011-08-09_16:55:38.30451 Tue Aug  9 16:55:38 &lt;span class=&quot;error&quot;&gt;&amp;#91;replica set sync&amp;#93;&lt;/span&gt; replSet rollback findcommonpoint scanned : 83547&lt;br/&gt;
2011-08-09_16:55:38.30457 Tue Aug  9 16:55:38 &lt;span class=&quot;error&quot;&gt;&amp;#91;replica set sync&amp;#93;&lt;/span&gt; replSet replSet rollback 3 fixup&lt;br/&gt;
2011-08-09_16:55:40.94426 Tue Aug  9 16:55:40 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; connection accepted from 10.203.38.176:49256 #11&lt;br/&gt;
2011-08-09_16:55:43.71309 Tue Aug  9 16:55:43 &lt;span class=&quot;error&quot;&gt;&amp;#91;replica set sync&amp;#93;&lt;/span&gt; replSet rollback 3.5&lt;br/&gt;
2011-08-09_16:55:43.71419 Tue Aug  9 16:55:43 &lt;span class=&quot;error&quot;&gt;&amp;#91;replica set sync&amp;#93;&lt;/span&gt; replSet rollback 4 n:6140&lt;br/&gt;
2011-08-09_16:55:43.71424 Tue Aug  9 16:55:43 &lt;span class=&quot;error&quot;&gt;&amp;#91;replica set sync&amp;#93;&lt;/span&gt; replSet minvalid=Aug  9 16:55:43 4e41668f:9&lt;br/&gt;
2011-08-09_16:55:43.96736 Tue Aug  9 16:55:43 &lt;span class=&quot;error&quot;&gt;&amp;#91;replica set sync&amp;#93;&lt;/span&gt; replSet rollback 4.1 coll resync core.computed_best_recent_members&lt;br/&gt;
2011-08-09_16:55:43.97397 Tue Aug  9 16:55:43 &lt;span class=&quot;error&quot;&gt;&amp;#91;replica set sync&amp;#93;&lt;/span&gt; building new index on &lt;/p&gt;
{ _id: 1 }
&lt;p&gt; for core.computed_best_recent_members&lt;br/&gt;
2011-08-09_16:55:43.97403 Tue Aug  9 16:55:43 &lt;span class=&quot;error&quot;&gt;&amp;#91;replica set sync&amp;#93;&lt;/span&gt; done for 0 records 0secs&lt;br/&gt;
2011-08-09_16:55:43.97404 Tue Aug  9 16:55:43 &lt;span class=&quot;error&quot;&gt;&amp;#91;replica set sync&amp;#93;&lt;/span&gt; Assertion: 13312:replSet error : logOp() but not primary?&lt;br/&gt;
2011-08-09_16:55:43.97405 0x555051 0x6bd43f 0x6bc022 0x7179d2 0x6cf80a 0x6cfad5 0x6abedc 0x6b093b 0x6b1be9 0x6b6937 0x6b7b40 0x6b808c 0x81353e 0x7f81db05c971 0x7f81da61992d &lt;br/&gt;
2011-08-09_16:55:43.97579  /opt/mongodb/bin/mongod(_ZN5mongo11msgassertedEiPKc+0x131) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x555051&amp;#93;&lt;/span&gt;&lt;br/&gt;
2011-08-09_16:55:43.97581  /opt/mongodb/bin/mongod() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6bd43f&amp;#93;&lt;/span&gt;&lt;br/&gt;
2011-08-09_16:55:43.97582  /opt/mongodb/bin/mongod(_ZN5mongo5logOpEPKcS1_RKNS_7BSONObjEPS2_Pb+0x42) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6bc022&amp;#93;&lt;/span&gt;&lt;br/&gt;
2011-08-09_16:55:43.97583  /opt/mongodb/bin/mongod(_ZN5mongo12userCreateNSEPKcNS_7BSONObjERSsbPb+0x4d2) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7179d2&amp;#93;&lt;/span&gt;&lt;br/&gt;
2011-08-09_16:55:43.97585  /opt/mongodb/bin/mongod(_ZN5mongo6Cloner14copyCollectionERKSsS2_RKNS_7BSONObjERSsbb+0xaca) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6cf80a&amp;#93;&lt;/span&gt;&lt;br/&gt;
2011-08-09_16:55:43.97586  /opt/mongodb/bin/mongod(_ZN5mongo24copyCollectionFromRemoteERKSsS1_RKNS_7BSONObjERSsb+0x35) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6cfad5&amp;#93;&lt;/span&gt;&lt;br/&gt;
2011-08-09_16:55:43.97587  /opt/mongodb/bin/mongod(_ZN5mongo11ReplSetImpl9syncFixUpERNS_10HowToFixUpERNS_11OplogReaderE+0xc6c) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6abedc&amp;#93;&lt;/span&gt;&lt;br/&gt;
2011-08-09_16:55:43.97588  /opt/mongodb/bin/mongod(_ZN5mongo11ReplSetImpl13_syncRollbackERNS_11OplogReaderE+0x19db) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6b093b&amp;#93;&lt;/span&gt;&lt;br/&gt;
2011-08-09_16:55:43.97590  /opt/mongodb/bin/mongod(_ZN5mongo11ReplSetImpl12syncRollbackERNS_11OplogReaderE+0x9) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6b1be9&amp;#93;&lt;/span&gt;&lt;br/&gt;
2011-08-09_16:55:43.97593  /opt/mongodb/bin/mongod(_ZN5mongo11ReplSetImpl8syncTailEv+0x6b7) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6b6937&amp;#93;&lt;/span&gt;&lt;br/&gt;
2011-08-09_16:55:43.97595  /opt/mongodb/bin/mongod(_ZN5mongo11ReplSetImpl10syncThreadEv+0x80) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6b7b40&amp;#93;&lt;/span&gt;&lt;br/&gt;
2011-08-09_16:55:43.97596  /opt/mongodb/bin/mongod(_ZN5mongo15startSyncThreadEv+0x24c) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6b808c&amp;#93;&lt;/span&gt;&lt;br/&gt;
2011-08-09_16:55:43.97598  /opt/mongodb/bin/mongod(thread_proxy+0x6e) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x81353e&amp;#93;&lt;/span&gt;&lt;br/&gt;
2011-08-09_16:55:43.97599  /lib/libpthread.so.0(+0x7971) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f81db05c971&amp;#93;&lt;/span&gt;&lt;br/&gt;
2011-08-09_16:55:43.97600  /lib/libc.so.6(clone+0x6d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f81da61992d&amp;#93;&lt;/span&gt;&lt;br/&gt;
2011-08-09_16:55:43.97603 Tue Aug  9 16:55:43 &lt;span class=&quot;error&quot;&gt;&amp;#91;replica set sync&amp;#93;&lt;/span&gt; replset rollback error resyncing collection core.computed_best_recent_members&lt;br/&gt;
2011-08-09_16:55:43.98326 Tue Aug  9 16:55:43 &lt;span class=&quot;error&quot;&gt;&amp;#91;replica set sync&amp;#93;&lt;/span&gt; replSet unexpected exception in syncThread()&lt;/p&gt;</comment>
                            <comment id="47382" author="kali" created="Tue, 9 Aug 2011 16:02:25 +0000"  >&lt;p&gt;Trying to reproduce the error, I have done the following thing:&lt;/p&gt;

&lt;p&gt;db.data.save(&lt;/p&gt;
{ value : &quot;blah&quot;}
&lt;p&gt;);&lt;br/&gt;
m = function() &lt;/p&gt;
{ emit(this.value, 1); }
&lt;p&gt;r = function(key, values) &lt;/p&gt;
{ return 1; }

&lt;p&gt;var i = 0;&lt;br/&gt;
for(i=0; i&amp;lt;100000; i++) {&lt;br/&gt;
  db.runCommand(&lt;/p&gt;
{ mapreduce: &quot;data&quot;, map: m, reduce: r, out : &quot;out_&quot; + i }
&lt;p&gt;)&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;I was expecting to see it crash when a db.getCollectionNames() monitored in another shell reach 28k, but it actualy went on until I kill it at around 35k.&lt;/p&gt;

&lt;p&gt;At that point, the primary node of the RS constantly complains:&lt;/p&gt;

&lt;p&gt;2011-08-09_15:24:35.99697 Tue Aug  9 15:24:35 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; error: hashtable namespace index max chain reached:1335&lt;br/&gt;
2011-08-09_15:24:36.00489 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; warning: hashtable namespace index long chain &lt;br/&gt;
2011-08-09_15:24:36.00521 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; error: hashtable namespace index max chain reached:1335&lt;br/&gt;
2011-08-09_15:24:36.00531 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; CMD: drop kali.tmp.mr.data_out_37476_66317&lt;br/&gt;
2011-08-09_15:24:36.00546 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; error: hashtable namespace index max chain reached:1335&lt;br/&gt;
2011-08-09_15:24:36.00576 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; error: hashtable namespace index max chain reached:1335&lt;br/&gt;
2011-08-09_15:24:36.00588 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; error: hashtable namespace index max chain reached:1335&lt;br/&gt;
2011-08-09_15:24:36.00604 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; mr failed, removing collection&lt;br/&gt;
2011-08-09_15:24:36.00620 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; error: hashtable namespace index max chain reached:1335&lt;br/&gt;
2011-08-09_15:24:36.00629 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; CMD: drop kali.tmp.mr.data_out_37476_66317&lt;br/&gt;
2011-08-09_15:24:36.00643 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; warning: hashtable namespace index long chain &lt;br/&gt;
2011-08-09_15:24:36.00652 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; CMD: drop kali.tmp.mr.data_out_37476_66317_inc&lt;br/&gt;
2011-08-09_15:24:36.00662 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; warning: hashtable namespace index long chain &lt;br/&gt;
2011-08-09_15:24:36.00673 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; warning: hashtable namespace index long chain &lt;br/&gt;
2011-08-09_15:24:36.06410 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; warning: hashtable namespace index long chain &lt;br/&gt;
2011-08-09_15:24:36.06431 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; error: hashtable namespace index max chain reached:1335&lt;br/&gt;
2011-08-09_15:24:36.06442 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; error: hashtable namespace index max chain reached:1335&lt;br/&gt;
2011-08-09_15:24:36.06497 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; query kali.$cmd ntoreturn:1 assertion  command: { mapreduce: &quot;data&quot;, map: function () &lt;/p&gt;
{
2011-08-09_15:24:36.06499     emit(this.value, 1);
2011-08-09_15:24:36.06501 }
&lt;p&gt;, reduce: function (key, values) &lt;/p&gt;
{
2011-08-09_15:24:36.06503     return 1;
2011-08-09_15:24:36.06504 }
&lt;p&gt;, out: &quot;out_37476&quot; } reslen:152 121ms&lt;br/&gt;
2011-08-09_15:24:36.10552 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; CMD: drop kali.tmp.mr.data_out_37477_66318&lt;br/&gt;
2011-08-09_15:24:36.10576 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; CMD: drop kali.tmp.mr.data_out_37477_66318_inc&lt;br/&gt;
2011-08-09_15:24:36.10605 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; building new index on &lt;/p&gt;
{ 0: 1 }
&lt;p&gt; for kali.tmp.mr.data_out_37477_66318_inc&lt;br/&gt;
2011-08-09_15:24:36.10645 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; error: hashtable namespace index max chain reached:1335&lt;br/&gt;
2011-08-09_15:24:36.10661 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; error: hashtable namespace index max chain reached:1335&lt;br/&gt;
2011-08-09_15:24:36.10672 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; error: hashtable namespace index max chain reached:1335&lt;br/&gt;
2011-08-09_15:24:36.10706 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; error: hashtable namespace index max chain reached:1335&lt;br/&gt;
2011-08-09_15:24:36.12388 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; CMD: drop kali.tmp.mr.data_out_37477_66318&lt;br/&gt;
2011-08-09_15:24:36.12429 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; warning: hashtable namespace index long chain &lt;br/&gt;
2011-08-09_15:24:36.12441 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; warning: hashtable namespace index long chain &lt;br/&gt;
2011-08-09_15:24:36.12451 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; warning: hashtable namespace index long chain &lt;br/&gt;
2011-08-09_15:24:36.12464 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; warning: hashtable namespace index long chain &lt;br/&gt;
2011-08-09_15:24:36.12479 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; building new index on &lt;/p&gt;
{ _id: 1 }
&lt;p&gt; for kali.tmp.mr.data_out_37477_66318&lt;br/&gt;
2011-08-09_15:24:36.12491 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; warning: hashtable namespace index long chain &lt;br/&gt;
2011-08-09_15:24:36.12531 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; warning: hashtable namespace index long chain &lt;br/&gt;
2011-08-09_15:24:36.12543 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; warning: hashtable namespace index long chain &lt;br/&gt;
2011-08-09_15:24:36.12567 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; done for 0 records 0secs&lt;br/&gt;
2011-08-09_15:24:36.14832 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt;   Assertion failure foundIndex db/commands/mr.cpp 587&lt;br/&gt;
2011-08-09_15:24:36.14851 0x5457f1 0x5547bf 0x78e508 0x7949ec 0x76011c 0x761c40 0x618bab 0x61c295 0x6f8660 0x8075c0 0x81353e 0x7f9b70a9d971 0x7f9b7005a92d &lt;br/&gt;
2011-08-09_15:24:36.15062  /opt/mongodb/bin/mongod(_ZN5mongo12sayDbContextEPKc+0xb1) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5457f1&amp;#93;&lt;/span&gt;&lt;br/&gt;
2011-08-09_15:24:36.15066  /opt/mongodb/bin/mongod(_ZN5mongo8assertedEPKcS1_j+0xbf) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5547bf&amp;#93;&lt;/span&gt;&lt;br/&gt;
2011-08-09_15:24:36.15067  /opt/mongodb/bin/mongod(_ZN5mongo2mr5State11finalReduceEPNS_5CurOpERNS_19ProgressMeterHolderE+0x5f8) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x78e508&amp;#93;&lt;/span&gt;&lt;br/&gt;
2011-08-09_15:24:36.15069  /opt/mongodb/bin/mongod(_ZN5mongo2mr16MapReduceCommand3runERKSsRNS_7BSONObjERSsRNS_14BSONObjBuilderEb+0xb6c) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7949ec&amp;#93;&lt;/span&gt;&lt;br/&gt;
2011-08-09_15:24:36.15070  /opt/mongodb/bin/mongod(_ZN5mongo11execCommandEPNS_7CommandERNS_6ClientEiPKcRNS_7BSONObjERNS_14BSONObjBuilderEb+0x76c) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x76011c&amp;#93;&lt;/span&gt;&lt;br/&gt;
2011-08-09_15:24:36.15073  /opt/mongodb/bin/mongod(_ZN5mongo12_runCommandsEPKcRNS_7BSONObjERNS_10BufBuilderERNS_14BSONObjBuilderEbi+0x350) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x761c40&amp;#93;&lt;/span&gt;&lt;br/&gt;
2011-08-09_15:24:36.15074  /opt/mongodb/bin/mongod(_ZN5mongo11runCommandsEPKcRNS_7BSONObjERNS_5CurOpERNS_10BufBuilderERNS_14BSONObjBuilderEbi+0x3b) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x618bab&amp;#93;&lt;/span&gt;&lt;br/&gt;
2011-08-09_15:24:36.15075  /opt/mongodb/bin/mongod(&lt;em&gt;ZN5mongo8runQueryERNS_7MessageERNS_12QueryMessageERNS_5CurOpES1&lt;/em&gt;+0xff5) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x61c295&amp;#93;&lt;/span&gt;&lt;br/&gt;
2011-08-09_15:24:36.15077  /opt/mongodb/bin/mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_8SockAddrE+0xe30) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6f8660&amp;#93;&lt;/span&gt;&lt;br/&gt;
2011-08-09_15:24:36.15078  /opt/mongodb/bin/mongod(_ZN5mongo10connThreadEPNS_13MessagingPortE+0x240) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x8075c0&amp;#93;&lt;/span&gt;&lt;br/&gt;
2011-08-09_15:24:36.15080  /opt/mongodb/bin/mongod(thread_proxy+0x6e) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x81353e&amp;#93;&lt;/span&gt;&lt;br/&gt;
2011-08-09_15:24:36.15081  /lib/libpthread.so.0(+0x7971) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f9b70a9d971&amp;#93;&lt;/span&gt;&lt;br/&gt;
2011-08-09_15:24:36.15082  /lib/libc.so.6(clone+0x6d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f9b7005a92d&amp;#93;&lt;/span&gt;&lt;br/&gt;
2011-08-09_15:24:36.15099 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; mr failed, removing collection&lt;br/&gt;
2011-08-09_15:24:36.15120 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; warning: hashtable namespace index long chain &lt;br/&gt;
2011-08-09_15:24:36.15130 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; CMD: drop kali.tmp.mr.data_out_37477_66318&lt;br/&gt;
2011-08-09_15:24:36.15140 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; warning: hashtable namespace index long chain &lt;br/&gt;
2011-08-09_15:24:36.15155 Tue Aug  9 15:24:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn20135&amp;#93;&lt;/span&gt; warning: hashtable namespace index long chain &lt;/p&gt;

&lt;p&gt;db.getCollectionNames() shows a mix of expected out_xxxxx and &quot;tmp.mr.data_out_xxxxx_yyyyy_inc&quot;.&lt;/p&gt;

&lt;p&gt;I then try to discard the unwanted collections:&lt;br/&gt;
&amp;gt; db.getCollectionNames().forEach(function&lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/thumbs_down.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; &lt;/p&gt;
{ if(n.substr(0,4) == &quot;out_&quot;) db.getCollection(n).drop()}
&lt;p&gt;)&lt;br/&gt;
&amp;gt; db.getCollectionNames().forEach(function&lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/thumbs_down.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; &lt;/p&gt;
{ if(n.substr(0,3) == &quot;tmp&quot;) db.getCollection(n).drop()}
&lt;p&gt;)&lt;/p&gt;

&lt;p&gt;after that, db.getCollectionsNames() still shows some &quot;tmp.mr.data_out_xxxxx_yyyyy&quot;&lt;/p&gt;

&lt;p&gt;	&quot;tmp.mr.data_out_37623_66464_inc&quot;,&lt;br/&gt;
	&quot;tmp.mr.data_out_37624_66465_inc&quot;,&lt;br/&gt;
	&quot;tmp.mr.data_out_37625_66466_inc&quot;,&lt;br/&gt;
	&quot;tmp.mr.data_out_37626_66467_inc&quot;&lt;br/&gt;
]&lt;/p&gt;

&lt;p&gt;and back to square one:&lt;/p&gt;

&lt;p&gt;&amp;gt; db.getCollection(&quot;tmp.mr.data_out_37626_66467_inc&quot;).stats()&lt;/p&gt;

&lt;p&gt;{&lt;br/&gt;
	&quot;ns&quot; : &quot;kali.tmp.mr.data_out_37626_66467_inc&quot;,&lt;br/&gt;
	&quot;sharded&quot; : false,&lt;br/&gt;
	&quot;primary&quot; : &quot;pink-alpha&quot;,&lt;br/&gt;
	&quot;errmsg&quot; : &quot;ns not found&quot;,&lt;br/&gt;
	&quot;ok&quot; : 0&lt;br/&gt;
}&lt;/p&gt;</comment>
                            <comment id="47344" author="kali" created="Tue, 9 Aug 2011 13:58:49 +0000"  >&lt;p&gt;ok, reproduced it by running m/r jobs without deleting output until mongo insults me. I got just one &quot;rogue&quot; collection, no thousands of them, but it shows the same symptoms:&lt;/p&gt;

&lt;p&gt;&amp;gt; show collections&lt;br/&gt;
admin&lt;br/&gt;
admin_indexer&lt;br/&gt;
system.indexes&lt;br/&gt;
tmp.mr.type_albums_tmp_reduce_items_12440_28828&lt;br/&gt;
type_albums&lt;br/&gt;
&amp;gt; db.getCollectionNames()&lt;br/&gt;
[&lt;br/&gt;
	&quot;admin&quot;,&lt;br/&gt;
	&quot;admin_indexer&quot;,&lt;br/&gt;
	&quot;system.indexes&quot;,&lt;br/&gt;
	&quot;tmp.mr.type_albums_tmp_reduce_items_12440_28828&quot;,&lt;br/&gt;
	&quot;type_albums&quot;&lt;br/&gt;
]&lt;br/&gt;
&amp;gt; db.getCollection(&quot;tmp.mr.type_albums_tmp_reduce_items_12440_28828&quot;).stats()&lt;br/&gt;
{&lt;br/&gt;
	&quot;ns&quot; : &quot;indexer_cache.tmp.mr.type_albums_tmp_reduce_items_12440_28828&quot;,&lt;br/&gt;
	&quot;sharded&quot; : false,&lt;br/&gt;
	&quot;primary&quot; : &quot;pink-alpha&quot;,&lt;br/&gt;
	&quot;errmsg&quot; : &quot;ns not found&quot;,&lt;br/&gt;
	&quot;ok&quot; : 0&lt;br/&gt;
}&lt;/p&gt;</comment>
                            <comment id="47309" author="kali" created="Tue, 9 Aug 2011 08:38:20 +0000"  >&lt;p&gt;I have not tried to reproduce it. I was actually more looking for a way to get rid of the condition, that is becoming a concern on a production system.&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;our setup is a sharded system, with only one shard (&quot;pink-alpha&quot;) which is a 3-node replicaset&lt;/li&gt;
	&lt;li&gt;the database that is impacted was overflown in collection number (the application stack was not discarding a m/r result).&lt;/li&gt;
	&lt;li&gt;I found out through errors raised through the application that the collection number was exceeded, and immediately fixed the issue in the application layer&lt;/li&gt;
	&lt;li&gt;I then tried to discard the collections, by scripting against the mongoS: some collections went away gracefully: the &quot;tmp_reduce_items_xxxx&quot; that were generated by the application layer. The &quot;tmp.mr.type_albums_tmp_reduce_items_xxxxx_yyyyy_inc&quot; did not, leading to the situation described in the report.&lt;/li&gt;
	&lt;li&gt;after some discussion with Kristina, I started running a repair on the secondaries, planning to run it on the primary next. Now both secondaries are repaired, the primary has not been repaired yet.&lt;br/&gt;
Now the situation is as follow:&lt;/li&gt;
	&lt;li&gt;getCollectionNames on the primary and the mongos report thousands of  &quot;tmp.mr.type_albums_tmp_reduce_items_xxxxx_yyyyy_inc&quot; and &quot;tmp.mr.type_albums_tmp_reduce_items_xxxxx_yyyyy&quot;, no &quot;tmp_reduce_items_xxxx&quot;.&lt;/li&gt;
	&lt;li&gt;getCollectionNames on both secondaries report &quot;tmp_reduce_items_xxxx&quot; and no &quot;tmp.mr.type_albums_tmp_reduce_items_xxxxx_yyyyy_inc&quot;.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;The issue is a source of concern for us, but as everything seems to work fine at the current time, I will not attempt stepDown() and repair on the primary for some time in case you guys want to investigate. I will also spend some time trying to reproduce the issue on a test system.&lt;/p&gt;

&lt;p&gt;kali @freenode, european daylight time.&lt;/p&gt;</comment>
                            <comment id="47287" author="eliot" created="Tue, 9 Aug 2011 04:37:14 +0000"  >&lt;p&gt;Do you have a way to reproduce or jsut saw?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="20824">SERVER-3570</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 9 Aug 2011 04:37:14 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 28 weeks 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/SERVER-3570'>SERVER-3570</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_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>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 28 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="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>aaron</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>kristina</customfieldvalue>
            <customfieldvalue>kali</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrouef:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>23261</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

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

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