<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:32:43 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-13737] CollectionOptions parser should skip &quot;size&quot;/&quot;max&quot; elements if values non-numeric</title>
                <link>https://jira.mongodb.org/browse/SERVER-13737</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;div class=&quot;panel&quot; style=&quot;background-color: #EEEEEE;border-color: #ccc;border-width: 1px;&quot;&gt;&lt;div class=&quot;panelHeader&quot; style=&quot;border-bottom-width: 1px;border-bottom-color: #ccc;background-color: #6CB33F;&quot;&gt;&lt;b&gt;Issue Status as of May 14, 2014&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;panelContent&quot; style=&quot;background-color: #EEEEEE;&quot;&gt;
&lt;p&gt;&lt;b&gt;ISSUE SUMMARY&lt;/b&gt;&lt;br/&gt;
Prior to version 2.4.4 (and 2.2.5 in the 2.2 cycle), a call to &lt;tt&gt;db.createCollection()&lt;/tt&gt; would set certain collection options to a &lt;tt&gt;null&lt;/tt&gt; value rather than omitting them if they were not explicitly set by the user (see &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; for details). Version 2.4 of the server ignored these &lt;tt&gt;null&lt;/tt&gt; values, but 2.6 fails with an error message upon encountering them. This may cause problems when making copies of collections using a 2.6 server; affected commands include &lt;a href=&quot;http://docs.mongodb.org/manual/reference/command/cloneCollection/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;cloneCollection&lt;/tt&gt;&lt;/a&gt;   and &lt;a href=&quot;http://docs.mongodb.org/manual/reference/command/repairDatabase/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;repairDatabase&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;To verify if a collection is affected by this issue, inspect the &lt;tt&gt;system.namespaces&lt;/tt&gt; collection of each database for any documents that have &lt;tt&gt;null&lt;/tt&gt; values for &lt;tt&gt;options.size&lt;/tt&gt; or &lt;tt&gt;options.max&lt;/tt&gt; fields. Here is an example that shows an affected collection &quot;test.foo&quot;:&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;&amp;gt; db.system.namespaces.find()&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;{ &quot;name&quot; : &quot;test.system.indexes&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;{ &quot;name&quot; : &quot;test.foo.$_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;   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;name&quot; : &quot;test.foo&quot;, &quot;options&quot; : { &quot;create&quot; : &quot;foo&quot;, &quot;capped&quot; : null, &quot;size&quot; : null } }&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;&lt;b&gt;USER IMPACT&lt;/b&gt;&lt;br/&gt;
Operations that copy collections fail with an error message. &lt;/p&gt;

&lt;p&gt;&lt;b&gt;WORKAROUNDS&lt;/b&gt;&lt;br/&gt;
N/A&lt;/p&gt;

&lt;p&gt;&lt;b&gt;AFFECTED VERSIONS&lt;/b&gt;&lt;br/&gt;
MongoDB production releases 2.6.0 and 2.6.1 are affected by this issue.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;FIX VERSION&lt;/b&gt;&lt;br/&gt;
The fix is included in the 2.6.2 production release. &lt;/p&gt;

&lt;p&gt;&lt;b&gt;RESOLUTION DETAILS&lt;/b&gt;&lt;br/&gt;
The procedure that parses collection options ignores values for &lt;tt&gt;size&lt;/tt&gt; and &lt;tt&gt;max&lt;/tt&gt; if they are non-numeric, rather than returning an error and aborting the command.&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;h6&gt;&lt;a name=&quot;Originaldescription&quot;&gt;&lt;/a&gt;Original description&lt;/h6&gt;

&lt;p&gt;When attempting to clone collection from live at version 2.4.3 to dev at version 2.6.0 recieved error. &lt;/p&gt;

&lt;p&gt;shard2:PRIMARY&amp;gt; db.runCommand(&lt;/p&gt;
{cloneCollection:&quot;homescom_reporting.realmedia_campaign_daily_sum&quot;,from:&quot;mongodb11.dc3.homes.com:27017&quot;}
&lt;p&gt;);&lt;/p&gt;
{ &quot;ok&quot; : 0, &quot;errmsg&quot; : &quot;BadValue size has to be a number&quot; }

&lt;p&gt;Is this a cross version issue or is there a problem cloneCollection in 2.6?&lt;/p&gt;</description>
                <environment></environment>
        <key id="133330">SERVER-13737</key>
            <summary>CollectionOptions parser should skip &quot;size&quot;/&quot;max&quot; elements if values non-numeric</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="rassi">J Rassi</assignee>
                                    <reporter username="robert.jobson@dominionenterprises.com">Robert Jobson</reporter>
                        <labels>
                    </labels>
                <created>Fri, 25 Apr 2014 14:43:23 +0000</created>
                <updated>Mon, 11 Jul 2016 17:19:18 +0000</updated>
                            <resolved>Wed, 21 May 2014 23:48:34 +0000</resolved>
                                    <version>2.4.10</version>
                                    <fixVersion>2.6.2</fixVersion>
                    <fixVersion>2.7.1</fixVersion>
                                    <component>Storage</component>
                                        <votes>0</votes>
                                    <watches>11</watches>
                                                                                                                <comments>
                            <comment id="595831" author="xgen-internal-githook" created="Sun, 25 May 2014 02:51:21 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;monkey101&apos;, u&apos;name&apos;: u&apos;Dan Pasette&apos;, u&apos;email&apos;: u&apos;dan@10gen.com&apos;}
&lt;p&gt;Message:  &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-13737&quot; title=&quot;CollectionOptions parser should skip &amp;quot;size&amp;quot;/&amp;quot;max&amp;quot; elements if values non-numeric&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-13737&quot;&gt;&lt;del&gt;SERVER-13737&lt;/del&gt;&lt;/a&gt; CollectionOptions parser skip size/max if non-numeric&lt;/p&gt;

&lt;p&gt; (backport 0a0ba030626243e3482830f485a3ecd79da1b7c8)&lt;br/&gt;
Branch: v2.6&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c02fb34f01e88c7f49d3887042f947060a4f4a90&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c02fb34f01e88c7f49d3887042f947060a4f4a90&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="592397" author="xgen-internal-githook" created="Wed, 21 May 2014 23:48:12 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jrassi&apos;, u&apos;name&apos;: u&apos;Jason Rassi&apos;, u&apos;email&apos;: u&apos;rassi@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-13737&quot; title=&quot;CollectionOptions parser should skip &amp;quot;size&amp;quot;/&amp;quot;max&amp;quot; elements if values non-numeric&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-13737&quot;&gt;&lt;del&gt;SERVER-13737&lt;/del&gt;&lt;/a&gt; CollectionOptions parser skip size/max if non-numeric&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/0a0ba030626243e3482830f485a3ecd79da1b7c8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/0a0ba030626243e3482830f485a3ecd79da1b7c8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="592396" author="xgen-internal-githook" created="Wed, 21 May 2014 23:48:09 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jrassi&apos;, u&apos;name&apos;: u&apos;Jason Rassi&apos;, u&apos;email&apos;: u&apos;rassi@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-13737&quot; title=&quot;CollectionOptions parser should skip &amp;quot;size&amp;quot;/&amp;quot;max&amp;quot; elements if values non-numeric&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-13737&quot;&gt;&lt;del&gt;SERVER-13737&lt;/del&gt;&lt;/a&gt; Pull CollectionOptions out into libcollection_options.a&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/eb8b368edb239a7a698d734dedcf4f6950bf64ec&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/eb8b368edb239a7a698d734dedcf4f6950bf64ec&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="563318" author="robert.jobson@dominionenterprises.com" created="Fri, 25 Apr 2014 19:51:19 +0000"  >&lt;p&gt;I would only use createCollection for rare special cases. The problem here is other users. I appreciate the additional information and I agree the cloneCollection command should be more robust whether skipping them as you suggest or allowing type 10 (null) for backwards compatibility.&lt;/p&gt;
</comment>
                            <comment id="563274" author="thomasr" created="Fri, 25 Apr 2014 19:20:00 +0000"  >&lt;p&gt;Hi Robert,&lt;/p&gt;

&lt;p&gt;Following up on this issue, my colleague &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=rassi%4010gen.com&quot; class=&quot;user-hover&quot; rel=&quot;rassi@10gen.com&quot;&gt;rassi@10gen.com&lt;/a&gt; just pointed me to &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;, which I think is the root cause of this problem. Using the &lt;a href=&quot;http://docs.mongodb.org/v2.4/reference/method/db.createCollection/#db.createCollection&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;db.createCollection()&lt;/tt&gt;&lt;/a&gt; shell helper would create these null values prior to version 2.4.4. I believe this is where they came from in your case.&lt;/p&gt;

&lt;p&gt;The recovery steps to remove these fields in the metadata remain as described above. Additionally, I recommend that you do not use the &lt;a href=&quot;http://docs.mongodb.org/v2.4/reference/method/db.createCollection/#db.createCollection&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;db.createCollection()&lt;/tt&gt;&lt;/a&gt; shell helper anymore until you have upgraded your system to a more recent version. You can use the &lt;a href=&quot;http://docs.mongodb.org/manual/reference/command/create/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;create&lt;/tt&gt;&lt;/a&gt; command instead, that offers the same functionality with a slightly different syntax.&lt;/p&gt;

&lt;p&gt;As &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; is already fixed, I&apos;m going to change this ticket and turn it into a bug against the &lt;a href=&quot;http://docs.mongodb.org/manual/reference/command/cloneCollection/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;cloneCollection&lt;/tt&gt;&lt;/a&gt; command, which should skip these null values in the future, so that affected users can still clone these collections.&lt;/p&gt;

&lt;p&gt;Please let me know if you have additional questions.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                            <comment id="563273" author="robert.jobson@dominionenterprises.com" created="Fri, 25 Apr 2014 19:19:09 +0000"  >&lt;p&gt;Thanks for the information. &lt;/p&gt;</comment>
                            <comment id="563241" author="thomasr" created="Fri, 25 Apr 2014 18:56:44 +0000"  >&lt;p&gt;Hi Robert,&lt;/p&gt;

&lt;p&gt;The issue seems to be that the additional options &quot;capped&quot; and &quot;size&quot; each have the value &lt;tt&gt;null&lt;/tt&gt; in the collection metadata. I could reproduce the problem by explicitly using the &lt;a href=&quot;http://docs.mongodb.org/manual/reference/command/create/#dbcmd.create&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;create&lt;/tt&gt;&lt;/a&gt; command on a 2.4.x server and forcing these values with:&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;&amp;gt; db.runCommand( { create: &quot;null_coll&quot;, capped: null, size: null } )&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;ok&quot; : 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;&amp;gt; db.system.namespaces.find({name: &quot;test.null_coll&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;{ &quot;name&quot; : &quot;test.null_coll&quot;, &quot;options&quot; : { &quot;create&quot; : &quot;null_coll&quot;, &quot;capped&quot; : null, &quot;size&quot; : null } }&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;Trying to clone this collection to another host now returns the same error:&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;&amp;gt; db.runCommand( {cloneCollection: &quot;test.null_coll&quot;, from: &quot;localhost:27017&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;{ &quot;ok&quot; : 0, &quot;errmsg&quot; : &quot;BadValue size has to be a number&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 was not able to get the same &lt;tt&gt;null&lt;/tt&gt; options when using the shell helper &lt;tt&gt;db.createCollection()&lt;/tt&gt;. Running a 2.6.0 server also prevented the bad options so this looks limited to an issue in the 2.4.x server (independent of the shell version).&lt;/p&gt;

&lt;p&gt;The question is how your metadata ended up with these additional fields. Can you tell me how you created the collection on the live server? Did you specify the size or capped options? Are you using any third-party tools to create collections in MongoDB?&lt;/p&gt;

&lt;p&gt;To fix this issue, you can execute the following steps during a maintenance window:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;copy the contents of the collection with the &lt;a href=&quot;http://docs.mongodb.org/manual/reference/method/db.collection.copyTo/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;db.&amp;lt;collection&amp;gt;.copyTo()&lt;/tt&gt;&lt;/a&gt; shell command to a new collection, e.g. &lt;tt&gt;temp_collection&lt;/tt&gt;&lt;/li&gt;
	&lt;li&gt;drop the original collection with the &lt;a href=&quot;http://docs.mongodb.org/manual/reference/method/db.collection.drop/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;db.&amp;lt;collection&amp;gt;.drop()&lt;/tt&gt;&lt;/a&gt; command&lt;/li&gt;
	&lt;li&gt;finally rename &lt;tt&gt;temp_collection&lt;/tt&gt; to the original name, with the &lt;a href=&quot;http://docs.mongodb.org/manual/reference/method/db.collection.renameCollection/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;db.&amp;lt;collection&amp;gt;.renameCollection()&lt;/tt&gt;&lt;/a&gt; command.&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;After going through these steps, you can confirm that the &lt;tt&gt;capped&lt;/tt&gt; and &lt;tt&gt;size&lt;/tt&gt; options are no longer present in &lt;tt&gt;db.system.namespaces&lt;/tt&gt; for the particular collection document. The collection should then again be clonable as expected.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Note&lt;/b&gt;: this procedure does not retain the indexes and you would have to re-create them on the new collection. I also recommend that you take a backup of your database before executing these steps.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Thomas&lt;/p&gt;

</comment>
                            <comment id="563159" author="robert.jobson@dominionenterprises.com" created="Fri, 25 Apr 2014 17:59:31 +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;mongodbprod:PRIMARY&amp;gt; db.getSiblingDB(&quot;homescom_reporting&quot;).system.namespaces.find({name: &quot;homescom_reporting.realmedia_campaign_daily_sum&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;{ &quot;name&quot; : &quot;homescom_reporting.realmedia_campaign_daily_sum&quot;, &quot;options&quot; : { &quot;create&quot; : &quot;realmedia_campaign_daily_sum&quot;, &quot;capped&quot; : null, &quot;size&quot; : null } }&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="562959" author="rassi@10gen.com" created="Fri, 25 Apr 2014 15:51:59 +0000"  >&lt;p&gt;Hi Robert,&lt;/p&gt;

&lt;p&gt;I&apos;d like to gather additional information to further diagnose this issue.&lt;/p&gt;

&lt;p&gt;Could you connect to mongodb11.dc3.homes.com:27017 (the 2.4.3 node) with the mongo shell and paste the output of running the following?&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;db.getSiblingDB(&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;homescom_reporting&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;).system.namespaces.find({name: &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;homescom_reporting.realmedia_campaign_daily_sum&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;Thanks.&lt;/p&gt;

&lt;p&gt;~ Jason Rassi&lt;/p&gt;</comment>
                            <comment id="562878" author="robert.jobson@dominionenterprises.com" created="Fri, 25 Apr 2014 14:49:21 +0000"  >&lt;p&gt;I was able to work around by &lt;br/&gt;
copying the collection to a new database&lt;br/&gt;
cloning the whole new database over to dev &amp;#8211; db.cloneDatabase();&lt;br/&gt;
copying the collection back into the original database on the dev server. &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="136297">SERVER-13927</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="136752">SERVER-13968</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="49502">SERVER-6947</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="170954">SERVER-16293</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>10.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12451" key="com.atlassian.jira.plugin.system.customfieldtypes:multiversion">
                        <customfieldname>Backport Completed</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="13820">2.6.2</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 25 Apr 2014 15:11:01 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        9 years, 38 weeks, 4 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/WRITING-787'>WRITING-787</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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            9 years, 38 weeks, 4 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>rassi</customfieldvalue>
            <customfieldvalue>robert.jobson@dominionenterprises.com</customfieldvalue>
            <customfieldvalue>thomas.rueckstiess@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrlw2f:</customfieldvalue>

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

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

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

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