<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:59:13 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-2186] mongorestore doesn&apos;t restore indexes (osx)</title>
                <link>https://jira.mongodb.org/browse/SERVER-2186</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;indexes don&apos;t get created using mongorestore.&lt;/p&gt;

&lt;p&gt;I&apos;ve only experienced this consistently on my development machine, which is osx 10.6.5. in linux, I&apos;ve seen indexes restored correctly. this is a mongodump on linux, copied to my osx machine, then mongorestore&apos;d.&lt;/p&gt;

&lt;p&gt;below is the output from running mongorestore:&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;visnup@qi ? 11:33 AM  ~/Downloads/syn_production-20101206124133/syn_production&amp;#93;&lt;/span&gt;&lt;br/&gt;
$ mongorestore --drop --indexesLast -d syn_development .&lt;br/&gt;
connected to: 127.0.0.1&lt;br/&gt;
Tue Dec  7 11:33:57 ./activities.bson&lt;br/&gt;
Tue Dec  7 11:33:57 	 going into namespace &lt;span class=&quot;error&quot;&gt;&amp;#91;syn_development.activities&amp;#93;&lt;/span&gt;&lt;br/&gt;
Tue Dec  7 11:33:57 	 dropping&lt;br/&gt;
Tue Dec  7 11:33:58 	 4581 objects found&lt;br/&gt;
Tue Dec  7 11:33:58 ./changes.bson&lt;br/&gt;
Tue Dec  7 11:33:58 	 going into namespace &lt;span class=&quot;error&quot;&gt;&amp;#91;syn_development.changes&amp;#93;&lt;/span&gt;&lt;br/&gt;
Tue Dec  7 11:33:58 	 dropping&lt;br/&gt;
		26812356/966500518	2%&lt;br/&gt;
		43780626/966500518	4%&lt;br/&gt;
		59037582/966500518	6%&lt;br/&gt;
		70340640/966500518	7%&lt;br/&gt;
		78848874/966500518	8%&lt;br/&gt;
		90603729/966500518	9%&lt;br/&gt;
		111478889/966500518	11%&lt;br/&gt;
		135888448/966500518	14%&lt;br/&gt;
		155931866/966500518	16%&lt;br/&gt;
		173213887/966500518	17%&lt;br/&gt;
		189886416/966500518	19%&lt;br/&gt;
		207615774/966500518	21%&lt;br/&gt;
		223109175/966500518	23%&lt;br/&gt;
		234331933/966500518	24%&lt;br/&gt;
		245661693/966500518	25%&lt;br/&gt;
		257975390/966500518	26%&lt;br/&gt;
		269330150/966500518	27%&lt;br/&gt;
		280035356/966500518	28%&lt;br/&gt;
		289414343/966500518	29%&lt;br/&gt;
		300844527/966500518	31%&lt;br/&gt;
		313036656/966500518	32%&lt;br/&gt;
		324098827/966500518	33%&lt;br/&gt;
		332027701/966500518	34%&lt;br/&gt;
		342203880/966500518	35%&lt;br/&gt;
		352078194/966500518	36%&lt;br/&gt;
		363737030/966500518	37%&lt;br/&gt;
		375278667/966500518	38%&lt;br/&gt;
		387282648/966500518	40%&lt;br/&gt;
		402093245/966500518	41%&lt;br/&gt;
		419602331/966500518	43%&lt;br/&gt;
		438455816/966500518	45%&lt;br/&gt;
		452377195/966500518	46%&lt;br/&gt;
		469667675/966500518	48%&lt;br/&gt;
		476543503/966500518	49%&lt;br/&gt;
		490550065/966500518	50%&lt;br/&gt;
		504931431/966500518	52%&lt;br/&gt;
		523103700/966500518	54%&lt;br/&gt;
		540838099/966500518	55%&lt;br/&gt;
		557674638/966500518	57%&lt;br/&gt;
		576200908/966500518	59%&lt;br/&gt;
		587706308/966500518	60%&lt;br/&gt;
		600408295/966500518	62%&lt;br/&gt;
		615653817/966500518	63%&lt;br/&gt;
		630180005/966500518	65%&lt;br/&gt;
		641175655/966500518	66%&lt;br/&gt;
		651158936/966500518	67%&lt;br/&gt;
		662458554/966500518	68%&lt;br/&gt;
		670275912/966500518	69%&lt;br/&gt;
		682284915/966500518	70%&lt;br/&gt;
		693770746/966500518	71%&lt;br/&gt;
		703934034/966500518	72%&lt;br/&gt;
		714622250/966500518	73%&lt;br/&gt;
		729391831/966500518	75%&lt;br/&gt;
		737134510/966500518	76%&lt;br/&gt;
		749751327/966500518	77%&lt;br/&gt;
		764419345/966500518	79%&lt;br/&gt;
		778512066/966500518	80%&lt;br/&gt;
		793389181/966500518	82%&lt;br/&gt;
		813628353/966500518	84%&lt;br/&gt;
		827386509/966500518	85%&lt;br/&gt;
		837774509/966500518	86%&lt;br/&gt;
		849880895/966500518	87%&lt;br/&gt;
		858468949/966500518	88%&lt;br/&gt;
		874579049/966500518	90%&lt;br/&gt;
		889011199/966500518	91%&lt;br/&gt;
		902740902/966500518	93%&lt;br/&gt;
		914523326/966500518	94%&lt;br/&gt;
		926271424/966500518	95%&lt;br/&gt;
		937596872/966500518	97%&lt;br/&gt;
		950370050/966500518	98%&lt;br/&gt;
		962235955/966500518	99%&lt;br/&gt;
Tue Dec  7 11:37:35 	 2509232 objects found&lt;br/&gt;
Tue Dec  7 11:37:35 ./contacts.bson&lt;br/&gt;
Tue Dec  7 11:37:35 	 going into namespace &lt;span class=&quot;error&quot;&gt;&amp;#91;syn_development.contacts&amp;#93;&lt;/span&gt;&lt;br/&gt;
Tue Dec  7 11:37:35 	 dropping&lt;br/&gt;
		29509090/238492536	12%&lt;br/&gt;
		43347912/238492536	18%&lt;br/&gt;
		65850892/238492536	27%&lt;br/&gt;
		92157341/238492536	38%&lt;br/&gt;
		111299436/238492536	46%&lt;br/&gt;
		137499691/238492536	57%&lt;br/&gt;
		166426587/238492536	69%&lt;br/&gt;
		196846077/238492536	82%&lt;br/&gt;
		214657884/238492536	90%&lt;br/&gt;
Tue Dec  7 11:38:04 	 197481 objects found&lt;br/&gt;
Tue Dec  7 11:38:04 ./data_migrations.bson&lt;br/&gt;
Tue Dec  7 11:38:04 	 going into namespace &lt;span class=&quot;error&quot;&gt;&amp;#91;syn_development.data_migrations&amp;#93;&lt;/span&gt;&lt;br/&gt;
Tue Dec  7 11:38:04 	 dropping&lt;br/&gt;
Tue Dec  7 11:38:04 	 27 objects found&lt;br/&gt;
Tue Dec  7 11:38:04 ./emails.bson&lt;br/&gt;
Tue Dec  7 11:38:04 	 going into namespace &lt;span class=&quot;error&quot;&gt;&amp;#91;syn_development.emails&amp;#93;&lt;/span&gt;&lt;br/&gt;
Tue Dec  7 11:38:04 	 dropping&lt;br/&gt;
		7389689/114124096	6%&lt;br/&gt;
		18220669/114124096	15%&lt;br/&gt;
		29809886/114124096	26%&lt;br/&gt;
		40428925/114124096	35%&lt;br/&gt;
		50986113/114124096	44%&lt;br/&gt;
		58475985/114124096	51%&lt;br/&gt;
		68237263/114124096	59%&lt;br/&gt;
		76902885/114124096	67%&lt;br/&gt;
		84227246/114124096	73%&lt;br/&gt;
		92610612/114124096	81%&lt;br/&gt;
		101530384/114124096	88%&lt;br/&gt;
		106062706/114124096	92%&lt;br/&gt;
		113672572/114124096	99%&lt;br/&gt;
Tue Dec  7 11:38:43 	 558255 objects found&lt;br/&gt;
Tue Dec  7 11:38:43 ./feed_items.bson&lt;br/&gt;
Tue Dec  7 11:38:43 	 going into namespace &lt;span class=&quot;error&quot;&gt;&amp;#91;syn_development.feed_items&amp;#93;&lt;/span&gt;&lt;br/&gt;
Tue Dec  7 11:38:43 	 dropping&lt;br/&gt;
Tue Dec  7 11:38:43 	 1045 objects found&lt;br/&gt;
Tue Dec  7 11:38:43 ./feeds.bson&lt;br/&gt;
Tue Dec  7 11:38:43 	 going into namespace &lt;span class=&quot;error&quot;&gt;&amp;#91;syn_development.feeds&amp;#93;&lt;/span&gt;&lt;br/&gt;
Tue Dec  7 11:38:43 	 dropping&lt;br/&gt;
Tue Dec  7 11:38:43 	 20 objects found&lt;br/&gt;
Tue Dec  7 11:38:43 ./notes.bson&lt;br/&gt;
Tue Dec  7 11:38:43 	 going into namespace &lt;span class=&quot;error&quot;&gt;&amp;#91;syn_development.notes&amp;#93;&lt;/span&gt;&lt;br/&gt;
Tue Dec  7 11:38:43 	 dropping&lt;br/&gt;
Tue Dec  7 11:38:43 	 4 objects found&lt;br/&gt;
Tue Dec  7 11:38:43 ./system.profile.bson&lt;br/&gt;
Tue Dec  7 11:38:43 	 skipping&lt;br/&gt;
Tue Dec  7 11:38:43 ./system.indexes.bson&lt;br/&gt;
Tue Dec  7 11:38:43 	 going into namespace &lt;span class=&quot;error&quot;&gt;&amp;#91;syn_development.system.indexes&amp;#93;&lt;/span&gt;&lt;br/&gt;
Tue Dec  7 11:38:43 	 dropping&lt;br/&gt;
Tue Dec  7 11:38:43 	 30 objects found&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;visnup@qi ? 11:38 AM  ~/Downloads/syn_production-20101206124133/syn_production&amp;#93;&lt;/span&gt;&lt;br/&gt;
$ mongo syn_development&lt;br/&gt;
MongoDB shell version: 1.6.4&lt;br/&gt;
connecting to: syn_development&lt;br/&gt;
&amp;gt; db.system.indexes.find()&lt;br/&gt;
{ &quot;name&quot; : &quot;&lt;em&gt;id&lt;/em&gt;&quot;, &quot;ns&quot; : &quot;syn_development.system.users&quot;, &quot;key&quot; : &lt;/p&gt;
{ &quot;_id&quot; : 1 }
&lt;p&gt; }&lt;br/&gt;
{ &quot;name&quot; : &quot;&lt;em&gt;id&lt;/em&gt;&quot;, &quot;ns&quot; : &quot;syn_development.activities&quot;, &quot;key&quot; : &lt;/p&gt;
{ &quot;_id&quot; : 1 }
&lt;p&gt; }&lt;br/&gt;
{ &quot;name&quot; : &quot;&lt;em&gt;id&lt;/em&gt;&quot;, &quot;ns&quot; : &quot;syn_development.changes&quot;, &quot;key&quot; : &lt;/p&gt;
{ &quot;_id&quot; : 1 }
&lt;p&gt; }&lt;br/&gt;
{ &quot;name&quot; : &quot;&lt;em&gt;id&lt;/em&gt;&quot;, &quot;ns&quot; : &quot;syn_development.contacts&quot;, &quot;key&quot; : &lt;/p&gt;
{ &quot;_id&quot; : 1 }
&lt;p&gt; }&lt;br/&gt;
{ &quot;name&quot; : &quot;&lt;em&gt;id&lt;/em&gt;&quot;, &quot;ns&quot; : &quot;syn_development.data_migrations&quot;, &quot;key&quot; : &lt;/p&gt;
{ &quot;_id&quot; : 1 }
&lt;p&gt; }&lt;br/&gt;
{ &quot;name&quot; : &quot;&lt;em&gt;id&lt;/em&gt;&quot;, &quot;ns&quot; : &quot;syn_development.emails&quot;, &quot;key&quot; : &lt;/p&gt;
{ &quot;_id&quot; : 1 }
&lt;p&gt; }&lt;br/&gt;
{ &quot;name&quot; : &quot;&lt;em&gt;id&lt;/em&gt;&quot;, &quot;ns&quot; : &quot;syn_development.feed_items&quot;, &quot;key&quot; : &lt;/p&gt;
{ &quot;_id&quot; : 1 }
&lt;p&gt; }&lt;br/&gt;
{ &quot;name&quot; : &quot;&lt;em&gt;id&lt;/em&gt;&quot;, &quot;ns&quot; : &quot;syn_development.feeds&quot;, &quot;key&quot; : &lt;/p&gt;
{ &quot;_id&quot; : 1 }
&lt;p&gt; }&lt;br/&gt;
{ &quot;name&quot; : &quot;&lt;em&gt;id&lt;/em&gt;&quot;, &quot;ns&quot; : &quot;syn_development.notes&quot;, &quot;key&quot; : &lt;/p&gt;
{ &quot;_id&quot; : 1 }
&lt;p&gt; }&lt;br/&gt;
&amp;gt; db.system.indexes.count()&lt;br/&gt;
9&lt;/p&gt;

&lt;p&gt;the indexes on the machine the dump came from are:&lt;/p&gt;

&lt;p&gt;visnu@app03:~$ mongo mong02.sequoiacap.com/syn_production&lt;br/&gt;
MongoDB shell version: 1.6.4&lt;br/&gt;
connecting to: mong02.sequoiacap.com/syn_production&lt;br/&gt;
&amp;gt; db.system.indexes.find()&lt;br/&gt;
{ &quot;name&quot; : &quot;&lt;em&gt;id&lt;/em&gt;&quot;, &quot;ns&quot; : &quot;syn_production.data_migrations&quot;, &quot;key&quot; : &lt;/p&gt;
{ &quot;_id&quot; : 1 }
&lt;p&gt; }&lt;br/&gt;
{ &quot;name&quot; : &quot;&lt;em&gt;id&lt;/em&gt;&quot;, &quot;ns&quot; : &quot;syn_production.changes&quot;, &quot;key&quot; : &lt;/p&gt;
{ &quot;_id&quot; : 1 }
&lt;p&gt; }&lt;br/&gt;
{ &quot;name&quot; : &quot;&lt;em&gt;id&lt;/em&gt;&quot;, &quot;ns&quot; : &quot;syn_production.contacts&quot;, &quot;key&quot; : &lt;/p&gt;
{ &quot;_id&quot; : 1 }
&lt;p&gt; }&lt;br/&gt;
{ &quot;name&quot; : &quot;&lt;em&gt;id&lt;/em&gt;&quot;, &quot;ns&quot; : &quot;syn_production.emails&quot;, &quot;key&quot; : &lt;/p&gt;
{ &quot;_id&quot; : 1 }
&lt;p&gt; }&lt;br/&gt;
{ &quot;background&quot; : true, &quot;key&quot; : &lt;/p&gt;
{ &quot;person_id&quot; : 1 }
&lt;p&gt;, &quot;ns&quot; : &quot;syn_production.changes&quot;, &quot;name&quot; : &quot;person_id_1&quot; }&lt;br/&gt;
{ &quot;unique&quot; : false, &quot;key&quot; : &lt;/p&gt;
{ &quot;admin_id&quot; : 1 }
&lt;p&gt;, &quot;ns&quot; : &quot;syn_production.contacts&quot;, &quot;name&quot; : &quot;admin_id_1&quot; }&lt;br/&gt;
{ &quot;unique&quot; : false, &quot;key&quot; : &lt;/p&gt;
{ &quot;domain&quot; : 1 }
&lt;p&gt;, &quot;ns&quot; : &quot;syn_production.contacts&quot;, &quot;name&quot; : &quot;domain_1&quot; }&lt;br/&gt;
{ &quot;unique&quot; : false, &quot;key&quot; : &lt;/p&gt;
{ &quot;linkedin_id&quot; : 1 }
&lt;p&gt;, &quot;ns&quot; : &quot;syn_production.contacts&quot;, &quot;name&quot; : &quot;linkedin_id_1&quot; }&lt;br/&gt;
{ &quot;unique&quot; : false, &quot;key&quot; : &lt;/p&gt;
{ &quot;email_addresses.address&quot; : 1 }
&lt;p&gt;, &quot;ns&quot; : &quot;syn_production.contacts&quot;, &quot;name&quot; : &quot;email_addresses.address_1&quot; }&lt;br/&gt;
{ &quot;unique&quot; : false, &quot;key&quot; : &lt;/p&gt;
{ &quot;name&quot; : 1 }
&lt;p&gt;, &quot;ns&quot; : &quot;syn_production.contacts&quot;, &quot;name&quot; : &quot;name_1&quot; }&lt;br/&gt;
{ &quot;name&quot; : &quot;&lt;em&gt;id&lt;/em&gt;&quot;, &quot;ns&quot; : &quot;syn_production.activities&quot;, &quot;key&quot; : &lt;/p&gt;
{ &quot;_id&quot; : 1 }
&lt;p&gt; }&lt;br/&gt;
{ &quot;background&quot; : true, &quot;ns&quot; : &quot;syn_production.activities&quot;, &quot;name&quot; : &quot;contact_id_1&quot;, &quot;key&quot; : &lt;/p&gt;
{ &quot;contact_id&quot; : 1 }
&lt;p&gt; }&lt;br/&gt;
{ &quot;ns&quot; : &quot;syn_production.activities&quot;, &quot;unique&quot; : false, &quot;name&quot; : &quot;outbound_company_ids_1&quot;, &quot;key&quot; : &lt;/p&gt;
{ &quot;outbound_company_ids&quot; : 1 }
&lt;p&gt; }&lt;br/&gt;
{ &quot;ns&quot; : &quot;syn_production.activities&quot;, &quot;unique&quot; : false, &quot;name&quot; : &quot;inbound_company_ids_1&quot;, &quot;key&quot; : &lt;/p&gt;
{ &quot;inbound_company_ids&quot; : 1 }
&lt;p&gt; }&lt;br/&gt;
{ &quot;ns&quot; : &quot;syn_production.contacts&quot;, &quot;unique&quot; : false, &quot;name&quot; : &quot;physical_address.latlng_2d&quot;, &quot;key&quot; : &lt;/p&gt;
{ &quot;physical_address.latlng&quot; : &quot;2d&quot; }
&lt;p&gt; }&lt;br/&gt;
{ &quot;background&quot; : true, &quot;ns&quot; : &quot;syn_production.contacts&quot;, &quot;name&quot; : &quot;partner_ids_1&quot;, &quot;key&quot; : &lt;/p&gt;
{ &quot;partner_ids&quot; : 1 }
&lt;p&gt; }&lt;br/&gt;
{ &quot;ns&quot; : &quot;syn_production.contacts&quot;, &quot;unique&quot; : false, &quot;name&quot; : &quot;needs_admin_sync_1&quot;, &quot;key&quot; : &lt;/p&gt;
{ &quot;needs_admin_sync&quot; : 1 }
&lt;p&gt; }&lt;br/&gt;
{ &quot;ns&quot; : &quot;syn_production.contacts&quot;, &quot;unique&quot; : false, &quot;name&quot; : &quot;user_1&quot;, &quot;key&quot; : &lt;/p&gt;
{ &quot;user&quot; : 1 }
&lt;p&gt; }&lt;br/&gt;
{ &quot;name&quot; : &quot;&lt;em&gt;id&lt;/em&gt;&quot;, &quot;ns&quot; : &quot;syn_production.feed_items&quot;, &quot;key&quot; : &lt;/p&gt;
{ &quot;_id&quot; : 1 }
&lt;p&gt; }&lt;br/&gt;
{ &quot;ns&quot; : &quot;syn_production.feed_items&quot;, &quot;unique&quot; : false, &quot;name&quot; : &quot;tags_1_created_at_-1&quot;, &quot;key&quot; : &lt;/p&gt;
{ &quot;tags&quot; : 1, &quot;created_at&quot; : -1 }
&lt;p&gt; }&lt;br/&gt;
has more&lt;br/&gt;
&amp;gt; it&lt;br/&gt;
{ &quot;ns&quot; : &quot;syn_production.feed_items&quot;, &quot;unique&quot; : false, &quot;name&quot; : &quot;search_1_created_at_-1&quot;, &quot;key&quot; : &lt;/p&gt;
{ &quot;search&quot; : 1, &quot;created_at&quot; : -1 }
&lt;p&gt; }&lt;br/&gt;
{ &quot;name&quot; : &quot;&lt;em&gt;id&lt;/em&gt;&quot;, &quot;ns&quot; : &quot;syn_production.feeds&quot;, &quot;key&quot; : &lt;/p&gt;
{ &quot;_id&quot; : 1 }
&lt;p&gt; }&lt;br/&gt;
{ &quot;key&quot; : &lt;/p&gt;
{ &quot;positions.company_id&quot; : 1, &quot;recent_connection_date&quot; : -1, &quot;linkedin_id&quot; : -1 }
&lt;p&gt;, &quot;ns&quot; : &quot;syn_production.contacts&quot;, &quot;unique&quot; : false, &quot;name&quot; : &quot;positions.company_id_1_recent_connection_date_-1_linkedin_id_-1&quot; }&lt;br/&gt;
{ &quot;key&quot; : &lt;/p&gt;
{ &quot;deal&quot; : 1, &quot;stage&quot; : 1, &quot;region&quot; : 1, &quot;follow_up_date&quot; : 1, &quot;name&quot; : 1 }
&lt;p&gt;, &quot;ns&quot; : &quot;syn_production.contacts&quot;, &quot;unique&quot; : false, &quot;name&quot; : &quot;deal_1_stage_1_region_1_follow_up_date_1_name_1&quot; }&lt;br/&gt;
{ &quot;key&quot; : &lt;/p&gt;
{ &quot;role&quot; : 1, &quot;name&quot; : 1 }
&lt;p&gt;, &quot;ns&quot; : &quot;syn_production.contacts&quot;, &quot;unique&quot; : false, &quot;name&quot; : &quot;role_1_name_1&quot; }&lt;br/&gt;
{ &quot;key&quot; : &lt;/p&gt;
{ &quot;search&quot; : 1, &quot;_type&quot; : 1, &quot;recent_connection_date&quot; : -1 }
&lt;p&gt;, &quot;ns&quot; : &quot;syn_production.contacts&quot;, &quot;unique&quot; : false, &quot;name&quot; : &quot;search_1_&lt;em&gt;type_1_recent_connection_date&lt;/em&gt;-1&quot; }&lt;br/&gt;
{ &quot;key&quot; : &lt;/p&gt;
{ &quot;name_downcase&quot; : 1 }
&lt;p&gt;, &quot;ns&quot; : &quot;syn_production.contacts&quot;, &quot;unique&quot; : false, &quot;name&quot; : &quot;name_downcase_1&quot; }&lt;br/&gt;
{ &quot;key&quot; : &lt;/p&gt;
{ &quot;intermediary&quot; : 1, &quot;stage&quot; : 1, &quot;region&quot; : 1, &quot;follow_up_date&quot; : 1, &quot;name&quot; : 1 }
&lt;p&gt;, &quot;ns&quot; : &quot;syn_production.contacts&quot;, &quot;unique&quot; : false, &quot;name&quot; : &quot;intermediary_1_stage_1_region_1_follow_up_date_1_name_1&quot; }&lt;br/&gt;
{ &quot;name&quot; : &quot;&lt;em&gt;id&lt;/em&gt;&quot;, &quot;ns&quot; : &quot;syn_production.notes&quot;, &quot;key&quot; : &lt;/p&gt;
{ &quot;_id&quot; : 1 }
&lt;p&gt; }&lt;br/&gt;
{ &quot;unique&quot; : false, &quot;key&quot; : &lt;/p&gt;
{ &quot;contact_id&quot; : 1, &quot;source&quot; : 1, &quot;created_at&quot; : -1 }
&lt;p&gt;, &quot;ns&quot; : &quot;syn_production.changes&quot;, &quot;name&quot; : &quot;contact_id_1_source_1_created_at_-1&quot; }&lt;br/&gt;
&amp;gt; db.system.indexes.count()&lt;br/&gt;
30&lt;/p&gt;</description>
                <environment>osx 10.6.5</environment>
        <key id="13890">SERVER-2186</key>
            <summary>mongorestore doesn&apos;t restore indexes (osx)</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="richard.kreuter">Richard Kreuter</assignee>
                                    <reporter username="visnup">Visnu Pitiyanuvath</reporter>
                        <labels>
                    </labels>
                <created>Tue, 7 Dec 2010 19:42:05 +0000</created>
                <updated>Tue, 12 Jul 2016 00:19:29 +0000</updated>
                            <resolved>Mon, 13 Dec 2010 17:28:48 +0000</resolved>
                                    <version>1.6.4</version>
                                    <fixVersion>1.7.4</fixVersion>
                                    <component>Tools</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="21376" author="visnup" created="Mon, 13 Dec 2010 17:32:13 +0000"  >&lt;p&gt;whoo hoo!&lt;/p&gt;</comment>
                            <comment id="21375" author="richard@10gen.com" created="Mon, 13 Dec 2010 17:28:48 +0000"  >&lt;p&gt;Fixed in git commits mentioned in comments.&lt;/p&gt;</comment>
                            <comment id="21322" author="auto" created="Fri, 10 Dec 2010 22:33:46 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;kreuter&apos;, u&apos;name&apos;: u&apos;Richard Kreuter&apos;, u&apos;email&apos;: u&apos;richard@10gen.com&apos;}
&lt;p&gt;Message: Add a test for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2186&quot; title=&quot;mongorestore doesn&amp;#39;t restore indexes (osx)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2186&quot;&gt;&lt;del&gt;SERVER-2186&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/0b23cc1bc38f5fa29c65b6b9f18876d53d240aab&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/0b23cc1bc38f5fa29c65b6b9f18876d53d240aab&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="21255" author="auto" created="Thu, 9 Dec 2010 20:19:46 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;kreuter&apos;, u&apos;name&apos;: u&apos;Richard Kreuter&apos;, u&apos;email&apos;: u&apos;richard@10gen.com&apos;}
&lt;p&gt;Message: Fixup ns when inserting index &amp;amp; check for errors.  &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2186&quot; title=&quot;mongorestore doesn&amp;#39;t restore indexes (osx)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2186&quot;&gt;&lt;del&gt;SERVER-2186&lt;/del&gt;&lt;/a&gt;.&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/2d44cc04200fb1cd80f3d2255148aa3120ebbd3c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/2d44cc04200fb1cd80f3d2255148aa3120ebbd3c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="21160" author="visnup" created="Tue, 7 Dec 2010 23:23:58 +0000"  >&lt;p&gt;you are correct! when I don&apos;t specify a differently named db to restore into, indexes are created correctly.&lt;/p&gt;</comment>
                            <comment id="21158" author="visnup" created="Tue, 7 Dec 2010 23:17:32 +0000"  >&lt;p&gt;unfortunately, no error message. below is the output from the log while I ran restore. let me try importing into a same-named db.&lt;/p&gt;


&lt;p&gt;Tue Dec  7 15:13:40 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; connection accepted from 127.0.0.1:58860 #24&lt;br/&gt;
Tue Dec  7 15:13:40 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24&amp;#93;&lt;/span&gt; CMD: drop syn_development.activities&lt;br/&gt;
Tue Dec  7 15:13:40 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24&amp;#93;&lt;/span&gt; building new index on &lt;/p&gt;
{ _id: 1 }
&lt;p&gt; for syn_development.activities&lt;br/&gt;
Tue Dec  7 15:13:40 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24&amp;#93;&lt;/span&gt; done for 0 records 0.005secs&lt;br/&gt;
Tue Dec  7 15:13:41 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24&amp;#93;&lt;/span&gt; CMD: drop syn_development.changes&lt;br/&gt;
Tue Dec  7 15:13:41 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24&amp;#93;&lt;/span&gt; building new index on &lt;/p&gt;
{ _id: 1 }
&lt;p&gt; for syn_development.changes&lt;br/&gt;
Tue Dec  7 15:13:41 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24&amp;#93;&lt;/span&gt; done for 0 records 0.002secs&lt;br/&gt;
Tue Dec  7 15:13:54 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24&amp;#93;&lt;/span&gt; insert syn_development.changes 192ms&lt;br/&gt;
Tue Dec  7 15:14:01 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24&amp;#93;&lt;/span&gt; insert syn_development.changes 192ms&lt;br/&gt;
Tue Dec  7 15:14:32 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24&amp;#93;&lt;/span&gt; insert syn_development.changes 174ms&lt;br/&gt;
Tue Dec  7 15:15:02 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24&amp;#93;&lt;/span&gt; insert syn_development.changes 182ms&lt;br/&gt;
Tue Dec  7 15:15:32 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24&amp;#93;&lt;/span&gt; CMD: drop syn_development.contacts&lt;br/&gt;
Tue Dec  7 15:15:32 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24&amp;#93;&lt;/span&gt; building new index on &lt;/p&gt;
{ _id: 1 }
&lt;p&gt; for syn_development.contacts&lt;br/&gt;
Tue Dec  7 15:15:32 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24&amp;#93;&lt;/span&gt; done for 0 records 0.001secs&lt;br/&gt;
Tue Dec  7 15:15:32 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24&amp;#93;&lt;/span&gt; insert syn_development.contacts 262ms&lt;br/&gt;
Tue Dec  7 15:15:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24&amp;#93;&lt;/span&gt; CMD: drop syn_development.data_migrations&lt;br/&gt;
Tue Dec  7 15:15:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24&amp;#93;&lt;/span&gt; building new index on &lt;/p&gt;
{ _id: 1 }
&lt;p&gt; for syn_development.data_migrations&lt;br/&gt;
Tue Dec  7 15:15:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24&amp;#93;&lt;/span&gt; done for 0 records 0.005secs&lt;br/&gt;
Tue Dec  7 15:15:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24&amp;#93;&lt;/span&gt; CMD: drop syn_development.emails&lt;br/&gt;
Tue Dec  7 15:15:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24&amp;#93;&lt;/span&gt; building new index on &lt;/p&gt;
{ _id: 1 }
&lt;p&gt; for syn_development.emails&lt;br/&gt;
Tue Dec  7 15:15:48 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24&amp;#93;&lt;/span&gt; done for 0 records 0.023secs&lt;br/&gt;
Tue Dec  7 15:15:58 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24&amp;#93;&lt;/span&gt; insert syn_development.emails 134ms&lt;br/&gt;
Tue Dec  7 15:16:03 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24&amp;#93;&lt;/span&gt; insert syn_development.emails 294ms&lt;br/&gt;
Tue Dec  7 15:16:14 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24&amp;#93;&lt;/span&gt; CMD: drop syn_development.feed_items&lt;br/&gt;
Tue Dec  7 15:16:14 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24&amp;#93;&lt;/span&gt; building new index on &lt;/p&gt;
{ _id: 1 }
&lt;p&gt; for syn_development.feed_items&lt;br/&gt;
Tue Dec  7 15:16:14 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24&amp;#93;&lt;/span&gt; done for 0 records 0secs&lt;br/&gt;
Tue Dec  7 15:16:14 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24&amp;#93;&lt;/span&gt; CMD: drop syn_development.feeds&lt;br/&gt;
Tue Dec  7 15:16:14 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24&amp;#93;&lt;/span&gt; building new index on &lt;/p&gt;
{ _id: 1 }
&lt;p&gt; for syn_development.feeds&lt;br/&gt;
Tue Dec  7 15:16:14 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24&amp;#93;&lt;/span&gt; done for 0 records 0secs&lt;br/&gt;
Tue Dec  7 15:16:14 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24&amp;#93;&lt;/span&gt; CMD: drop syn_development.notes&lt;br/&gt;
Tue Dec  7 15:16:14 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24&amp;#93;&lt;/span&gt; building new index on &lt;/p&gt;
{ _id: 1 }
&lt;p&gt; for syn_development.notes&lt;br/&gt;
Tue Dec  7 15:16:14 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24&amp;#93;&lt;/span&gt; done for 0 records 0secs&lt;br/&gt;
Tue Dec  7 15:16:14 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24&amp;#93;&lt;/span&gt; CMD: drop syn_development.system.indexes&lt;br/&gt;
Tue Dec  7 15:16:14 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24&amp;#93;&lt;/span&gt; end connection 127.0.0.1:58860&lt;/p&gt;</comment>
                            <comment id="21156" author="richard@10gen.com" created="Tue, 7 Dec 2010 22:59:07 +0000"  >&lt;p&gt;I think the actual bug has to do with using a different database name than that against which mongodump was run.  &lt;/p&gt;

&lt;p&gt;Can you tell me if you see error messages in the log file &quot;exception 10097 bad table to index name on add index attempt&quot;?&lt;/p&gt;</comment>
                            <comment id="21154" author="visnup" created="Tue, 7 Dec 2010 22:01:07 +0000"  >&lt;p&gt;system.indexes.bson attached.&lt;/p&gt;</comment>
                            <comment id="21152" author="richard@10gen.com" created="Tue, 7 Dec 2010 21:08:36 +0000"  >&lt;p&gt;Could you attach the system.indexes.bson file from your dump directory to this case?&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="10641" name="system.indexes.bson" size="3158" author="visnup" created="Tue, 7 Dec 2010 22:01:07 +0000"/>
                    </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, 7 Dec 2010 21:08:36 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 10 weeks, 2 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            13 years, 10 weeks, 2 days 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>auto</customfieldvalue>
            <customfieldvalue>richard.kreuter</customfieldvalue>
            <customfieldvalue>visnup</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpakf:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>21477</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|ht0h3z:</customfieldvalue>

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