<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:06:22 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-4568] One shard down at run time then insertion on both shard stop by mongos</title>
                <link>https://jira.mongodb.org/browse/SERVER-4568</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;mongo server  setup are following&lt;br/&gt;
Config server  1 &lt;br/&gt;
./mongod --bind_ip 192.168.50.75 --port 30000 --dbpath /sata1/configdb --configsvr --quiet --logpath /usr/local/ct/depend/mongo/logs/mongod_30000.log --logappend --journalCommitInterval 2 &lt;/p&gt;

&lt;p&gt;Shard server: there are two shard server , we generate 1 to 10. shard keys ,1 to 5 shard keys will go shard1 and 6 to 10 shard keys will go shard2.&lt;/p&gt;

&lt;p&gt;shard1: ./mongod --bind_ip 192.168.50.75 --port 20000 --dbpath /sata1/master --shardsvr --quiet --logpath /usr/local/ct/depend/mongo/logs/mongod_20000.log --logappend --journalCommitInterval 2&lt;br/&gt;
shard2:./mongod --bind_ip 192.168.50.75 --port 25000 --dbpath /sata2/master --shardsvr --quiet --logpath /usr/local/ct/depend/mongo/logs/mongod_25000.log --logappend --journalCommitInterval 2&lt;/p&gt;

&lt;p&gt;mongos         1 &lt;br/&gt;
./mongos --bind_ip 192.168.50.75 --port 35000 --configdb 192.168.50.75:30000 --quiet --logpath /usr/local/ct/depend/mongo/logs/mongos_35000.log --logappend&lt;/p&gt;

&lt;p&gt;now connect to mongos &lt;br/&gt;
./mongo 192.168.50.75:35000&lt;br/&gt;
at run time i will stop shard2  &lt;br/&gt;
and apply &lt;/p&gt;

&lt;p&gt;mongos&amp;gt; db.Database.insert({_sk:2})&lt;br/&gt;
Wed Dec 28 20:22:19 uncaught exception: error &lt;/p&gt;
{ &quot;$err&quot; : &quot;socket exception&quot;, &quot;code&quot; : 11002 }
&lt;p&gt;mongos&amp;gt; db.Database.insert({_sk:7})&lt;br/&gt;
socket exception&lt;/p&gt;

&lt;p&gt;i got exception on for _sk:7 , its ok but got exception for _sk:2 which not ok because shard key 2 will go shard1 which is runnig.&lt;/p&gt;




&lt;p&gt;Regars&lt;br/&gt;
Jitendra Verma&lt;/p&gt;


</description>
                <environment>Linux debian </environment>
        <key id="27348">SERVER-4568</key>
            <summary>One shard down at run time then insertion on both shard stop by mongos</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="scotthernandez">Scott Hernandez</assignee>
                                    <reporter username="jitendra908">jitendra</reporter>
                        <labels>
                            <label>sharding</label>
                    </labels>
                <created>Wed, 28 Dec 2011 15:24:49 +0000</created>
                <updated>Mon, 11 Jul 2016 18:34:51 +0000</updated>
                            <resolved>Fri, 10 Feb 2012 16:20:42 +0000</resolved>
                                    <version>2.0.2</version>
                                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="87312" author="scotthernandez" created="Fri, 10 Feb 2012 16:20:42 +0000"  >&lt;p&gt;Please reopen if this happens again with the new builds.&lt;/p&gt;</comment>
                            <comment id="76821" author="scotthernandez" created="Fri, 30 Dec 2011 17:04:37 +0000"  >&lt;p&gt;The unit tests run against all versions of mongodb built; I&apos;d have to look at when the test was created but probably before 1.8.0&lt;/p&gt;

&lt;p&gt;It is possible the getLastError message is something that is fixed in 2.1.X so you may want to test sa nightly dev build to check.&lt;/p&gt;</comment>
                            <comment id="76820" author="scotthernandez" created="Fri, 30 Dec 2011 17:04:36 +0000"  >&lt;p&gt;The unit tests run against all versions of mongodb built; I&apos;d have to look at when the test was created but probably before 1.8.0&lt;/p&gt;

&lt;p&gt;It is possible the getLastError message is something that is fixed in 2.1.X so you may want to test sa nightly dev build to check.&lt;/p&gt;</comment>
                            <comment id="76815" author="jitendra908" created="Fri, 30 Dec 2011 16:30:26 +0000"  >&lt;p&gt;can u tell me on which version u tested.&lt;/p&gt;</comment>
                            <comment id="76779" author="jitendra908" created="Fri, 30 Dec 2011 12:18:23 +0000"  >&lt;p&gt;MongoDB with 2 shards. When both the shards are up and running, our mongo driver using MongoS &lt;br/&gt;
inserts the objects properly and get proper codes in getLastError. &lt;br/&gt;
When one of the shard(Shard1) is down (MongoD process is crashed), MongoS &lt;br/&gt;
starts giving socket exception (with code *) for both shards. (Even though &lt;br/&gt;
it keeps inserting objects on one shard2)&lt;/p&gt;</comment>
                            <comment id="76772" author="jitendra908" created="Fri, 30 Dec 2011 11:50:27 +0000"  >&lt;p&gt;can u reply my previous comment.&lt;/p&gt;</comment>
                            <comment id="76753" author="scotthernandez" created="Fri, 30 Dec 2011 08:29:35 +0000"  >&lt;p&gt;So far everything you have posted seems to be consistent with being able to write data to the active shards but getting errors on the ones which are down. This is the expected behavior.&lt;/p&gt;

&lt;p&gt;We have tests which verify this and we cannot reproduce any problems.&lt;/p&gt;

&lt;p&gt;Please provide more information if you feel something is wrong...&lt;/p&gt;</comment>
                            <comment id="76745" author="jitendra908" created="Fri, 30 Dec 2011 07:16:23 +0000"  >&lt;p&gt;I want to ask one thing, if one shard down , insert into other on  shard and call getLastError() then it give err &quot;socket exception&quot;. &lt;/p&gt;</comment>
                            <comment id="76569" author="jitendra908" created="Thu, 29 Dec 2011 15:36:37 +0000"  >&lt;p&gt;hi, pls reply.&lt;/p&gt;</comment>
                            <comment id="76503" author="jitendra908" created="Thu, 29 Dec 2011 09:14:25 +0000"  >&lt;p&gt;mongos logs when you try to insert with _sk:2.Now if can be more clear &lt;/p&gt;

&lt;p&gt;Thu Dec 29 14:37:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; Request::process ns: 00291211.Database msg id:131 attempt: 0&lt;br/&gt;
Thu Dec 29 14:37:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; write: 00291211.Database&lt;br/&gt;
Thu Dec 29 14:37:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt;   server:shard0000:192.168.50.171:20000 &lt;/p&gt;
{ _id: ObjectId(&apos;4efc2ddead252b524357758f&apos;), _sk: 2.0 }
&lt;p&gt;Thu Dec 29 14:37:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; Request::process ns: 00291211.$cmd msg id:132 attempt: 0&lt;br/&gt;
Thu Dec 29 14:37:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; single query: 00291211.$cmd  &lt;/p&gt;
{ getlasterror: 1.0, w: 1.0 }
&lt;p&gt;  ntoreturn: -1 options : 0&lt;br/&gt;
Thu Dec 29 14:37:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; creating new connection to:192.168.50.171:25000&lt;br/&gt;
Thu Dec 29 14:37:42 BackgroundJob starting: ConnectBG&lt;br/&gt;
Thu Dec 29 14:37:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; DBException in process: socket exception&lt;br/&gt;
Thu Dec 29 14:37:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; Request::process ns: admin.$cmd msg id:133 attempt: 0&lt;br/&gt;
Thu Dec 29 14:37:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; single query: admin.$cmd  &lt;/p&gt;
{ replSetGetStatus: 1, forShell: 1 }
&lt;p&gt;  ntoreturn: 1 options : 0&lt;/p&gt;</comment>
                            <comment id="76502" author="jitendra908" created="Thu, 29 Dec 2011 09:14:21 +0000"  >&lt;p&gt;mongos logs when you try to insert with _sk:2.Now if can be more clear &lt;/p&gt;

&lt;p&gt;Thu Dec 29 14:37:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; Request::process ns: 00291211.Database msg id:131 attempt: 0&lt;br/&gt;
Thu Dec 29 14:37:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; write: 00291211.Database&lt;br/&gt;
Thu Dec 29 14:37:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt;   server:shard0000:192.168.50.171:20000 &lt;/p&gt;
{ _id: ObjectId(&apos;4efc2ddead252b524357758f&apos;), _sk: 2.0 }
&lt;p&gt;Thu Dec 29 14:37:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; Request::process ns: 00291211.$cmd msg id:132 attempt: 0&lt;br/&gt;
Thu Dec 29 14:37:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; single query: 00291211.$cmd  &lt;/p&gt;
{ getlasterror: 1.0, w: 1.0 }
&lt;p&gt;  ntoreturn: -1 options : 0&lt;br/&gt;
Thu Dec 29 14:37:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; creating new connection to:192.168.50.171:25000&lt;br/&gt;
Thu Dec 29 14:37:42 BackgroundJob starting: ConnectBG&lt;br/&gt;
Thu Dec 29 14:37:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; DBException in process: socket exception&lt;br/&gt;
Thu Dec 29 14:37:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; Request::process ns: admin.$cmd msg id:133 attempt: 0&lt;br/&gt;
Thu Dec 29 14:37:42 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; single query: admin.$cmd  &lt;/p&gt;
{ replSetGetStatus: 1, forShell: 1 }
&lt;p&gt;  ntoreturn: 1 options : 0&lt;/p&gt;</comment>
                            <comment id="76487" author="jitendra908" created="Thu, 29 Dec 2011 06:50:07 +0000"  >&lt;p&gt;one shard is down and other shard is on.&lt;/p&gt;

&lt;p&gt;Insert on other shard give error.&lt;/p&gt;

&lt;p&gt;DBClientBase::findN: transport error: 192.168.50.171:25000 query: &lt;/p&gt;
{ setShardVersion: &quot;00291211.Database&quot;, configdb: &quot;192.168.50.171:30000&quot;, version: Timestamp 6000|0, serverID: ObjectId(&apos;4ef24915416fb0a9b89716f8&apos;), shard: &quot;shard0001&quot;, shardHost: &quot;192.168.50.171:25000&quot; }</comment>
                            <comment id="76481" author="eliot" created="Thu, 29 Dec 2011 06:36:00 +0000"  >&lt;p&gt;I don&apos;t understand what you mean.&lt;/p&gt;

&lt;p&gt;All shards are healthy?&lt;/p&gt;</comment>
                            <comment id="76480" author="jitendra908" created="Thu, 29 Dec 2011 06:31:09 +0000"  >&lt;p&gt; shard is on,can u verify in ur hand.   &lt;/p&gt;
</comment>
                            <comment id="76478" author="eliot" created="Thu, 29 Dec 2011 06:21:45 +0000"  >&lt;p&gt;It means it tried to a read or a write but failed because of a socket error.&lt;br/&gt;
i..e a shard was down&lt;/p&gt;</comment>
                            <comment id="76477" author="jitendra908" created="Thu, 29 Dec 2011 06:18:04 +0000"  >&lt;p&gt; &quot;uncaught exception: error &lt;/p&gt;
{ &quot;$err&quot; : &quot;socket exception&quot;, &quot;code&quot; : 11002 }
&lt;p&gt;&quot;&lt;/p&gt;

&lt;p&gt;what does it means.&lt;/p&gt;</comment>
                            <comment id="76476" author="jitendra908" created="Thu, 29 Dec 2011 06:18:01 +0000"  >&lt;p&gt; &quot;uncaught exception: error &lt;/p&gt;
{ &quot;$err&quot; : &quot;socket exception&quot;, &quot;code&quot; : 11002 }
&lt;p&gt;&quot;&lt;/p&gt;

&lt;p&gt;what does it means.&lt;/p&gt;</comment>
                            <comment id="76475" author="eliot" created="Thu, 29 Dec 2011 06:15:26 +0000"  >&lt;p&gt;If one shard is down - the writes to that shard will fail.&lt;br/&gt;
writes to other shards will succeed. &lt;/p&gt;</comment>
                            <comment id="76474" author="jitendra908" created="Thu, 29 Dec 2011 06:09:27 +0000"  >&lt;p&gt;hi&lt;br/&gt;
it means insertion on other shard must be success or fail.&lt;/p&gt;</comment>
                            <comment id="76433" author="eliot" created="Wed, 28 Dec 2011 23:39:01 +0000"  >&lt;p&gt;If one shard is down - then any query that needs that shard will fail unless you have the partial flag set.&lt;/p&gt;</comment>
                            <comment id="76359" author="jitendra908" created="Wed, 28 Dec 2011 18:28:20 +0000"  >&lt;p&gt;can u tell me if at run time one shard one down and other is running &lt;br/&gt;
then what is mongos behavior. &lt;/p&gt;</comment>
                            <comment id="76357" author="jitendra908" created="Wed, 28 Dec 2011 18:27:11 +0000"  >&lt;p&gt;one more thing i want to add if shard0001 is already down and connect to mongos client then isertion on _sk ;2 work&lt;br/&gt;
but at run time shard down then it give error. can u tyr in ur system. &lt;/p&gt;</comment>
                            <comment id="76355" author="scotthernandez" created="Wed, 28 Dec 2011 18:22:20 +0000"  >&lt;p&gt;Can you increase the logging level to see if you get more information about the issue on the client connection?&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.mongodb.org/display/DOCS/setParameter+Command&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://www.mongodb.org/display/DOCS/setParameter+Command&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="76353" author="jitendra908" created="Wed, 28 Dec 2011 18:19:01 +0000"  >&lt;p&gt;log come like below&lt;/p&gt;

&lt;p&gt;WriteBackListener-192.168.50.75:25000] WriteBackListener exception : socket exception&lt;br/&gt;
 &lt;span class=&quot;error&quot;&gt;&amp;#91;WriteBackListener-192.168.50.75:25000&amp;#93;&lt;/span&gt; WriteBackListener exception : socket exception&lt;br/&gt;
 &lt;span class=&quot;error&quot;&gt;&amp;#91;WriteBackListener-192.168.50.75:25000&amp;#93;&lt;/span&gt; WriteBackListener exception : socket exception&lt;br/&gt;
 &lt;span class=&quot;error&quot;&gt;&amp;#91;WriteBackListener-192.168.50.75:25000&amp;#93;&lt;/span&gt; WriteBackListener exception : socket exception&lt;br/&gt;
 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn11&amp;#93;&lt;/span&gt; DBException in process: socket exception&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;conn11&amp;#93;&lt;/span&gt; DBException in process: socket exception&lt;/p&gt;</comment>
                            <comment id="76350" author="scotthernandez" created="Wed, 28 Dec 2011 18:08:48 +0000"  >&lt;p&gt;Can you please post the mongos logs when you try to insert with _sk:2&lt;/p&gt;

&lt;p&gt;That explain doesn&apos;t look like it is being run against a sharded collection; there is no shards node and it is using a BasicCursor which does not exist on mongos.&lt;/p&gt;</comment>
                            <comment id="76331" author="jitendra908" created="Wed, 28 Dec 2011 17:21:38 +0000"  >&lt;p&gt;hi pls reply i am waitung for ur reply&lt;/p&gt;</comment>
                            <comment id="76329" author="jitendra908" created="Wed, 28 Dec 2011 17:07:14 +0000"  >&lt;p&gt;hi ,&lt;br/&gt;
any thing missing&lt;/p&gt;</comment>
                            <comment id="76326" author="jitendra908" created="Wed, 28 Dec 2011 16:47:33 +0000"  >&lt;p&gt;shard0000 is  runnin but i try to insert for sk:2 ,this give error uncaught exception: error &lt;/p&gt;
{ &quot;$err&quot; : &quot;socket exception&quot;, &quot;code&quot; : 11002 }
&lt;p&gt;is this correct.&lt;/p&gt;




&lt;p&gt; db.Database.find({_sk:2}).explain()&lt;br/&gt;
{&lt;br/&gt;
	&quot;cursor&quot; : &quot;BasicCursor&quot;,&lt;br/&gt;
	&quot;nscanned&quot; : 0,&lt;br/&gt;
	&quot;nscannedObjects&quot; : 0,&lt;br/&gt;
	&quot;n&quot; : 0,&lt;br/&gt;
	&quot;millis&quot; : 0,&lt;br/&gt;
	&quot;nYields&quot; : 0,&lt;br/&gt;
	&quot;nChunkSkips&quot; : 0,&lt;br/&gt;
	&quot;isMultiKey&quot; : false,&lt;br/&gt;
	&quot;indexOnly&quot; : false,&lt;br/&gt;
	&quot;indexBounds&quot; : {&lt;/p&gt;

&lt;p&gt;	}&lt;br/&gt;
}&lt;/p&gt;
</comment>
                            <comment id="76322" author="scotthernandez" created="Wed, 28 Dec 2011 16:41:47 +0000"  >&lt;p&gt;Okay, maybe I&apos;m misunderstanding but the explain and chunks shows that shard0001 (port 25000) is being used for _sk:7; the error also indicates this when you try to insert that is the shard used, and you state that you are taking down shard2 (which is on port 25000) so it is completely correct to get that error.&lt;/p&gt;

&lt;p&gt;Am I missing something here?&lt;/p&gt;

&lt;p&gt;Maybe we should take a look at _sk:2 to see if it is different.&lt;/p&gt;</comment>
                            <comment id="76318" author="jitendra908" created="Wed, 28 Dec 2011 16:30:32 +0000"  >&lt;p&gt; db.Database.stats()&lt;br/&gt;
{&lt;br/&gt;
	&quot;sharded&quot; : true,&lt;br/&gt;
	&quot;flags&quot; : 1,&lt;br/&gt;
	&quot;ns&quot; : &quot;00281211.Database&quot;,&lt;br/&gt;
	&quot;count&quot; : 6,&lt;br/&gt;
	&quot;numExtents&quot; : 36,&lt;br/&gt;
	&quot;size&quot; : 216,&lt;br/&gt;
	&quot;storageSize&quot; : 1027227648,&lt;br/&gt;
	&quot;totalIndexSize&quot; : 32704,&lt;br/&gt;
	&quot;indexSizes&quot; : &lt;/p&gt;
{
		&quot;_id_&quot; : 16352,
		&quot;_sk_1&quot; : 16352
	}
&lt;p&gt;,&lt;br/&gt;
	&quot;avgObjSize&quot; : 36,&lt;br/&gt;
	&quot;nindexes&quot; : 2,&lt;br/&gt;
	&quot;nchunks&quot; : 11,&lt;br/&gt;
	&quot;shards&quot; : {&lt;br/&gt;
		&quot;shard0000&quot; : {&lt;br/&gt;
			&quot;ns&quot; : &quot;00281211.Database&quot;,&lt;br/&gt;
			&quot;count&quot; : 5,&lt;br/&gt;
			&quot;size&quot; : 180,&lt;br/&gt;
			&quot;avgObjSize&quot; : 36,&lt;br/&gt;
			&quot;storageSize&quot; : 779964416,&lt;br/&gt;
			&quot;numExtents&quot; : 21,&lt;br/&gt;
			&quot;nindexes&quot; : 2,&lt;br/&gt;
			&quot;lastExtentSize&quot; : 133492736,&lt;br/&gt;
			&quot;paddingFactor&quot; : 1,&lt;br/&gt;
			&quot;flags&quot; : 1,&lt;br/&gt;
			&quot;totalIndexSize&quot; : 16352,&lt;br/&gt;
			&quot;indexSizes&quot; : &lt;/p&gt;
{
				&quot;_id_&quot; : 8176,
				&quot;_sk_1&quot; : 8176
			}
&lt;p&gt;,&lt;br/&gt;
			&quot;ok&quot; : 1&lt;br/&gt;
		},&lt;br/&gt;
		&quot;shard0001&quot; : {&lt;br/&gt;
			&quot;ns&quot; : &quot;00281211.Database&quot;,&lt;br/&gt;
			&quot;count&quot; : 1,&lt;br/&gt;
			&quot;size&quot; : 36,&lt;br/&gt;
			&quot;avgObjSize&quot; : 36,&lt;br/&gt;
			&quot;storageSize&quot; : 247263232,&lt;br/&gt;
			&quot;numExtents&quot; : 15,&lt;br/&gt;
			&quot;nindexes&quot; : 2,&lt;br/&gt;
			&quot;lastExtentSize&quot; : 44699648,&lt;br/&gt;
			&quot;paddingFactor&quot; : 1,&lt;br/&gt;
			&quot;flags&quot; : 1,&lt;br/&gt;
			&quot;totalIndexSize&quot; : 16352,&lt;br/&gt;
			&quot;indexSizes&quot; : &lt;/p&gt;
{
				&quot;_id_&quot; : 8176,
				&quot;_sk_1&quot; : 8176
			}
&lt;p&gt;,&lt;br/&gt;
			&quot;ok&quot; : 1&lt;br/&gt;
		}&lt;br/&gt;
	},&lt;br/&gt;
	&quot;ok&quot; : 1&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;db.shards.find()&lt;/p&gt;
{ &quot;_id&quot; : &quot;shard0000&quot;, &quot;host&quot; : &quot;192.168.50.75:20000&quot; }
{ &quot;_id&quot; : &quot;shard0001&quot;, &quot;host&quot; : &quot;192.168.50.75:25000&quot; }






</comment>
                            <comment id="76312" author="scotthernandez" created="Wed, 28 Dec 2011 16:08:14 +0000"  >&lt;p&gt;Which is shard2? Is that shard0000?&lt;/p&gt;

&lt;p&gt;Can you also post the stats for that collection? db.Database.stats()&lt;br/&gt;
Also, from the config db can you post db.shards.find() please?&lt;/p&gt;</comment>
                            <comment id="76311" author="jitendra908" created="Wed, 28 Dec 2011 16:00:38 +0000"  >&lt;p&gt;after down shard2&lt;/p&gt;

&lt;p&gt;db.Database.find({_sk:7}).explain()&lt;br/&gt;
Wed Dec 28 21:29:15 uncaught exception: error: {&lt;br/&gt;
	&quot;$err&quot; : &quot;could not initialize cursor across all shards because : error querying server: 192.168.50.75:25000&quot;,&lt;br/&gt;
	&quot;code&quot; : 14827&lt;br/&gt;
}&lt;/p&gt;</comment>
                            <comment id="76308" author="jitendra908" created="Wed, 28 Dec 2011 15:58:49 +0000"  >

&lt;p&gt;db.Database.find({_sk:7}).explain()&lt;br/&gt;
{&lt;br/&gt;
	&quot;clusteredType&quot; : &quot;ParallelSort&quot;,&lt;br/&gt;
	&quot;shards&quot; : {&lt;br/&gt;
		&quot;192.168.50.75:25000&quot; : [&lt;br/&gt;
			{&lt;br/&gt;
				&quot;cursor&quot; : &quot;BtreeCursor _sk_1&quot;,&lt;br/&gt;
				&quot;nscanned&quot; : 1,&lt;br/&gt;
				&quot;nscannedObjects&quot; : 1,&lt;br/&gt;
				&quot;n&quot; : 1,&lt;br/&gt;
				&quot;millis&quot; : 0,&lt;br/&gt;
				&quot;nYields&quot; : 0,&lt;br/&gt;
				&quot;nChunkSkips&quot; : 0,&lt;br/&gt;
				&quot;isMultiKey&quot; : false,&lt;br/&gt;
				&quot;indexOnly&quot; : false,&lt;br/&gt;
				&quot;indexBounds&quot; : &lt;/p&gt;
{
					&quot;_sk&quot; : [
						[
							7,
							7
						]
					]
				}
&lt;p&gt;			}&lt;br/&gt;
		]&lt;br/&gt;
	},&lt;br/&gt;
	&quot;n&quot; : 1,&lt;br/&gt;
	&quot;nChunkSkips&quot; : 0,&lt;br/&gt;
	&quot;nYields&quot; : 0,&lt;br/&gt;
	&quot;nscanned&quot; : 1,&lt;br/&gt;
	&quot;nscannedObjects&quot; : 1,&lt;br/&gt;
	&quot;millisTotal&quot; : 0,&lt;br/&gt;
	&quot;millisAvg&quot; : 0,&lt;br/&gt;
	&quot;numQueries&quot; : 1,&lt;br/&gt;
	&quot;numShards&quot; : 1&lt;br/&gt;
}&lt;/p&gt;</comment>
                            <comment id="76306" author="scotthernandez" created="Wed, 28 Dec 2011 15:58:15 +0000"  >&lt;p&gt;Please attach the explain output.&lt;/p&gt;</comment>
                            <comment id="76305" author="jitendra908" created="Wed, 28 Dec 2011 15:53:37 +0000"  >&lt;p&gt;Dec 28 2011 03:45:58 PM  it is system local time when error came. database was correct.&lt;/p&gt;</comment>
                            <comment id="76303" author="scotthernandez" created="Wed, 28 Dec 2011 15:45:58 +0000"  >&lt;p&gt;It looks like you may be testing on the wrong database. Please return the explain I mentioned in the previous comment.&lt;/p&gt;</comment>
                            <comment id="76300" author="jitendra908" created="Wed, 28 Dec 2011 15:40:40 +0000"  >&lt;p&gt;I send u sharding status where _sk is shard key. chunks contain _sk (1 to 5) move shard0000 and _sk( 6 to 10) move shard0001 and autobalancing of chunks is off.&lt;/p&gt;

{  &quot;_id&quot; : &quot;00281211&quot;,  &quot;partitioned&quot; : true,  &quot;primary&quot; : &quot;shard0000&quot; }
&lt;p&gt;		00281211.Database chunks:&lt;br/&gt;
				shard0000	6&lt;br/&gt;
				shard0001	5&lt;br/&gt;
			{ &quot;_sk&quot; : &lt;/p&gt;
{ $minKey : 1 }
&lt;p&gt; } --&amp;gt;&amp;gt; &lt;/p&gt;
{ &quot;_sk&quot; : 1 }
&lt;p&gt; on : shard0000 &lt;/p&gt;
{ &quot;t&quot; : 6000, &quot;i&quot; : 1 }
&lt;p&gt;			&lt;/p&gt;
{ &quot;_sk&quot; : 1 }
&lt;p&gt; --&amp;gt;&amp;gt; &lt;/p&gt;
{ &quot;_sk&quot; : 2 }
&lt;p&gt; on : shard0000 &lt;/p&gt;
{ &quot;t&quot; : 1000, &quot;i&quot; : 3 }
&lt;p&gt;			&lt;/p&gt;
{ &quot;_sk&quot; : 2 }
&lt;p&gt; --&amp;gt;&amp;gt; &lt;/p&gt;
{ &quot;_sk&quot; : 3 }
&lt;p&gt; on : shard0000 &lt;/p&gt;
{ &quot;t&quot; : 1000, &quot;i&quot; : 5 }
&lt;p&gt;			&lt;/p&gt;
{ &quot;_sk&quot; : 3 }
&lt;p&gt; --&amp;gt;&amp;gt; &lt;/p&gt;
{ &quot;_sk&quot; : 4 }
&lt;p&gt; on : shard0000 &lt;/p&gt;
{ &quot;t&quot; : 1000, &quot;i&quot; : 7 }
&lt;p&gt;			&lt;/p&gt;
{ &quot;_sk&quot; : 4 }
&lt;p&gt; --&amp;gt;&amp;gt; &lt;/p&gt;
{ &quot;_sk&quot; : 5 }
&lt;p&gt; on : shard0000 &lt;/p&gt;
{ &quot;t&quot; : 1000, &quot;i&quot; : 9 }
&lt;p&gt;			&lt;/p&gt;
{ &quot;_sk&quot; : 5 }
&lt;p&gt; --&amp;gt;&amp;gt; &lt;/p&gt;
{ &quot;_sk&quot; : 6 }
&lt;p&gt; on : shard0000 &lt;/p&gt;
{ &quot;t&quot; : 1000, &quot;i&quot; : 11 }
&lt;p&gt;			&lt;/p&gt;
{ &quot;_sk&quot; : 6 }
&lt;p&gt; --&amp;gt;&amp;gt; &lt;/p&gt;
{ &quot;_sk&quot; : 7 }
&lt;p&gt; on : shard0001 &lt;/p&gt;
{ &quot;t&quot; : 2000, &quot;i&quot; : 0 }
&lt;p&gt;			&lt;/p&gt;
{ &quot;_sk&quot; : 7 }
&lt;p&gt; --&amp;gt;&amp;gt; &lt;/p&gt;
{ &quot;_sk&quot; : 8 }
&lt;p&gt; on : shard0001 &lt;/p&gt;
{ &quot;t&quot; : 3000, &quot;i&quot; : 0 }
&lt;p&gt;			&lt;/p&gt;
{ &quot;_sk&quot; : 8 }
&lt;p&gt; --&amp;gt;&amp;gt; &lt;/p&gt;
{ &quot;_sk&quot; : 9 }
&lt;p&gt; on : shard0001 &lt;/p&gt;
{ &quot;t&quot; : 4000, &quot;i&quot; : 0 }
&lt;p&gt;			&lt;/p&gt;
{ &quot;_sk&quot; : 9 }
&lt;p&gt; --&amp;gt;&amp;gt; &lt;/p&gt;
{ &quot;_sk&quot; : 10 }
&lt;p&gt; on : shard0001 &lt;/p&gt;
{ &quot;t&quot; : 5000, &quot;i&quot; : 0 }
&lt;p&gt;			&lt;/p&gt;
{ &quot;_sk&quot; : 10 }
&lt;p&gt; --&amp;gt;&amp;gt; { &quot;_sk&quot; : &lt;/p&gt;
{ $maxKey : 1 }
&lt;p&gt; } on : shard0001 &lt;/p&gt;
{ &quot;t&quot; : 6000, &quot;i&quot; : 0 }
	{  &quot;_id&quot; : &quot;0027711211&quot;,  &quot;partitioned&quot; : false,  &quot;primary&quot; : &quot;shard0000&quot; }
	{  &quot;_id&quot; : &quot;00301211&quot;,  &quot;partitioned&quot; : false,  &quot;primary&quot; : &quot;shard0000&quot; }
	{  &quot;_id&quot; : &quot;test&quot;,  &quot;partitioned&quot; : false,  &quot;primary&quot; : &quot;shard0000&quot; }</comment>
                            <comment id="76298" author="scotthernandez" created="Wed, 28 Dec 2011 15:29:55 +0000"  >&lt;p&gt;Please attach the chunk information (best to take a dump of the config db).&lt;/p&gt;

&lt;p&gt;You could also provide an explain &lt;span class=&quot;error&quot;&gt;&amp;#91;find({_sk:7}).explain()&amp;#93;&lt;/span&gt; for those _sk values. &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>38.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 28 Dec 2011 15:29:55 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 1 week, 5 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>
                            12 years, 1 week, 5 days 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>eliot</customfieldvalue>
            <customfieldvalue>jitendra908</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hroi8f:</customfieldvalue>

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

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

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