<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:57:26 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-1580] Got cursor assertion error while calling find() in a replica set shard environment</title>
                <link>https://jira.mongodb.org/browse/SERVER-1580</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I built up a system in this way&lt;br/&gt;
1 replica set shard with 3 nodes&lt;br/&gt;
3 config server&lt;br/&gt;
1 mongos&lt;/p&gt;

&lt;p&gt;/opt/mongodb/bin/mongod --dbpath /var/lib/mongo/set1a --port 20001 --rest --shardsvr --replSet set1/172.16.1.193:20002&lt;br/&gt;
/opt/mongodb/bin/mongod --dbpath /var/lib/mongo/set1b --port 20002 --rest --shardsvr --replSet set1/172.16.1.193:20001&lt;br/&gt;
/opt/mongodb/bin/mongod --dbpath /var/lib/mongo/set1c --port 20003 --rest --shardsvr --replSet set1/172.16.1.193:20001&lt;br/&gt;
/opt/mongodb/bin/mongod --dbpath /var/lib/mongo/conf1 --port 30001 --rest --configsvr&lt;br/&gt;
/opt/mongodb/bin/mongod --dbpath /var/lib/mongo/conf2 --port 30002 --rest --configsvr&lt;br/&gt;
/opt/mongodb/bin/mongod --dbpath /var/lib/mongo/conf3 --port 30003 --rest --configsvr&lt;/p&gt;

&lt;p&gt;echo &apos;cfg = {_id: &quot;set1&quot;, members:&lt;span class=&quot;error&quot;&gt;&amp;#91;{_id: 0, host:&amp;quot;172.16.1.193:20001&amp;quot;},{_id: 1, host:&amp;quot;172.16.1.193:20002&amp;quot;}, {_id: 2, host: &amp;quot;172.16.1.193:20003&amp;quot;}&amp;#93;&lt;/span&gt;}; rs.initiate(cfg);&apos; | /opt/mongodb/bin/mongo 172.16.1.193:20001&lt;/p&gt;

&lt;p&gt;/opt/mongodb/bin/mongos --configdb 172.16.1.193:30001,172.16.1.193:30002,172.16.1.193:30003&lt;/p&gt;

&lt;p&gt;echo &apos;db.runCommand(&lt;/p&gt;
{&quot;addshard&quot;: &quot;set1/172.16.1.193:20001,172.16.1.193:20002,172.16.1.193:20003&quot;}
&lt;p&gt;)&apos; | /opt/mongodb/bin/mongo admin&lt;/p&gt;

&lt;p&gt;Then I do following operations:&lt;br/&gt;
1. shard a database &quot;mytest&quot;&lt;br/&gt;
2. shard its collection &quot;mycoll&quot; by _id&lt;br/&gt;
3. insert one record&lt;br/&gt;
4. find the record and get &apos;error: &lt;/p&gt;
{ &quot;$err&quot; : &quot;assertion client/dbclientcursor.cpp:204&quot;, &quot;code&quot; : 0 }
&lt;p&gt;&apos;&lt;/p&gt;</description>
                <environment></environment>
        <key id="12689">SERVER-1580</key>
            <summary>Got cursor assertion error while calling find() in a replica set shard environment</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="stewwu">Che-Ching Wu</reporter>
                        <labels>
                    </labels>
                <created>Fri, 6 Aug 2010 07:53:46 +0000</created>
                <updated>Tue, 12 Jul 2016 00:17:18 +0000</updated>
                            <resolved>Tue, 17 Aug 2010 20:07:52 +0000</resolved>
                                    <version>1.6.0</version>
                                    <fixVersion>1.6.1</fixVersion>
                    <fixVersion>1.7.0</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="16663" author="stewwu" created="Tue, 10 Aug 2010 06:22:13 +0000"  >&lt;p&gt;It works fine now on build 2010-08-09. Thanks~&lt;/p&gt;</comment>
                            <comment id="16569" author="eliot" created="Sat, 7 Aug 2010 04:06:35 +0000"  >&lt;p&gt;Ok - that makes more sense.&lt;br/&gt;
Would love if you could try tomorrow or next week with ngihtly&lt;/p&gt;</comment>
                            <comment id="16568" author="stewwu" created="Sat, 7 Aug 2010 02:36:47 +0000"  >&lt;p&gt;Sorry, the error I got is on line 196. I also tested v1.5.8. Line number 204 is from v1.5.8. They are the same issue. Really sorry for incomplete information.&lt;/p&gt;</comment>
                            <comment id="16557" author="eliot" created="Fri, 6 Aug 2010 17:51:38 +0000"  >&lt;p&gt;The issue at line 196 is fixed in master and the v1.6 branch and will be in both nightlies tomorrow&lt;br/&gt;
Its the :204 one i can&apos;t reproduce&lt;/p&gt;</comment>
                            <comment id="16554" author="van" created="Fri, 6 Aug 2010 17:33:57 +0000"  >&lt;p&gt;I&apos;m also getting this issue but for line 196. &lt;/p&gt;

&lt;p&gt;This was my mongos log (hopefully it sheds some light):&lt;/p&gt;


&lt;p&gt;Fri Aug  6 17:33:41 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn26&amp;#93;&lt;/span&gt; Request::process ns: metamoki.users msg id:1756924432 attempt: 0&lt;br/&gt;
Fri Aug  6 17:33:41 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn26&amp;#93;&lt;/span&gt; shard query: metamoki.users  {}&lt;br/&gt;
Fri Aug  6 17:33:41 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn26&amp;#93;&lt;/span&gt;  shard query servers: 1&lt;br/&gt;
       server:chronotrigger/crono:10000,crono:10001,lucca:30000 _extra:{} _orderObject:{}&lt;br/&gt;
   cursor type: SerialServer&lt;br/&gt;
Fri Aug  6 17:33:41 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn26&amp;#93;&lt;/span&gt;  have to set shard version for conn: 0x85ba0b8 ns:metamoki.users my last seq: 0  current: 3 version: 1|0 manager: 0x85ce1f0&lt;br/&gt;
Fri Aug  6 17:33:41 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn26&amp;#93;&lt;/span&gt;     setShardVersion  shard0001 chronotrigger/crono:10000,crono:10001,lucca:30000  metamoki.users  &lt;/p&gt;
{ setShardVersion: &quot;metamoki.users&quot;, configdb: &quot;10.254.175.16:20000&quot;, version: Timestamp 1000|0, serverID: ObjectId(&apos;4c5bb3969eae351528437f34&apos;), shard: &quot;shard0001&quot;, shardHost: &quot;chronotrigger/crono:10000,crono:10001,lucca:30000&quot; }
&lt;p&gt; 0x85ba0b8&lt;br/&gt;
Fri Aug  6 17:33:41 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn26&amp;#93;&lt;/span&gt;       setShardVersion success!&lt;br/&gt;
Fri Aug  6 17:33:41 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn26&amp;#93;&lt;/span&gt; ns: metamoki.users ClusteredCursor::query ShardConnection had to change attempt: 0&lt;br/&gt;
Fri Aug  6 17:33:41 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn26&amp;#93;&lt;/span&gt; Request::process ns: metamoki.users msg id:1756924432 attempt: 1&lt;br/&gt;
Fri Aug  6 17:33:41 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn26&amp;#93;&lt;/span&gt; shard query: metamoki.users  {}&lt;br/&gt;
Fri Aug  6 17:33:41 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn26&amp;#93;&lt;/span&gt;  shard query servers: 1&lt;br/&gt;
       server:chronotrigger/crono:10000,crono:10001,lucca:30000 _extra:{} _orderObject:{}&lt;br/&gt;
   cursor type: SerialServer&lt;br/&gt;
Fri Aug  6 17:33:41 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn26&amp;#93;&lt;/span&gt; ClusteredCursor::query (SerialServer) server:chronotrigger/crono:10000,crono:10001,lucca:30000 ns:metamoki.users query:{} num:0 _fields:{} options: 0&lt;br/&gt;
Fri Aug  6 17:33:41 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn26&amp;#93;&lt;/span&gt;   Assertion failure connector == conn-&amp;gt;get() client/dbclientcursor.cpp 196&lt;br/&gt;
Fri Aug  6 17:33:41 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn26&amp;#93;&lt;/span&gt; ~ScopedDBConnection: _conn != null&lt;br/&gt;
Fri Aug  6 17:33:41 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn26&amp;#93;&lt;/span&gt; UserException: assertion client/dbclientcursor.cpp:196&lt;/p&gt;</comment>
                            <comment id="16553" author="eliot" created="Fri, 6 Aug 2010 17:28:08 +0000"  >&lt;p&gt;I can&apos;t reproduce this exact error - though I fixed a similar one.&lt;br/&gt;
Can you attach the full mongos log?&lt;/p&gt;</comment>
                            <comment id="16531" author="stewwu" created="Fri, 6 Aug 2010 08:06:55 +0000"  >&lt;p&gt;but count() works well.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="12697">SERVER-1584</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 6 Aug 2010 17:28:08 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 28 weeks, 1 day ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<s><a href='https://jira.mongodb.org/browse/SERVER-1584'>SERVER-1584</a></s>]]></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, 28 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>stewwu</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>van</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrphs7:</customfieldvalue>

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

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

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