<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:02:30 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>[DOCS-11289] Document use of failIndexKeyTooLong parameter during restore</title>
                <link>https://jira.mongodb.org/browse/DOCS-11289</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;Moved to Docs:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;When using mongorestore, if users experience &quot;key too large to index&quot;, they should restart the DB with &lt;tt&gt;--setParameter failIndexKeyTooLong=0&lt;/tt&gt; and retry the restore.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Original:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;I&apos;ve just done a mongodump on 3.2 and now doing a restore on a 3.4 server. I&apos;m getting errors like:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;code&lt;/tt&gt;&lt;br/&gt;
2017-07-22T21:17:26.085+0000	restoring indexes for collection jerome5.BugReport from metadata&lt;br/&gt;
2017-07-22T21:17:26.555+0000	Failed: jerome5.BugReport: error creating indexes for jerome5.BugReport: createIndex error: WiredTigerIndex::insert: key too large to index, failing  69040 { : &quot;Cache Thu Apr 02 21:00:01 UTC 2015 sourceText mismatch: &amp;lt;!DOCTYPE html&amp;gt;&lt;br/&gt;
&amp;lt;html&amp;gt;&lt;br/&gt;
&amp;lt;head&amp;gt;&lt;br/&gt;
&amp;lt;base href=&quot;http://articles.if.ua/&quot; /&amp;gt;&lt;br/&gt;
&amp;lt;link rel=&quot;StyleSheet&quot; hr...&quot;, : ObjectId(&apos;552605abe4b0b601f78f8700&apos;) }&lt;br/&gt;
&lt;tt&gt;code&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;I don&apos;t see any option in &lt;a href=&quot;https://docs.mongodb.com/manual/reference/program/mongorestore/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.com/manual/reference/program/mongorestore/&lt;/a&gt; to continue after insert errors like this. Shouldn&apos;t it be possible to force insert of documents that can&apos;t be indexed? &lt;/p&gt;

&lt;p&gt;I don&apos;t want to skip indexes for all with --noIndexRestore so what to do? &lt;/p&gt;&lt;/blockquote&gt;</description>
                <environment></environment>
        <key id="407272">DOCS-11289</key>
            <summary>Document use of failIndexKeyTooLong parameter during restore</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="13201">Fixed</resolution>
                                        <assignee username="kay.kim@mongodb.com">Kay Kim</assignee>
                                    <reporter username="niccottrell">Nic Cottrell (Personal)</reporter>
                        <labels>
                    </labels>
                <created>Sun, 23 Jul 2017 09:01:20 +0000</created>
                <updated>Sun, 29 Oct 2023 13:58:24 +0000</updated>
                            <resolved>Tue, 6 Feb 2018 20:15:26 +0000</resolved>
                                                                        <due></due>
                            <votes>1</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="1797219" author="xgen-internal-githook" created="Tue, 6 Feb 2018 20:14:20 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;kay.kim@10gen.com&apos;, &apos;name&apos;: &apos;kay&apos;, &apos;username&apos;: &apos;kay-kim&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-11289&quot; title=&quot;Document use of failIndexKeyTooLong parameter during restore&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-11289&quot;&gt;&lt;del&gt;DOCS-11289&lt;/del&gt;&lt;/a&gt;: mongorestore and index key length limit&lt;br/&gt;
Branch: v3.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/95719cbe68e0688c24a4f7fb8efb2bde1f1778ab&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/95719cbe68e0688c24a4f7fb8efb2bde1f1778ab&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1797218" author="xgen-internal-githook" created="Tue, 6 Feb 2018 20:14:00 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;kay.kim@10gen.com&apos;, &apos;name&apos;: &apos;kay&apos;, &apos;username&apos;: &apos;kay-kim&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-11289&quot; title=&quot;Document use of failIndexKeyTooLong parameter during restore&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-11289&quot;&gt;&lt;del&gt;DOCS-11289&lt;/del&gt;&lt;/a&gt;: mongorestore and index key length limit&lt;br/&gt;
Branch: v3.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/20bfb91a1ae1a3f601ace13b4366fc45849bc9f9&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/20bfb91a1ae1a3f601ace13b4366fc45849bc9f9&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1797217" author="xgen-internal-githook" created="Tue, 6 Feb 2018 20:13:45 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;kay.kim@10gen.com&apos;, &apos;name&apos;: &apos;kay&apos;, &apos;username&apos;: &apos;kay-kim&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-11289&quot; title=&quot;Document use of failIndexKeyTooLong parameter during restore&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-11289&quot;&gt;&lt;del&gt;DOCS-11289&lt;/del&gt;&lt;/a&gt;: mongorestore and index key length limit&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/76b2f14fbfb835bfdc6614be46ca5e12fee730e9&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/76b2f14fbfb835bfdc6614be46ca5e12fee730e9&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1797203" author="david.golden" created="Tue, 6 Feb 2018 20:00:29 +0000"  >&lt;p&gt;LGTM&lt;/p&gt;</comment>
                            <comment id="1797159" author="kay.kim@10gen.com" created="Tue, 6 Feb 2018 19:24:53 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=david.golden&quot; class=&quot;user-hover&quot; rel=&quot;david.golden&quot;&gt;david.golden&lt;/a&gt; &amp;#8211; let me know if the below is okay:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://docs-mongodbcom-staging.corp.mongodb.com/kay/restore-11289/reference/program/mongorestore.html#rebuild-indexes&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs-mongodbcom-staging.corp.mongodb.com/kay/restore-11289/reference/program/mongorestore.html#rebuild-indexes&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1796824" author="kay.kim@10gen.com" created="Tue, 6 Feb 2018 16:17:49 +0000"  >&lt;p&gt;Great.  will do.&lt;/p&gt;</comment>
                            <comment id="1796819" author="david.golden" created="Tue, 6 Feb 2018 16:16:32 +0000"  >&lt;p&gt;I think a note on the mongorestore page linking to the failIndexKeyTooLong parameter entry is sufficient.&lt;/p&gt;</comment>
                            <comment id="1782027" author="david.golden" created="Tue, 23 Jan 2018 14:02:08 +0000"  >&lt;p&gt;You&apos;d have to open a SERVER ticket for that.  mongorestore sends the index creation command as a batch with all indexes so we don&apos;t know which index or document was the problem either.&lt;/p&gt;</comment>
                            <comment id="1695507" author="david.golden" created="Wed, 11 Oct 2017 03:19:14 +0000"  >&lt;p&gt;Updated ticket to indicate that the fix is to document the failIndexKeyTooLong parameter.&lt;/p&gt;</comment>
                            <comment id="1634460" author="william.banfield" created="Fri, 28 Jul 2017 13:59:58 +0000"  >&lt;p&gt;It likely could, but the main priority of the tool is to efficiently load the data into mongodb. It mostly tries to avoid performing operations that should be more carefully considered by a DBA. I&apos;m placing this issue on the backlog while we consider its priority &lt;/p&gt;</comment>
                            <comment id="1633138" author="niccottrell" created="Thu, 27 Jul 2017 08:52:48 +0000"  >&lt;p&gt;Thanks - already found failIndexKeyTooLong as a workaround - successfully, but couldn&apos;t mongorestore catch this error and continue with the next document in the bson?&lt;/p&gt;</comment>
                            <comment id="1632755" author="william.banfield" created="Wed, 26 Jul 2017 20:46:30 +0000"  >&lt;p&gt;Hey &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=niccottrell&quot; class=&quot;user-hover&quot; rel=&quot;niccottrell&quot;&gt;niccottrell&lt;/a&gt;, Thanks for opening this issue!&lt;/p&gt;

&lt;p&gt;The failure you&apos;re seeing is from the database. It&apos;s failing trying to insert the index document and the tool would not be able to &apos;force&apos; it in. As a workaround, you can connect to the DB and set failIndexKeyTooLong:false on the destination database. &lt;/p&gt;

&lt;p&gt;Please follow this ticket as we further consider this feature request. &lt;/p&gt;</comment>
                            <comment id="1629451" author="niccottrell" created="Sun, 23 Jul 2017 09:10:06 +0000"  >&lt;p&gt;Maybe --setParameter failIndexKeyTooLong=0 would help? Can this be added to the mongorestore docs?&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>13.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 26 Jul 2017 20:46:30 +0000</customfieldvalue>

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


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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 1 week, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>david.golden@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>kay.kim@mongodb.com</customfieldvalue>
            <customfieldvalue>niccottrell</customfieldvalue>
            <customfieldvalue>william.banfield</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htbgm7:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</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_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htb2ov:</customfieldvalue>

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