<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:18:00 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-8658] moveChunk error: &quot;Invalid modifier specified: _id&quot; (mongo 2.2.3)</title>
                <link>https://jira.mongodb.org/browse/SERVER-8658</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;From this thread: &lt;a href=&quot;https://groups.google.com/forum/?hl=en&amp;amp;fromgroups=#!topic/mongodb-user/i8Te7ip2T-k&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://groups.google.com/forum/?hl=en&amp;amp;fromgroups=#!topic/mongodb-user/i8Te7ip2T-k&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I have had a sharded DB with a single shard for a while. When I added a second shard on Monday, 3 of the chunks failed to migrate - and they are in a continuous loop of starting migrating, fail (invalid modified specified) every few seconds.&lt;/p&gt;

&lt;p&gt;(In addition the chunk mentioned in the above thread, there are 2 other chunks that behave the same way &lt;b&gt;except&lt;/b&gt; that they don&apos;t generate any errors, they just abort in step 2 without explanation)&lt;/p&gt;

&lt;p&gt;gist with some more relevant logging (starting from when I added the second shard): &lt;a href=&quot;https://gist.github.com/Alex-Ikanow/5008868&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://gist.github.com/Alex-Ikanow/5008868&lt;/a&gt;&lt;/p&gt;</description>
                <environment>Centos 5.5/6.3, driver 2.7.3</environment>
        <key id="66049">SERVER-8658</key>
            <summary>moveChunk error: &quot;Invalid modifier specified: _id&quot; (mongo 2.2.3)</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="5">Cannot Reproduce</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="apiggott@ikanow.com">Alex Piggott</reporter>
                        <labels>
                    </labels>
                <created>Thu, 21 Feb 2013 22:27:31 +0000</created>
                <updated>Fri, 7 Mar 2014 00:15:04 +0000</updated>
                            <resolved>Wed, 20 Mar 2013 20:00:16 +0000</resolved>
                                    <version>2.2.3</version>
                                                    <component>Write Ops</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="288549" author="apiggott@ikanow.com" created="Wed, 13 Mar 2013 21:28:33 +0000"  >&lt;p&gt;I was leaving my DB in this state, in case anyone wanted to come and have a look. Unfortunately over the weekend (it&apos;s always over the weekend!) things worsened and the DB started not responding to find() commands with errors like:&lt;/p&gt;

&lt;p&gt;com.mongodb.CommandResult$CommandFailure: command failed [command failed &lt;span class=&quot;error&quot;&gt;&amp;#91;count&amp;#93;&lt;/span&gt; { &quot;serverUsed&quot; : &quot;localhost:27017&quot; , &quot;errmsg&quot; : &quot;exception: DBClientBase::findN: transport error: 10.60.18.179:27019 ns: admin.$cmd query: { setShardVersion: \&quot;doc_metadata.metadata\&quot;, configdb: \&quot;demo-db-config-1.rr.ikanow.com:27016,demo-db-config-2.rr.ikanow.com:27016,demo-db-config-3.rr.ikanow.com:27016\&quot;, version: Timestamp 232000|0, versionEpoch: ObjectId(&apos;000000000000000000000000&apos;), serverID: ObjectId(&apos;511bcacc92a322bca264c8db&apos;), shard: \&quot;replica_set2\&quot;, shardHost: \&quot;replica_set2/10.226.114.59:27019,10.60.18.179:27019\&quot;, $auth: {} }&quot; , &quot;code&quot; : 10276 , &quot;ok&quot; : 0.0}&lt;/p&gt;

&lt;p&gt;It also deleted one of the collections that was returning the original moveChunk errors, and then complained:&lt;/p&gt;

&lt;p&gt;Sat Mar  9 10:32:33 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; moveChunk result: &lt;/p&gt;
{ errmsg: &quot;ns not found, should be impossible&quot;, ok: 0.0 }
&lt;p&gt;Sat Mar  9 10:32:33 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; balancer move failed: &lt;/p&gt;
{ errmsg: &quot;ns not found, should be impossible&quot;, ok: 0.0 }
&lt;p&gt; from: replica_set1 to: replica_set2 chunk:  min: &lt;/p&gt;
{ _id: MinKey }
&lt;p&gt; max: &lt;/p&gt;
{ _id: MinKey }

&lt;p&gt;(cheeky!)&lt;/p&gt;

&lt;p&gt;Anyway, I fixed it by deleting all the collections that had ever returned those errors and then using mongoimport via mongos to bring them back in again.&lt;/p&gt;

&lt;p&gt;So I suppose you can close this issue, I&apos;m a bit surprised nobody stopped by!&lt;/p&gt;</comment>
                            <comment id="272563" author="apiggott@ikanow.com" created="Thu, 21 Feb 2013 22:50:56 +0000"  >&lt;p&gt;(I should add that my applications were writing data to the database as I added the second shard, if this isn&apos;t supported - I didn&apos;t see that documented anywhere - then apologies and help how do I recover?!)&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 49 weeks 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>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            10 years, 49 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>apiggott@ikanow.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrn5dj:</customfieldvalue>

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

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

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