<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:13:11 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-6947] db.createCollection creates undefined fields which cause mongorestore to fail</title>
                <link>https://jira.mongodb.org/browse/SERVER-6947</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The db.createCollection() helper has some optional collection options which get set to undefined if they are not provided.  This causes mongodump to output undefined elements which can cause mongorestore to fail.&lt;/p&gt;

&lt;p&gt;The documents have the form:&lt;/p&gt;

&lt;p&gt;{ &quot;options&quot; : { &quot;create&quot; : &quot;coll&quot;, &quot;capped&quot; : &lt;/p&gt;
{ &quot;$undefined&quot; : true }
&lt;p&gt;, &quot;size&quot; : &lt;/p&gt;
{ &quot;$undefined&quot; : true }
&lt;p&gt; }, &quot;indexes&quot; : [ { &quot;v&quot; : 1, &quot;key&quot; : &lt;/p&gt;
{ &quot;_id&quot; : 1 }
&lt;p&gt;, &quot;ns&quot; : &quot;test.coll&quot;, &quot;name&quot; : &quot;id&quot; } ] }&lt;/p&gt;</description>
                <environment>Ubuntu 12.04 64bit using 10gen repositories</environment>
        <key id="49502">SERVER-6947</key>
            <summary>db.createCollection creates undefined fields which cause mongorestore to fail</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="sverch">Shaun Verch</assignee>
                                    <reporter username="mbailey@gild.com">Matt Bailey</reporter>
                        <labels>
                            <label>neweng</label>
                    </labels>
                <created>Wed, 5 Sep 2012 18:53:11 +0000</created>
                <updated>Fri, 19 Jan 2018 16:32:29 +0000</updated>
                            <resolved>Mon, 8 Apr 2013 21:48:45 +0000</resolved>
                                    <version>2.2.0</version>
                    <version>2.3.1</version>
                                    <fixVersion>2.2.5</fixVersion>
                    <fixVersion>2.4.4</fixVersion>
                    <fixVersion>2.5.0</fixVersion>
                                    <component>Admin</component>
                    <component>Tools</component>
                                        <votes>7</votes>
                                    <watches>22</watches>
                                                                                                                <comments>
                            <comment id="483487" author="tokudu" created="Fri, 17 Jan 2014 01:37:38 +0000"  >&lt;p&gt;If anyone is interested, I was able to fix the files with a few quick commands:&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;find . -name &apos;*.json&apos; -exec sed -i -e &apos;s/, \&quot;[a-z]*\&quot; : { \&quot;\$undefined\&quot; : [a-z]* }//g&apos; &quot;{}&quot; \;&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;perl -pi -e &apos;chomp if eof&apos; *.json&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</comment>
                            <comment id="351993" author="auto" created="Mon, 3 Jun 2013 22:37:12 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;Zarkantho&apos;, u&apos;name&apos;: u&apos;Shaun Verch&apos;, u&apos;email&apos;: u&apos;shaun.verch@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6947&quot; title=&quot;db.createCollection creates undefined fields which cause mongorestore to fail&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6947&quot;&gt;&lt;del&gt;SERVER-6947&lt;/del&gt;&lt;/a&gt; Do not create undefined fields in db.createCollection&lt;br/&gt;
Branch: v2.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/ad2cce872c16a6e1bd540d9570b3f40cb763ee5f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/ad2cce872c16a6e1bd540d9570b3f40cb763ee5f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="338485" author="auto" created="Sat, 18 May 2013 00:06:06 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-04-08T21:21:33Z&apos;, u&apos;name&apos;: u&apos;Shaun Verch&apos;, u&apos;email&apos;: u&apos;shaun.verch@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6947&quot; title=&quot;db.createCollection creates undefined fields which cause mongorestore to fail&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6947&quot;&gt;&lt;del&gt;SERVER-6947&lt;/del&gt;&lt;/a&gt; Do not create undefined fields in db.createCollection&lt;br/&gt;
Branch: v2.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c741fd006ce28c59ee7dd4f32c79672a62cc6a82&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c741fd006ce28c59ee7dd4f32c79672a62cc6a82&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="308889" author="sverch" created="Mon, 8 Apr 2013 21:48:45 +0000"  >&lt;p&gt;Recommending a backport so old versions will export files that they can import (see test description in my comment above)&lt;/p&gt;</comment>
                            <comment id="308887" author="auto" created="Mon, 8 Apr 2013 21:46:29 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-04-08T21:21:33Z&apos;, u&apos;name&apos;: u&apos;Shaun Verch&apos;, u&apos;email&apos;: u&apos;shaun.verch@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6947&quot; title=&quot;db.createCollection creates undefined fields which cause mongorestore to fail&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6947&quot;&gt;&lt;del&gt;SERVER-6947&lt;/del&gt;&lt;/a&gt; Do not create undefined fields in db.createCollection&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/930893b39d0aaf8db227642d78b54eaa6b697320&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/930893b39d0aaf8db227642d78b54eaa6b697320&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="308884" author="sverch" created="Mon, 8 Apr 2013 21:42:18 +0000"  >&lt;p&gt;Attaching files I used to test the fix.&lt;/p&gt;

&lt;p&gt;To summarize:&lt;/p&gt;

&lt;p&gt;Before patch that stops db.createCollection from creating undefined fields in 2.5:&lt;/p&gt;
&lt;div class=&apos;table-wrap&apos;&gt;
&lt;table class=&apos;confluenceTable&apos;&gt;&lt;tbody&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; dump &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; restore &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; result &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; master &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; r2.2.3 &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; FAIL &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; master &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; master &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; SUCCEED &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; r2.2.3 &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; r2.2.3 &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; FAIL &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; r2.2.3 &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; master &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; SUCCEED &lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;


&lt;p&gt;After patch that stops db.createCollection from creating undefined fields in 2.5:&lt;/p&gt;
&lt;div class=&apos;table-wrap&apos;&gt;
&lt;table class=&apos;confluenceTable&apos;&gt;&lt;tbody&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; dump &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; restore &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; result &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; master &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; r2.2.3 &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; SUCCEED &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; master &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; master &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; SUCCEED &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; r2.2.3 &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; r2.2.3 &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; FAIL &lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; r2.2.3 &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; master &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; SUCCEED &lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;


&lt;p&gt;See &quot;steps to reproduce&quot; for how I got these tables.&lt;/p&gt;</comment>
                            <comment id="301852" author="rassi@10gen.com" created="Fri, 29 Mar 2013 21:03:49 +0000"  >&lt;p&gt;Olivier, you&apos;re now running into &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-9182&quot; title=&quot;mongorestore won&amp;#39;t restore manually edited .metadata.json file if user editor adds trailing newline&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-9182&quot;&gt;&lt;del&gt;SERVER-9182&lt;/del&gt;&lt;/a&gt;.  After editing, run the following command to remove the trailing newline from metrics_ulta.metadata.json:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;perl -pi -e &apos;chomp if eof&apos; metrics_ulta.metadata.json&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;Then, retry your restore.&lt;/p&gt;</comment>
                            <comment id="294722" author="maxdec" created="Thu, 21 Mar 2013 09:28:25 +0000"  >&lt;p&gt;This issue is well described here &lt;a href=&quot;https://groups.google.com/forum/#!msg/mongodb-user/DzxWmfS6oSY/xdCCn8wndqUJ&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://groups.google.com/forum/#!msg/mongodb-user/DzxWmfS6oSY/xdCCn8wndqUJ&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="293911" author="olouv" created="Wed, 20 Mar 2013 14:29:12 +0000"  >&lt;p&gt;my files:&lt;/p&gt;

&lt;p&gt;metrics_ulta.metadata.json:&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;   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;{ &quot;options&quot; : { &quot;create&quot; : &quot;metrics_ulta&quot;, &quot;capped&quot; : { &quot;$undefined&quot; : true }, &quot;size&quot; : { &quot;$undefined&quot; : true }, &quot;max&quot; : { &quot;$undefined&quot; : true } }, &quot;indexes&quot; : [ { &quot;v&quot; : 1, &quot;key&quot; : { &quot;_id&quot; : 1 }, &quot;ns&quot; : &quot;col_ulta.metrics_ulta&quot;, &quot;name&quot; : &quot;_id_&quot; } ] }&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;metrics_ulta.merged.metadata.json (not sure if needed/used)&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;   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;{ &quot;indexes&quot; : [ { &quot;v&quot; : 1, &quot;key&quot; : { &quot;_id&quot; : 1 }, &quot;ns&quot; : &quot;col_ulta.metrics_ulta.merged&quot;, &quot;name&quot; : &quot;_id_&quot; } ] }&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;I&apos;m trying to restore to a new db:&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;$ ll&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;total 3.4M&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;-rw-r----- 1 mgcrea admin 3.3M Mar 20 15:45 metrics_ulta.bson&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;-rw-r----- 1 mgcrea admin  15K Mar 20 15:45 metrics_ulta.merged.bson&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;-rw-r----- 1 mgcrea admin  110 Mar 20 15:45 metrics_ulta.merged.metadata.json&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;-rw-r----- 1 mgcrea admin  249 Mar 20 15:45 metrics_ulta.metadata.json&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;$ mongorestore --db col_ulta_legacy .&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;connected to: 127.0.0.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;Wed Mar 20 15:45:48 ./metrics_ulta.bson&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;Wed Mar 20 15:45:48 	going into namespace [col_ulta_legacy.metrics_ulta]&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;assertion: 15936 Creating collection col_ulta_legacy.metrics_ulta failed. Errmsg: exception: specify size:&amp;lt;n&amp;gt; when capped is true&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;After editing the metadata:&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;$ cat metrics_ulta.metadata.json &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;{ &quot;options&quot; : { &quot;create&quot; : &quot;metrics_ulta&quot; }, &quot;indexes&quot; : [ { &quot;v&quot; : 1, &quot;key&quot; : { &quot;_id&quot; : 1 }, &quot;ns&quot; : &quot;col_ulta.metrics_ulta&quot;, &quot;name&quot; : &quot;_id_&quot; } ] }&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;$ mongorestore --db col_ulta_legacy .&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;connected to: 127.0.0.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;Wed Mar 20 15:48:38 ./metrics_ulta.bson&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;Wed Mar 20 15:48:38 	going into namespace [col_ulta_legacy.metrics_ulta]&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;assertion: 15934 JSON object size didn&apos;t match file size&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</comment>
                            <comment id="293826" author="scotthernandez" created="Wed, 20 Mar 2013 12:29:17 +0000"  >&lt;p&gt;Olivier, please post your *.metadata.json files so we can see what issue you are having.&lt;/p&gt;</comment>
                            <comment id="293820" author="olouv" created="Wed, 20 Mar 2013 12:20:45 +0000"  >&lt;p&gt;Encountered the same issue (&quot;Errmsg: exception: specify size:&amp;lt;n&amp;gt; when capped is true&quot;), tried to remove the undefined fields as suggested above by Scott, but I then get: &quot;assertion: 15934 JSON object size didn&apos;t match file size&quot;. Any ideas on how I can restore my backups?&lt;/p&gt;


&lt;p&gt;db version v2.2.3, pdfile version 4.5&lt;br/&gt;
Wed Mar 20 13:19:34 git version: f570771a5d8a3846eb7586eaffcf4c2f4a96bf08&lt;/p&gt;</comment>
                            <comment id="229996" author="bmaltby" created="Thu, 3 Jan 2013 15:19:54 +0000"  >&lt;p&gt;Ok thanks Scott, I think I can work around this now and upgrade from the 2.0.x to 2.2.x series which is what I was holding off on.&lt;/p&gt;</comment>
                            <comment id="229938" author="scotthernandez" created="Thu, 3 Jan 2013 14:14:11 +0000"  >&lt;p&gt;Yes, the shell needs to be fixed as well, not to generate the undefined values. Currently there are no other issues related to putting garbage in the collection metadata, but fixing the validation at the server will done as well, as you suggest.&lt;/p&gt;

&lt;p&gt;The server code is resilient to getting true/false values from may types and helpers shield the called from making this mistake. There are always chances for bugs but at the moment this is limited to the tools, where the initial fix will be made.&lt;/p&gt;

&lt;p&gt;Please see &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8066&quot; title=&quot;mongorestore should ignore undefined options&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8066&quot;&gt;&lt;del&gt;SERVER-8066&lt;/del&gt;&lt;/a&gt; for the shell fix&lt;/p&gt;</comment>
                            <comment id="229928" author="bmaltby" created="Thu, 3 Jan 2013 14:01:14 +0000"  >&lt;p&gt;But any collection created with a call to db.createCollection() in mongoshell causes this failure whilst any collection created by simply inserting a document doesn&apos;t. Therefore there are two paths which create the collection in the database in slightly different ways this means ,ignoring the tools, the database is different depending on how you create the collections. It&apos;s this difference that worries me and I think the bug is actually in the createCollection function not the tools (although the tools may need to cope with existing broken databases)&lt;/p&gt;

&lt;p&gt;I think the difference is that inserting a document to create the collection creates a collection with capped == false and size == 0 (size being the capped collection size) whilst a call to db.createCollection seems to create a collection with capped and size both undefined.&lt;br/&gt;
What I think therefore is if I could set capped to false and size to 0 through some db command then everything would work fine, and it&apos;s the fact that capped is undefined rather than false that worries me (what if someone does &apos;if (capped === false)&apos; somewhere else in the mongo code)&lt;/p&gt;

&lt;p&gt;As I say even if the tools are fixed to deal with the undefined values it sounds to me like a database with undefined values is probably in an incorrect state and it&apos;s createCollection in mongoshell that needs fixing and some way adding to patch existing bad databases.&lt;/p&gt;</comment>
                            <comment id="229921" author="scotthernandez" created="Thu, 3 Jan 2013 13:47:52 +0000"  >&lt;p&gt;Blake, the problem is not on the server but in the tools. There is nothing that need to be done to the running instance nor your production database files. Once the tools (mongodump/restore) are fixed then there will be no problem. You can fix the json files manually by simply removing the fields which contain $undefined values like so:&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;{ &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;options&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;create&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;coll&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;capped&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;$undefined&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;true&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;size&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;$undefined&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;true&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;indexes&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;v&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;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;key&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;_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; : 1 }, &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;ns&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.coll&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;name&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;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;/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: #008200; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;//into&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;options&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;create&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;coll&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;indexes&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;v&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;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;key&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;_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; : 1 }, &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;ns&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.coll&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;name&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;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;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;As Shaun mentioned another option it to create the collection before restoring which will cause the create step to be skipped and $undefined values from being used.&lt;/p&gt;</comment>
                            <comment id="229777" author="bmaltby" created="Thu, 3 Jan 2013 09:37:10 +0000"  >&lt;p&gt;Out of interest are there any server commands that could be run to &apos;repair&apos; a database collection which has these undefined fields, it&apos;d be quite nice to fix our production database which has some collections in these invalid states. I&apos;m wary that they could throw up further (and possibly more destructive) bugs. I don&apos;t really want to have to take the service down and do a backup/restore to fix.&lt;br/&gt;
Would these incorrect fields also get replicated with the incorrect state? or would a new replica added to a replica set create a clean db which I could then switch to as primary?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Blake&lt;/p&gt;</comment>
                            <comment id="202552" author="sverch" created="Thu, 29 Nov 2012 21:32:46 +0000"  >&lt;p&gt;Hi Blake,&lt;/p&gt;

&lt;p&gt;Thanks again for the feedback.  I&apos;m looking into this now and updated the ticket to reflect the underlying issue.&lt;/p&gt;

&lt;p&gt;As a workaround, if you create the empty collection before doing the import you don&apos;t get this error.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
~Shaun Verch&lt;/p&gt;</comment>
                            <comment id="202229" author="bmaltby" created="Thu, 29 Nov 2012 15:03:34 +0000"  >&lt;p&gt;This still fails on 2.2.2 with the given test case. The failure is now&lt;/p&gt;

&lt;p&gt;assertion: 15936 Creating collection test.coll failed. Errmsg: exception: specify size:&amp;lt;n&amp;gt; when capped is true&lt;/p&gt;

&lt;p&gt;Where the coll.metadata.json contains&lt;/p&gt;

&lt;p&gt;{ &quot;options&quot; : { &quot;create&quot; : &quot;coll&quot;, &quot;capped&quot; : &lt;/p&gt;
{ &quot;$undefined&quot; : true }
&lt;p&gt;, &quot;size&quot; : &lt;/p&gt;
{ &quot;$undefined&quot; : true }
&lt;p&gt; }, &quot;indexes&quot; : [ { &quot;v&quot; : 1, &quot;key&quot; : &lt;/p&gt;
{ &quot;_id&quot; : 1 }
&lt;p&gt;, &quot;ns&quot; : &quot;test.coll&quot;, &quot;name&quot; : &quot;&lt;em&gt;id&lt;/em&gt;&quot; } ] }&lt;/p&gt;

&lt;p&gt;So whilst the json is now valid the values for capped and size (and maybe others) are being written out incorrectly, and mongorestore probably does an if test on the value of capped which is true because it&apos;s an object of &lt;/p&gt;
{ &quot;$undefined&quot; : true }
&lt;p&gt; rather then null or false.&lt;/p&gt;

&lt;p&gt;Blake.&lt;/p&gt;</comment>
                            <comment id="199404" author="sverch" created="Mon, 26 Nov 2012 20:07:50 +0000"  >&lt;p&gt;Hi Blake,&lt;/p&gt;

&lt;p&gt;Thanks for the very clear and reproducible test case!  It looks like the root cause of this issue is &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-7104&quot; title=&quot;jsonString has incorrect output on undefined BSON elements.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-7104&quot;&gt;&lt;del&gt;SERVER-7104&lt;/del&gt;&lt;/a&gt;, which has been fixed in 2.2.2 and 2.3.0.&lt;/p&gt;

&lt;p&gt;Thanks!&lt;br/&gt;
~Shaun Verch&lt;/p&gt;</comment>
                            <comment id="196629" author="bmaltby" created="Thu, 22 Nov 2012 13:39:51 +0000"  >&lt;p&gt;As simple repro to create this crash is to start mongo shell and do&lt;/p&gt;

&lt;p&gt;use test&lt;br/&gt;
db.dropDatabase()&lt;br/&gt;
db.createCollection(&apos;coll&apos;)&lt;/p&gt;

&lt;p&gt;Dump that with mongodump and in the coll.metadata.json you get&lt;/p&gt;

&lt;p&gt;{options : &lt;/p&gt;
{ &quot;create&quot; : &quot;coll1&quot;, undefined, undefined }
&lt;p&gt;, indexes:[{ &quot;v&quot; : 1, &quot;key&quot; : &lt;/p&gt;
{ &quot;_id&quot; : 1 }
&lt;p&gt;, &quot;ns&quot; : &quot;test.coll1&quot;, &quot;name&quot; : &quot;&lt;em&gt;id&lt;/em&gt;&quot; }]}&lt;/p&gt;

&lt;p&gt;Where clearly that ,undefined, undefined is not valid JSON.&lt;br/&gt;
It seems like calling createCollection sets up some invalid options.&lt;/p&gt;

&lt;p&gt;You can also trigger this with an index doing&lt;/p&gt;

&lt;p&gt;db.coll.createIndex(&lt;/p&gt;
{&apos;test&apos;:1}
&lt;p&gt;, &lt;/p&gt;
{&apos;op1&apos;:1, &apos;op2&apos;:undefined}
&lt;p&gt;)&lt;/p&gt;

&lt;p&gt;this also puts some undefined values on their own in an object.&lt;/p&gt;

&lt;p&gt;Calling mongorestore on either of these fails with the b.empty() assertion.&lt;/p&gt;</comment>
                            <comment id="167007" author="scotthernandez" created="Sat, 22 Sep 2012 11:26:08 +0000"  >&lt;p&gt;Manish, please upload/attach those metadata.json files so we can look at them. Also, please include the output of the failed mongorestore, including the full error.&lt;/p&gt;</comment>
                            <comment id="166998" author="mpandit@ign.com" created="Sat, 22 Sep 2012 05:18:34 +0000"  >&lt;p&gt;Same thing happening to me with 2.2.0 on Centos 6. Took me 2 hours to upload a dump and bang I get a segfault with this exact trace when trying to restore it. I did not find any empty json or bson in there.&lt;/p&gt;

&lt;p&gt;&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;- 1 mpandit mpandit-pg 853M Sep 21 22:07 content.daily.bson&lt;br/&gt;
&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;- 1 mpandit mpandit-pg  306 Sep 21 22:07 content.daily.metadata.json&lt;br/&gt;
&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;- 1 mpandit mpandit-pg  31M Sep 21 22:12 content.monthly.bson&lt;br/&gt;
&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;- 1 mpandit mpandit-pg  246 Sep 21 22:12 content.monthly.metadata.json&lt;br/&gt;
&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;- 1 mpandit mpandit-pg  173 Sep 21 22:12 tokens.bson&lt;br/&gt;
&lt;del&gt;rw-r&lt;/del&gt;&lt;del&gt;r&lt;/del&gt;- 1 mpandit mpandit-pg  171 Sep 21 22:12 tokens.metadata.json&lt;/p&gt;

&lt;p&gt;I guess I&apos;ll have to revert to export/import and try to not forget building indices.&lt;/p&gt;</comment>
                            <comment id="166823" author="sverch" created="Fri, 21 Sep 2012 18:18:17 +0000"  >&lt;p&gt;Hi Aleksey,&lt;/p&gt;

&lt;p&gt;Could you provide the following?&lt;/p&gt;

&lt;p&gt;1. A list of all the files in your dump directory that you are trying to restore.&lt;br/&gt;
2. The contents of any .json files you find in your dump directory.&lt;br/&gt;
3. The sequence of commands you ran when this happened.&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;</comment>
                            <comment id="166625" author="aleksey.mykhailov" created="Fri, 21 Sep 2012 07:17:49 +0000"  >&lt;p&gt;I faced with the same issue&lt;br/&gt;
restore to the mongo 2.0.7 works fine , to the 2.2 - crashes it &lt;/p&gt;</comment>
                            <comment id="164100" author="mbailey@gild.com" created="Thu, 13 Sep 2012 18:50:15 +0000"  >&lt;p&gt;Unfortunately those data are long gone.  Trying to reproduce, and the restore just says file &amp;lt;file&amp;gt;.bson empty, skipping.  I assumed the failure was due to the failure of b.empty(), perhaps I was wrong.&lt;/p&gt;</comment>
                            <comment id="164088" author="sverch" created="Thu, 13 Sep 2012 18:33:26 +0000"  >&lt;p&gt;Could you post the full contents of the dump directory after you do the mongodump, including the actual contents of any *.json files you find there?  Thanks!&lt;/p&gt;</comment>
                            <comment id="163704" author="mbailey@gild.com" created="Wed, 12 Sep 2012 22:50:22 +0000"  >&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;$ mongodump remote-host:port&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;$ mogorestore ./dump&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;That&apos;s it.&lt;/p&gt;</comment>
                            <comment id="162748" author="sverch" created="Tue, 11 Sep 2012 00:13:20 +0000"  >&lt;p&gt;The error is coming from the JSON parser.  mongodump dumps some json files as well as bson files.  I was able to get an error from manipulating the json files, but not the one you are encountering here.  Could you post the command you used to run mongodump along with the contents of any json files you had in that directory?&lt;/p&gt;</comment>
                            <comment id="160766" author="mbailey@gild.com" created="Wed, 5 Sep 2012 18:59:23 +0000"  >&lt;p&gt;Yes, from a mongodump.&lt;/p&gt;</comment>
                            <comment id="160765" author="scotthernandez" created="Wed, 5 Sep 2012 18:57:44 +0000"  >&lt;p&gt;How did you get an empty bson file, mongodump?&lt;/p&gt;</comment>
                            <comment id="160763" author="mbailey@gild.com" created="Wed, 5 Sep 2012 18:54:42 +0000"  >&lt;p&gt;(quickfix is to remove the db/collection from the dump)&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="51119">SERVER-7104</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="63766">SERVER-8408</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="70213">SERVER-9182</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="133330">SERVER-13737</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="136752">SERVER-13968</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="394422">TOOLS-1699</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="400734">TOOLS-1718</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="484949">TOOLS-1934</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="25741" name="after_fix.txt" size="3368" author="sverch" created="Mon, 8 Apr 2013 21:42:18 +0000"/>
                            <attachment id="25742" name="before_fix.txt" size="2925" author="sverch" created="Mon, 8 Apr 2013 21:42:18 +0000"/>
                            <attachment id="25740" name="create_restore_test" size="1508" author="sverch" created="Mon, 8 Apr 2013 21:42:18 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>31.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[500A000000Y6s1sIAB]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 5 Sep 2012 18:57:44 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 4 weeks, 6 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/SERVER-7104'>SERVER-7104</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>david.golden@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            10 years, 4 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>aleksey.mykhailov</customfieldvalue>
            <customfieldvalue>tokudu</customfieldvalue>
            <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>bmaltby</customfieldvalue>
            <customfieldvalue>rassi</customfieldvalue>
            <customfieldvalue>mpandit@ign.com</customfieldvalue>
            <customfieldvalue>mbailey@gild.com</customfieldvalue>
            <customfieldvalue>maxdec</customfieldvalue>
            <customfieldvalue>olouv</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
            <customfieldvalue>sverch</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrnpqv:</customfieldvalue>

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

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

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;&amp;gt; use test&lt;br/&gt;
&amp;gt; db.dropDatabase()&lt;br/&gt;
&amp;gt; db.createCollection(&quot;coll&quot;)&lt;/p&gt;

&lt;p&gt;$ mongodump&lt;/p&gt;

&lt;p&gt;&amp;gt; db.coll.drop()&lt;/p&gt;

&lt;p&gt;$ mongorestore&lt;/p&gt;</customfieldvalue>

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

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

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