<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:22:25 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-10155] restoring data into a sharded collection but it is not balanced</title>
                <link>https://jira.mongodb.org/browse/SERVER-10155</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;mongorestore not sharding data correctly and there are errors in the mongos log&lt;/p&gt;

&lt;p&gt;Wed Jul 10 09:08:57 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn167&amp;#93;&lt;/span&gt; warning: splitChunk failed - cmd: &lt;br/&gt;
errmsg: &quot;the collection&apos;s metadata lock is taken&quot;, ok: 0.0 }&lt;/p&gt;

&lt;p&gt;I stopped the mongorestore after a while and have wait since to see if the balancer would move chunks around but nothing has happened.&lt;/p&gt;

&lt;p&gt;Balancer is running.&lt;br/&gt;
db.locks.find() returns nothing&lt;/p&gt;

&lt;p&gt;Any ideas why it has not sharded the data? Should it have during the restore?&lt;/p&gt;

&lt;p&gt;The shard key will contain strings&lt;/p&gt;

&lt;p&gt;When creating the the 3 chunks it has created them as &lt;br/&gt;
minkey -&amp;gt; A&lt;br/&gt;
A-Z&lt;br/&gt;
Z-&amp;gt; maxkey&lt;/p&gt;

&lt;p&gt;this explains why all data is in chunk 2 but after 10GB of data I would have expected A-Z to split by now. We have a large distribution of values and our chunk size is 256MB&lt;/p&gt;

</description>
                <environment>Linux 2.6.18-308.el5 #1 SMP Fri Jan 27 17:17:51 EST 2012 x86_64 x86_64 x86_64 GNU/Linux</environment>
        <key id="81802">SERVER-10155</key>
            <summary>restoring data into a sharded collection but it is not balanced</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="5">Cannot Reproduce</resolution>
                                        <assignee username="andre.defrere@mongodb.com">Andre de Frere</assignee>
                                    <reporter username="gconway">Gary Conway</reporter>
                        <labels>
                    </labels>
                <created>Wed, 10 Jul 2013 11:07:14 +0000</created>
                <updated>Wed, 10 Dec 2014 23:18:26 +0000</updated>
                            <resolved>Tue, 13 Aug 2013 09:20:27 +0000</resolved>
                                    <version>2.2.3</version>
                                                    <component>Sharding</component>
                                        <votes>1</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="401938" author="justanyone" created="Tue, 13 Aug 2013 14:35:15 +0000"  >&lt;p&gt;The mongorestore into an empty database is something I did several times, with no balancing happening.  I believe this is the same problem that hits balancing in general - too much activity results in (a) splitchunk failed metadata lock (which I&apos;ve seen), (b) migration failed too many times and it gave up or something (inferred).  &lt;/p&gt;

&lt;p&gt;I then did a presplit to one chunk per shard, and it worked better, in that it spread the load to a couple of (not all) shards during loading of about 1/8th of of my mongorestore.  Then, I decided to balance it before continuing.  to get it to start balancing (it wasn&apos;t), I had to restart my mongos processes and toggle off/on setBalancerState(true/false), then it started working and balanced.  Then, I loaded the remaining mongorestore data.&lt;/p&gt;

</comment>
                            <comment id="401761" author="stennie" created="Tue, 13 Aug 2013 09:20:27 +0000"  >&lt;p&gt;Hi Gary,&lt;/p&gt;

&lt;p&gt;Thank you for confirming; closing the issue now.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Stephen&lt;/p&gt;</comment>
                            <comment id="401750" author="gconway" created="Tue, 13 Aug 2013 08:55:56 +0000"  >&lt;p&gt;Hi.&lt;/p&gt;

&lt;p&gt;We have since done a number of mongorestores and sharding has either happened straight away or not long after the process has finished. So this does look like it was a one off due to some unknown conditions.&lt;/p&gt;

&lt;p&gt;Happy to close this.&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;
</comment>
                            <comment id="401670" author="andre.defrere" created="Tue, 13 Aug 2013 05:47:12 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=gconway&quot; class=&quot;user-hover&quot; rel=&quot;gconway&quot;&gt;gconway&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;I&apos;ve tried to reproduce this issue but cannot.  Are you still seeing this issue?&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=justanyone&quot; class=&quot;user-hover&quot; rel=&quot;justanyone&quot;&gt;justanyone&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;Did this issue still persist after the &lt;tt&gt;mongorestore&lt;/tt&gt; finished?  If so are you able to open a new ticket on it, as the version is different between the two and may be a different cause?&lt;/p&gt;</comment>
                            <comment id="391325" author="justanyone" created="Mon, 29 Jul 2013 21:29:34 +0000"  >&lt;p&gt;This has occured with our mongorestore as well.  I&apos;m hoping that it will resolve after the mongorestore is done.  note we&apos;re running mongo 2.4.2 sharded and replicated, but our replicas are currently offline.&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>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 29 Jul 2013 21:29:34 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            10 years, 27 weeks, 1 day 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="10020"><![CDATA[Linux]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>andre.defrere@mongodb.com</customfieldvalue>
            <customfieldvalue>gconway</customfieldvalue>
            <customfieldvalue>justanyone</customfieldvalue>
            <customfieldvalue>stephen.steneker@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmno7:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>74790</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;took a mongodump of an unshared collection collA.&lt;br/&gt;
Enabled sharding on the same database&lt;br/&gt;
Enabled sharding on another empty collection collB&lt;br/&gt;
mongorestore collA into CollB expecting it to shard.&lt;br/&gt;
It has created 3 chunks but all the data (10GB) has gone into one chunk.&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|hspf7b:</customfieldvalue>

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