<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:26: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>[SERVER-11694] Balancer not working</title>
                <link>https://jira.mongodb.org/browse/SERVER-11694</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I have a two shard setup (shard0, shard1) on AWS. I went ahead and added a new shard (shard2). However the balancer is not able to move chunks to the new shards &lt;/p&gt;

&lt;p&gt;I see a bunch of errors in the log - &quot;migration already in progress&quot;&lt;br/&gt;
Thu Nov 14 00:29:50.406 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt;  ns: chat.chats_development going to move { _id: &quot;chat.chats_development-target_pid_MinKey&quot;, lastmod: Timestamp 2000|2, la&lt;br/&gt;
stmodEpoch: ObjectId(&apos;5282724e57add7686f91ac12&apos;), ns: &quot;chat.chats_development&quot;, min: &lt;/p&gt;
{ target_pid: MinKey }
&lt;p&gt;, max: &lt;/p&gt;
{ target_pid: -4611686018427387902 }
&lt;p&gt;, shard&lt;br/&gt;
: &quot;Shard-0&quot; } from: Shard-0 to: Shard-2 tag []&lt;br/&gt;
Thu Nov 14 00:29:50.408 &lt;span class=&quot;error&quot;&gt;&amp;#91;mongosMain&amp;#93;&lt;/span&gt; connection accepted from 10.84.154.211:43907 #24556 (34 connections now open)&lt;br/&gt;
Thu Nov 14 00:29:50.408 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24556&amp;#93;&lt;/span&gt; end connection 10.84.154.211:43907 (33 connections now open)&lt;br/&gt;
Thu Nov 14 00:29:50.409 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt;  ns: chat.chats_staging going to move { _id: &quot;chat.chats_staging-target_pid_MinKey&quot;, lastmod: Timestamp 2000|2, lastmodEpo&lt;br/&gt;
ch: ObjectId(&apos;5282725857add7686f91ac14&apos;), ns: &quot;chat.chats_staging&quot;, min: &lt;/p&gt;
{ target_pid: MinKey }
&lt;p&gt;, max: &lt;/p&gt;
{ target_pid: -4611686018427387902 }
&lt;p&gt;, shard: &quot;Shard-0&quot;&lt;br/&gt;
} from: Shard-0 to: Shard-2 tag []&lt;br/&gt;
Thu Nov 14 00:29:50.409 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; moving chunk ns: chat.chats_production moving ( ns:chat.chats_productionshard: Shard-0:Shard-0/SG-m1largetest2-1522.server&lt;br/&gt;
s.mongodirector.com:27017,SG-m1largetest2-1523.servers.mongodirector.com:27017lastmod: 3|8||000000000000000000000000min: &lt;/p&gt;
{ target_pid: -6914850372026113762 }
&lt;p&gt;max: &lt;/p&gt;
{ target_pid: -5776441268022973039 }
&lt;p&gt;) Shard-0:Shard-0/SG-m1largetest2-1522.servers.mongodirector.com:27017,SG-m1largetest2-1523.servers.mongodirector.co&lt;br/&gt;
m:27017 -&amp;gt; Shard-2:Shard-2/SG-m1largetest2-1534.servers.mongodirector.com:27017,SG-m1largetest2-1535.servers.mongodirector.com:27017&lt;br/&gt;
Thu Nov 14 00:29:50.409 &lt;span class=&quot;error&quot;&gt;&amp;#91;mongosMain&amp;#93;&lt;/span&gt; connection accepted from 10.119.39.164:56401 #24557 (34 connections now open)&lt;br/&gt;
Thu Nov 14 00:29:50.411 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24557&amp;#93;&lt;/span&gt; end connection 10.119.39.164:56401 (33 connections now open)&lt;br/&gt;
Thu Nov 14 00:29:50.422 &lt;span class=&quot;error&quot;&gt;&amp;#91;mongosMain&amp;#93;&lt;/span&gt; connection accepted from 10.78.134.95:53117 #24558 (34 connections now open)&lt;br/&gt;
Thu Nov 14 00:29:50.422 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24558&amp;#93;&lt;/span&gt; end connection 10.78.134.95:53117 (33 connections now open)&lt;br/&gt;
Thu Nov 14 00:29:50.425 &lt;span class=&quot;error&quot;&gt;&amp;#91;mongosMain&amp;#93;&lt;/span&gt; connection accepted from 10.37.15.212:33571 #24559 (34 connections now open)&lt;br/&gt;
Thu Nov 14 00:29:50.426 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24559&amp;#93;&lt;/span&gt; end connection 10.37.15.212:33571 (33 connections now open)&lt;br/&gt;
Thu Nov 14 00:29:50.507 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; moveChunk result: &lt;/p&gt;
{ ok: 0.0, errmsg: &quot;migration already in progress&quot; }
&lt;p&gt;Thu Nov 14 00:29:50.508 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; balancer move failed: &lt;/p&gt;
{ ok: 0.0, errmsg: &quot;migration already in progress&quot; }
&lt;p&gt; from: Shard-0 to: Shard-2 chunk:  min: &lt;/p&gt;
{ target
_pid: -6914850372026113762 }
&lt;p&gt; max: &lt;/p&gt;
{ target_pid: -5776441268022973039 }
&lt;p&gt;Thu Nov 14 00:29:50.508 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; moving chunk ns: chat.chats_development moving ( ns:chat.chats_developmentshard: Shard-0:Shard-0/SG-m1largetest2-1522.serv&lt;br/&gt;
ers.mongodirector.com:27017,SG-m1largetest2-1523.servers.mongodirector.com:27017lastmod: 2|2||000000000000000000000000min: &lt;/p&gt;
{ target_pid: MinKey }
&lt;p&gt;max: &lt;/p&gt;
{ targe
t_pid: -4611686018427387902 }
&lt;p&gt;) Shard-0:Shard-0/SG-m1largetest2-1522.servers.mongodirector.com:27017,SG-m1largetest2-1523.servers.mongodirector.com:27017 -&amp;gt; S&lt;br/&gt;
hard-2:Shard-2/SG-m1largetest2-1534.servers.mongodirector.com:27017,SG-m1largetest2-1535.servers.mongodirector.com:27017&lt;br/&gt;
Thu Nov 14 00:29:50.575 &lt;span class=&quot;error&quot;&gt;&amp;#91;mongosMain&amp;#93;&lt;/span&gt; connection accepted from 10.98.227.148:37905 #24560 (34 connections now open)&lt;br/&gt;
Thu Nov 14 00:29:50.577 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24560&amp;#93;&lt;/span&gt; end connection 10.98.227.148:37905 (33 connections now open)&lt;br/&gt;
Thu Nov 14 00:29:50.577 &lt;span class=&quot;error&quot;&gt;&amp;#91;mongosMain&amp;#93;&lt;/span&gt; connection accepted from 10.12.191.175:34776 #24561 (34 connections now open)&lt;br/&gt;
Thu Nov 14 00:29:50.579 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn24561&amp;#93;&lt;/span&gt; end connection 10.12.191.175:34776 (33 connections now open)&lt;br/&gt;
Thu Nov 14 00:29:50.613 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; moveChunk result: &lt;/p&gt;
{ ok: 0.0, errmsg: &quot;migration already in progress&quot; }
&lt;p&gt;Thu Nov 14 00:29:50.614 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; balancer move failed: &lt;/p&gt;
{ ok: 0.0, errmsg: &quot;migration already in progress&quot; }
&lt;p&gt; from: Shard-0 to: Shard-2 chunk:  min: &lt;/p&gt;
{ target
_pid: MinKey }
&lt;p&gt; max: &lt;/p&gt;
{ target_pid: -4611686018427387902 }
&lt;p&gt;Thu Nov 14 00:29:50.614 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; moving chunk ns: chat.chats_staging moving ( ns:chat.chats_stagingshard: Shard-0:Shard-0/SG-m1largetest2-1522.servers.mong&lt;br/&gt;
odirector.com:27017,SG-m1largetest2-1523.servers.mongodirector.com:27017lastmod: 2|2||000000000000000000000000min: &lt;/p&gt;
{ target_pid: MinKey }
&lt;p&gt;max: &lt;/p&gt;
{ target_pid: -
4611686018427387902 }
&lt;p&gt;) Shard-0:Shard-0/SG-m1largetest2-1522.servers.mongodirector.com:27017,SG-m1largetest2-1523.servers.mongodirector.com:27017 -&amp;gt; Shard-2:S&lt;br/&gt;
hard-2/SG-m1largetest2-1534.servers.mongodirector.com:27017,SG-m1largetest2-1535.servers.mongodirector.com:27017&lt;br/&gt;
Thu Nov 14 00:29:50.718 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; moveChunk result: &lt;/p&gt;
{ ok: 0.0, errmsg: &quot;migration already in progress&quot; }
&lt;p&gt;Thu Nov 14 00:29:50.719 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; balancer move failed: &lt;/p&gt;
{ ok: 0.0, errmsg: &quot;migration already in progress&quot; }
&lt;p&gt; from: Shard-0 to: Shard-2 chunk:  min: &lt;/p&gt;
{ target
_pid: MinKey }
&lt;p&gt; max: &lt;/p&gt;
{ target_pid: -4611686018427387902 }

&lt;p&gt;Here is the output of locks collection&lt;br/&gt;
mongos&amp;gt; db.locks.find();&lt;/p&gt;
{ &quot;_id&quot; : &quot;configUpgrade&quot;, &quot;process&quot; : &quot;ip-10-157-51-190:27017:1384231658:1804289383&quot;, &quot;state&quot; : 0, &quot;ts&quot; : ObjectId(&quot;5281b2eab4966fecfd6e633d&quot;), &quot;when&quot; : ISODate(&quot;2013-11-12T04:47:38.349Z&quot;),
 &quot;who&quot; : &quot;ip-10-157-51-190:27017:1384231658:1804289383:mongosMain:846930886&quot;, &quot;why&quot; : &quot;upgrading config database to new format v4&quot; }
{ &quot;_id&quot; : &quot;balancer&quot;, &quot;process&quot; : &quot;ip-10-157-51-190:27017:1384387524:1804289383&quot;, &quot;state&quot; : 0, &quot;ts&quot; : ObjectId(&quot;52841a15bac893571dc4c0b7&quot;), &quot;when&quot; : ISODate(&quot;2013-11-14T00:32:21.869Z&quot;), &quot;who
&quot; : &quot;ip-10-157-51-190:27017:1384387524:1804289383:Balancer:846930886&quot;, &quot;why&quot; : &quot;doing balance round&quot; }
&lt;p&gt;{ &quot;_id&quot; : &quot;chat.chats_production&quot;, &quot;process&quot; : &quot;ip-10-83-63-165:27017:1384280537:396106300&quot;, &quot;state&quot; : 2, &quot;ts&quot; : ObjectId(&quot;5283de1fd365b49a9f02596d&quot;), &quot;when&quot; : ISODate(&quot;2013-11-13T20:16:31.1&lt;br/&gt;
92Z&quot;), &quot;who&quot; : &quot;ip-10-83-63-165:27017:1384280537:396106300:conn9740:778452206&quot;, &quot;why&quot; : &quot;migrate-&lt;/p&gt;
{ target_pid: -6914850372026113762 }
&lt;p&gt;&quot; }&lt;br/&gt;
{ &quot;_id&quot; : &quot;chat.chats_development&quot;, &quot;process&quot; : &quot;ip-10-181-159-145:27017:1384280542:1450290529&quot;, &quot;state&quot; : 0, &quot;ts&quot; : ObjectId(&quot;5282725074d386569e867f12&quot;), &quot;when&quot; : ISODate(&quot;2013-11-12T18:24:&lt;br/&gt;
16.705Z&quot;), &quot;who&quot; : &quot;ip-10-181-159-145:27017:1384280542:1450290529:conn35:1960032425&quot;, &quot;why&quot; : &quot;split-&lt;/p&gt;
{ target_pid: 0 }
&lt;p&gt;&quot; }&lt;br/&gt;
{ &quot;_id&quot; : &quot;chat.chats_staging&quot;, &quot;process&quot; : &quot;ip-10-181-159-145:27017:1384280542:1450290529&quot;, &quot;state&quot; : 0, &quot;ts&quot; : ObjectId(&quot;5282725a74d386569e867f15&quot;), &quot;when&quot; : ISODate(&quot;2013-11-12T18:24:26.3&lt;br/&gt;
89Z&quot;), &quot;who&quot; : &quot;ip-10-181-159-145:27017:1384280542:1450290529:conn35:1960032425&quot;, &quot;why&quot; : &quot;split-&lt;/p&gt;
{ target_pid: 0 }
&lt;p&gt;&quot; }&lt;/p&gt;</description>
                <environment></environment>
        <key id="98405">SERVER-11694</key>
            <summary>Balancer not working</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.mongodb.org/images/icons/priorities/blocker.svg">Blocker - P1</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="-1">Unassigned</assignee>
                                    <reporter username="dharshanr@scalegrid.net">Dharshan Rangegowda</reporter>
                        <labels>
                    </labels>
                <created>Thu, 14 Nov 2013 01:10:37 +0000</created>
                <updated>Wed, 10 Dec 2014 23:18:22 +0000</updated>
                            <resolved>Wed, 19 Mar 2014 07:22:39 +0000</resolved>
                                    <version>2.4.1</version>
                                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="519013" author="stennie" created="Wed, 19 Mar 2014 07:22:39 +0000"  >&lt;p&gt;Hi Dharshan,&lt;/p&gt;

&lt;p&gt;I&apos;m going to close this issue due to inactivity.&lt;/p&gt;

&lt;p&gt;I would also note that the SERVER project is intended for reporting bugs or feature suggestions for the MongoDB server.&lt;/p&gt;

&lt;p&gt;For MongoDB-related support discussion please post on the mongodb-users group (&lt;a href=&quot;http://groups.google.com/group/mongodb-user&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://groups.google.com/group/mongodb-user&lt;/a&gt;) or ask specific questions on Stack Overflow / ServerFault.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Stephen&lt;/p&gt;</comment>
                            <comment id="471083" author="stennie" created="Mon, 16 Dec 2013 11:11:17 +0000"  >&lt;p&gt;Hi Dharshan,&lt;/p&gt;

&lt;p&gt;Are you still experiencing this issue with your balancer?&lt;/p&gt;

&lt;p&gt;If so, in order to progress investigation on this issue we will need the further information requested:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;output of db.currentOp() from each primary&lt;/li&gt;
	&lt;li&gt;mongod logs from the original shard&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Thanks,&lt;br/&gt;
Stephen&lt;/p&gt;</comment>
                            <comment id="461083" author="eliot" created="Mon, 25 Nov 2013 05:50:39 +0000"  >&lt;p&gt;Can you login onto each primary and send the output of db.currentOp()&lt;/p&gt;

&lt;p&gt;Also, if you could send the mongod logs from the original shard, that would be great.&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>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 25 Nov 2013 05:50:39 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        9 years, 48 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>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, 48 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>dharshanr@scalegrid.net</customfieldvalue>
            <customfieldvalue>eliot</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|hrm7kf:</customfieldvalue>

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

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

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