<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:55:34 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-933] move migrate handling to mognod WAS: temp oplog issues WAS: Assertion error when moving chunks</title>
                <link>https://jira.mongodb.org/browse/SERVER-933</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I&apos;ve got an 8-machine mongodb cluster set up, with 2 mongodb servers running on each machine (so 16 mongod processes total, plus a config server running on a 9th machine). I&apos;ve enabled sharding on a collection, using the &quot;time&quot; field as a key (I initially tried sharding on the _id field, but when I did that the chunks would never split i.e. no matter how much data I inserted, there was only ever one entry in config.chunks).&lt;/p&gt;

&lt;p&gt;When I start inserting data into this collection, I can see in config.chunks that additional chunks are being created on different machines throughout the cluster, as expected. But after a while, it stops creating chunks on new shards and just keeps creating chunks on the same shard over and over. From looking at the logs it seems like its trying to move chunks and failing, but I&apos;m inserting things in order (i.e. the &quot;time&quot; field is always the current time), so I&apos;m not sure why it&apos;s even trying to move chunks (shouldn&apos;t it just create a new chunk and start inserting things there?).&lt;/p&gt;

&lt;p&gt;Here&apos;s what I&apos;m seeing in the mongos log:&lt;/p&gt;


&lt;p&gt;Fri Oct  9 18:13:28 autosplitting test.foo size: 62662123 shard: shard  ns:test.foo shard: mongod1:10001 min: &lt;/p&gt;
{ time: MinKey }
&lt;p&gt; max: &lt;/p&gt;
{ time: MaxKey }
&lt;p&gt;...&lt;br/&gt;
Fri Oct  9 18:13:28 moving chunk (auto): shard  ns:test.foo shard: mongod1:10001 min: &lt;/p&gt;
{ time: MinKey }
&lt;p&gt; max: &lt;/p&gt;
{ time: new Date(1255112014526) }
&lt;p&gt; to: mongod2.com:10000 #objcets: 0&lt;br/&gt;
Fri Oct  9 18:13:28 moving chunk ns: test.foo moving chunk: shard  ns:test.foo shard: mongod1:10001 min: &lt;/p&gt;
{ time: MinKey }
&lt;p&gt; max: &lt;/p&gt;
{ time: new Date(1255112014526) }
&lt;p&gt; mongod1:10001 -&amp;gt; mongod2:10000&lt;/p&gt;


&lt;p&gt;And after a while:&lt;/p&gt;


&lt;p&gt;Fri Oct  9 18:28:32 Assertion: moveAndCommit failed: movechunk.start failed: &lt;/p&gt;
{ errmsg: &quot;&quot;, ok: 0.0 }
&lt;p&gt;Fri Oct  9 18:28:32 UserException: moveAndCommit failed: movechunk.start failed: &lt;/p&gt;
{ errmsg: &quot;&quot;, ok: 0.0 }</description>
                <environment>mongodb 1.1.1, java driver 0.11, ubuntu 9.04</environment>
        <key id="10724">SERVER-933</key>
            <summary>move migrate handling to mognod WAS: temp oplog issues WAS: Assertion error when moving chunks</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="eliot">Eliot Horowitz</assignee>
                                    <reporter username="mfoemmel">Matthew Foemmel</reporter>
                        <labels>
                    </labels>
                <created>Fri, 9 Oct 2009 14:58:22 +0000</created>
                <updated>Tue, 12 Jul 2016 00:30:18 +0000</updated>
                            <resolved>Fri, 2 Jul 2010 13:14:01 +0000</resolved>
                                                    <fixVersion>1.5.4</fixVersion>
                                    <component>Sharding</component>
                                        <votes>1</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="15314" author="auto" created="Fri, 2 Jul 2010 01:50:18 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;erh&apos;, &apos;name&apos;: &apos;Eliot Horowitz&apos;, &apos;email&apos;: &apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: fix a migrate race condition &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-933&quot; title=&quot;move migrate handling to mognod WAS: temp oplog issues WAS: Assertion error when moving chunks&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-933&quot;&gt;&lt;del&gt;SERVER-933&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/b232b213bae815783359354fdfff3c22ec5e4125&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/b232b213bae815783359354fdfff3c22ec5e4125&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="15311" author="auto" created="Fri, 2 Jul 2010 00:56:17 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;erh&apos;, &apos;name&apos;: &apos;Eliot Horowitz&apos;, &apos;email&apos;: &apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: finish first cut at migrate in mognod and lots of fixes &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-933&quot; title=&quot;move migrate handling to mognod WAS: temp oplog issues WAS: Assertion error when moving chunks&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-933&quot;&gt;&lt;del&gt;SERVER-933&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/92e8ad86faaf3245893f309a7cae44dee9261108&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/92e8ad86faaf3245893f309a7cae44dee9261108&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="14763" author="eliot" created="Mon, 14 Jun 2010 18:55:48 +0000"  >&lt;p&gt;being in mongos doesn&apos;t handle unclean mongos shutdown&lt;/p&gt;</comment>
                            <comment id="14464" author="eliot" created="Wed, 26 May 2010 12:52:37 +0000"  >&lt;p&gt;can&apos;t reproduce exactly - but going to be re-working that code in 1.5.3&lt;/p&gt;</comment>
                            <comment id="13909" author="eliot" created="Tue, 27 Apr 2010 17:35:33 +0000"  >&lt;p&gt;not easily reproducible right now - will work on more in 1.5.2&lt;/p&gt;</comment>
                            <comment id="11073" author="eliot" created="Mon, 9 Nov 2009 09:44:05 +0000"  >&lt;p&gt;I think the root problem for these cases has been solved - but there is still work to do around this issue.&lt;/p&gt;</comment>
                            <comment id="10868" author="eliot" created="Fri, 9 Oct 2009 15:50:33 +0000"  >
&lt;p&gt;Fri Oct  9 18:23:17    movechunk.start res: &lt;/p&gt;
{ errmsg: &quot;collection already exists&quot;, ok: 0.0 }
&lt;p&gt;...&lt;br/&gt;
Fri Oct  9 18:25:05    movechunk.start res: { errmsg: &quot;logCollection failed: &lt;/p&gt;
{ errmsg: &quot;Log already started for ns: test....&quot;, ok: 0.0 }
</comment>
                            <comment id="10867" author="eliot" created="Fri, 9 Oct 2009 15:01:08 +0000"  >&lt;p&gt;can you send logs of mongod1 and mongod2 ?&lt;/p&gt;

&lt;p&gt;it technically moves a new shard b/c its hard to exactly what users are doing - its just optimized so it moves 0 data&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>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 9 Oct 2009 15:01:08 +0000</customfieldvalue>

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


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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            13 years, 33 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>mfoemmel</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpoqv:</customfieldvalue>

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

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

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

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

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