<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:57: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-1560] first query against sharded collection fails with &quot;too many attempts to update config, failing&quot;</title>
                <link>https://jira.mongodb.org/browse/SERVER-1560</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Using a 10-shard cluster all running on the same host (same setup I posted to mongodb-dev for 1.5.6, &lt;a href=&quot;http://s3.amazonaws.com/dotclue.org/shardtest-1.5.6.tgz&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://s3.amazonaws.com/dotclue.org/shardtest-1.5.6.tgz&lt;/a&gt;), the first query in a new connection always fails with the same error:&lt;/p&gt;

&lt;p&gt;% mongo jmdict&lt;br/&gt;
MongoDB shell version: 1.5.8&lt;br/&gt;
connecting to: jmdict&lt;br/&gt;
&amp;gt; db.dict.find(&lt;/p&gt;
{&quot;r_ele.reb&quot;:&quot;???&quot;}
&lt;p&gt;)&lt;br/&gt;
error: &lt;/p&gt;
{ &quot;$err&quot; : &quot;too many attempts to update config, failing&quot;, &quot;code&quot; : 10195 }


&lt;p&gt;The log file for the mongos I&apos;m connecting to shows the following for each failure:&lt;/p&gt;

&lt;p&gt;Tue Aug  3 13:06:20 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn10&amp;#93;&lt;/span&gt; ns: jmdict.dict ClusteredCursor::query ShardConnection had to change attempt: 0&lt;br/&gt;
Tue Aug  3 13:06:20 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn10&amp;#93;&lt;/span&gt; ns: jmdict.dict ClusteredCursor::query ShardConnection had to change attempt: 1&lt;br/&gt;
Tue Aug  3 13:06:21 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn10&amp;#93;&lt;/span&gt; ns: jmdict.dict ClusteredCursor::query ShardConnection had to change attempt: 2&lt;br/&gt;
Tue Aug  3 13:06:23 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn10&amp;#93;&lt;/span&gt; ns: jmdict.dict ClusteredCursor::query ShardConnection had to change attempt: 3&lt;br/&gt;
Tue Aug  3 13:06:26 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn10&amp;#93;&lt;/span&gt; ns: jmdict.dict ClusteredCursor::query ShardConnection had to change attempt: 4&lt;br/&gt;
Tue Aug  3 13:06:30 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn10&amp;#93;&lt;/span&gt; ns: jmdict.dict ClusteredCursor::query ShardConnection had to change attempt: 5&lt;br/&gt;
Tue Aug  3 13:06:30 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn10&amp;#93;&lt;/span&gt; UserException: too many attempts to update config, failing&lt;/p&gt;


&lt;p&gt;If I run db.dict.count() before the query, it succeeds every time:&lt;/p&gt;

&lt;p&gt;% mongo jmdict&lt;br/&gt;
MongoDB shell version: 1.5.8&lt;br/&gt;
connecting to: jmdict&lt;br/&gt;
&amp;gt; db.dict.count()&lt;br/&gt;
877887&lt;br/&gt;
&amp;gt; db.dict.find(&lt;/p&gt;
{&quot;r_ele.reb&quot;:&quot;???&quot;}
&lt;p&gt;)&lt;br/&gt;
{ &quot;_id&quot; : ObjectId(&quot;4c5871618fcf08e654dc3f04&quot;), &quot;trans&quot; : [ &lt;/p&gt;
{ &quot;trans_det&quot; : [ &quot;Anata&quot; ], &quot;name_type&quot; : [ &quot;surname&quot; ] }
&lt;p&gt; ], &quot;k_ele&quot; : [ &lt;/p&gt;
{ &quot;keb&quot; : &quot;?&quot; }
&lt;p&gt; ], &quot;r_ele&quot; : [ &lt;/p&gt;
{ &quot;reb&quot; : &quot;???&quot; }
&lt;p&gt; ], &quot;type&quot; : &quot;name&quot;, &quot;sense&quot; : [ ] }&lt;br/&gt;
...&lt;/p&gt;</description>
                <environment>MacOS X 10.6.4, mongodb-osx-x86_64-1.5.8</environment>
        <key id="12649">SERVER-1560</key>
            <summary>first query against sharded collection fails with &quot;too many attempts to update config, failing&quot;</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="jgreely">J Greely</reporter>
                        <labels>
                    </labels>
                <created>Tue, 3 Aug 2010 20:13:06 +0000</created>
                <updated>Tue, 12 Jul 2016 00:19:27 +0000</updated>
                            <resolved>Tue, 3 Aug 2010 22:33:00 +0000</resolved>
                                    <version>1.5.7</version>
                    <version>1.5.8</version>
                                    <fixVersion>1.6.0</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="16462" author="eliot" created="Wed, 4 Aug 2010 14:19:18 +0000"  >&lt;p&gt;Made a bit better - shouldn&apos;t have that first error anymore&lt;/p&gt;</comment>
                            <comment id="16461" author="auto" created="Wed, 4 Aug 2010 14:18:17 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;erh&apos;, &apos;name&apos;: &apos;Eliot Horowitz&apos;, &apos;email&apos;: &apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: when access namespace for the first time, prep all connections &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1560&quot; title=&quot;first query against sharded collection fails with &amp;quot;too many attempts to update config, failing&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1560&quot;&gt;&lt;del&gt;SERVER-1560&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/c542dbd78a75511491596a427b67dbca62716a50&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/c542dbd78a75511491596a427b67dbca62716a50&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="16460" author="auto" created="Wed, 4 Aug 2010 14:17:51 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;erh&apos;, &apos;name&apos;: &apos;Eliot Horowitz&apos;, &apos;email&apos;: &apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: when access namespace for the first time, prep all connections &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1560&quot; title=&quot;first query against sharded collection fails with &amp;quot;too many attempts to update config, failing&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1560&quot;&gt;&lt;del&gt;SERVER-1560&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/33b7eb758b5cff2e35ee21e639e3bd7166d94e7b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/33b7eb758b5cff2e35ee21e639e3bd7166d94e7b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="16454" author="jgreely" created="Wed, 4 Aug 2010 06:04:16 +0000"  >&lt;p&gt;Confirmed fixed in latest nightly (git version1a5c0a6723eb67b1e4f1c3d6f043ffeca6c7a6c7). I still get a single line in the mongos log if the first thing I do in a new connection is a find(), but the query always succeeds:&lt;/p&gt;

&lt;p&gt;Tue Aug  3 22:57:02 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn12&amp;#93;&lt;/span&gt; ns: jmdict.dict ClusteredCursor::query ShardConnection had to change attempt: 0&lt;/p&gt;</comment>
                            <comment id="16444" author="eliot" created="Tue, 3 Aug 2010 22:32:44 +0000"  >&lt;p&gt;Just pushed a new build:  &lt;a href=&quot;http://buildbot.mongodb.org/waterfall?show=Nightly%20OS%20X%2010.5%2064-bit&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://buildbot.mongodb.org/waterfall?show=Nightly%20OS%20X%2010.5%2064-bit&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Can you give this a try?  I&apos;m pretty sure it fixes this problem.&lt;/p&gt;</comment>
                            <comment id="16443" author="auto" created="Tue, 3 Aug 2010 22:13:33 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;erh&apos;, &apos;name&apos;: &apos;Eliot Horowitz&apos;, &apos;email&apos;: &apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: check all shard connections at once so we don&apos;t get cascading failure &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1560&quot; title=&quot;first query against sharded collection fails with &amp;quot;too many attempts to update config, failing&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1560&quot;&gt;&lt;del&gt;SERVER-1560&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/c1a0ce0228d75d62a10eeab6aa8aa0ee65b64958&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/c1a0ce0228d75d62a10eeab6aa8aa0ee65b64958&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="16438" author="jgreely" created="Tue, 3 Aug 2010 20:19:01 +0000"  >&lt;p&gt;(just noticed that the search string didn&apos;t make it through; the r_ele.reb search requires hiragana, which Jira doesn&apos;t like. Here&apos;s a valid search against another field that takes English)&lt;/p&gt;

&lt;p&gt;% mongo jmdict&lt;br/&gt;
MongoDB shell version: 1.5.8&lt;br/&gt;
connecting to: jmdict&lt;br/&gt;
&amp;gt; db.dict.find(&lt;/p&gt;
{&quot;sense.gloss.content&quot;:&quot;food&quot;}
&lt;p&gt;)&lt;br/&gt;
error: &lt;/p&gt;
{ &quot;$err&quot; : &quot;too many attempts to update config, failing&quot;, &quot;code&quot; : 10195 }
</comment>
                    </comments>
                    <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>Tue, 3 Aug 2010 22:13:33 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 29 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>
                            13 years, 29 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="10021"><![CDATA[OS X]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>jgreely</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpi0f:</customfieldvalue>

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

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

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