<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:02:40 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-3296] mongos still attempting to setShardVersion on slave MongDB</title>
                <link>https://jira.mongodb.org/browse/SERVER-3296</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Despite upgrading to MongoDB 1.8.2, we&apos;re still seeing mongos attempt setShardVersion on slave MongDB instances (like those described in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2961&quot; title=&quot;mongos may try to setShardVersion on a slave&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2961&quot;&gt;&lt;del&gt;SERVER-2961&lt;/del&gt;&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Here&apos;s what we see in the mongos logs:&lt;br/&gt;
Sun Jun 19 17:38:33 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn627&amp;#93;&lt;/span&gt; ns: users.user_badges ClusteredCursor::query ShardConnection had to change attempt: 0&lt;br/&gt;
Sun Jun 19 17:38:33 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn627&amp;#93;&lt;/span&gt;      setShardVersion failed host&lt;span class=&quot;error&quot;&gt;&amp;#91;mongo-c01r03s03:27018&amp;#93;&lt;/span&gt; &lt;/p&gt;
{ errmsg: &quot;not master&quot;, ok: 0.0 }
&lt;p&gt;Sun Jun 19 17:38:33 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn627&amp;#93;&lt;/span&gt; Assertion: 10429:setShardVersion failed host&lt;span class=&quot;error&quot;&gt;&amp;#91;mongo-c01r03s03:27018&amp;#93;&lt;/span&gt; &lt;/p&gt;
{ errmsg: &quot;not master&quot;, ok: 0.0 }
&lt;p&gt;0x5204fa 0x6a15ed 0x6a1152 &lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo11msgassertedEiPKc+0x12a) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5204fa&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6a15ed&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6a1152&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;Here&apos;s the output of --version for that mongos instance:&lt;br/&gt;
Sun Jun 19 17:45:09 mongos db version v1.8.2, pdfile version 4.5 starting (--help for usage)&lt;br/&gt;
Sun Jun 19 17:45:09 git version: 433bbaa14aaba6860da15bd4de8edf600f56501b&lt;br/&gt;
Sun Jun 19 17:45:09 build sys info: Linux bs-linux64.10gen.cc 2.6.21.7-2.ec2.v1.2.fc8xen #1 SMP Fri Nov 20 17:48:28 EST 2009 x86_64 BOOST_LIB_VERSION=1_41&lt;/p&gt;

&lt;p&gt;All mongod instances in the cluster (including config server instances) are running 1.8.2.&lt;/p&gt;</description>
                <environment>Ubuntu</environment>
        <key id="18478">SERVER-3296</key>
            <summary>mongos still attempting to setShardVersion on slave MongDB</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="greg_10gen">Greg Studer</assignee>
                                    <reporter username="joachim@friend.ly">Joachim</reporter>
                        <labels>
                    </labels>
                <created>Mon, 20 Jun 2011 01:30:42 +0000</created>
                <updated>Tue, 12 Jul 2016 00:17:56 +0000</updated>
                            <resolved>Wed, 6 Jul 2011 15:06:03 +0000</resolved>
                                    <version>1.8.2</version>
                                                    <component>Replication</component>
                                        <votes>1</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="40781" author="greg_10gen" created="Wed, 6 Jul 2011 02:38:36 +0000"  >&lt;p&gt;thanks for the update - warning was a double-check added to the newer version since this was a backport, will only trigger once in non-verbose mode - as it says, it&apos;s safe, but we want to know about it.  Basically means that you&apos;re performing a sharded operation on a non-sharded connection, which is done for getLastError().  In newer versions we&apos;ll want to migrate those operations that we can away from this, but the underlying issue you were having checking the version of these non-shard connections should now be fixed. &lt;/p&gt;</comment>
                            <comment id="40439" author="eliot" created="Mon, 4 Jul 2011 12:25:50 +0000"  >&lt;p&gt;You only need to do mongos.&lt;/p&gt;</comment>
                            <comment id="40416" author="eliot" created="Mon, 4 Jul 2011 03:01:26 +0000"  >&lt;p&gt;The patch is now in the 1.8 nightly.&lt;br/&gt;
Can you try that?&lt;/p&gt;</comment>
                            <comment id="40404" author="luc@friend.ly" created="Mon, 4 Jul 2011 00:11:55 +0000"  >&lt;p&gt;Any update or any patch? the issue is effecting out side pretty badly...&lt;br/&gt;
We tried to stepping down the slave, restarted mongos still same issue&lt;br/&gt;
thanks &lt;/p&gt;</comment>
                            <comment id="38937" author="greg_10gen" created="Thu, 23 Jun 2011 19:54:26 +0000"  >&lt;p&gt;I don&apos;t think there&apos;s a manual workaround aside from stepping down again to the original host or bouncing mongos - each mongos has a collection of hosts which sticks around for the life of the instance.  Reconfiguring your shard to remove the host from the RSet URL may work temporarily, but on a second failover the same could happen to the remaining hosts.&lt;/p&gt;</comment>
                            <comment id="38909" author="joachim@friend.ly" created="Thu, 23 Jun 2011 17:08:23 +0000"  >&lt;p&gt;Are there any steps we can take to fix this manually?&lt;/p&gt;</comment>
                            <comment id="38731" author="greg_10gen" created="Wed, 22 Jun 2011 15:26:23 +0000"  >&lt;p&gt;patch is in 1.9 now, reviewing for potential backport&lt;/p&gt;</comment>
                            <comment id="38563" author="greg_10gen" created="Tue, 21 Jun 2011 18:45:25 +0000"  >&lt;p&gt;Thanks for the verbose logs, we see what we believe to be the problem, and are working on a patch.&lt;/p&gt;</comment>
                            <comment id="38392" author="greg_10gen" created="Mon, 20 Jun 2011 21:48:30 +0000"  >&lt;p&gt;*verbose = true&lt;/p&gt;

&lt;p&gt;(not sure if verbose = yes works)&lt;/p&gt;</comment>
                            <comment id="38391" author="greg_10gen" created="Mon, 20 Jun 2011 21:46:48 +0000"  >&lt;p&gt;Yes, it will be fine to make the ticket private.  That configuration is good, it will show any ReplicaSetMonitor messages.&lt;/p&gt;</comment>
                            <comment id="38376" author="greg_10gen" created="Mon, 20 Jun 2011 20:57:37 +0000"  >&lt;p&gt;Something strange seems to occur with replica set monitoring... nothing ever gets updated.  Do you have gdb installed on any of these machines?  If so, is it possible to get a stack trace of the running threads a few minutes after failure starts happening?  If not, can you up the log verbosity for a mongos run, and wait again for the errors?&lt;/p&gt;</comment>
                            <comment id="38352" author="luc@friend.ly" created="Mon, 20 Jun 2011 18:11:08 +0000"  >&lt;p&gt;10gen team&lt;/p&gt;

&lt;p&gt;I will take over from Joachim, so please ask me anything you need&lt;br/&gt;
thanks&lt;/p&gt;</comment>
                            <comment id="38350" author="joachim@friend.ly" created="Mon, 20 Jun 2011 18:09:46 +0000"  >&lt;p&gt;I&apos;ve attached a gzipped copy of the mongos log.&lt;/p&gt;</comment>
                            <comment id="38338" author="joachim@friend.ly" created="Mon, 20 Jun 2011 16:25:41 +0000"  >&lt;p&gt;No, I don&apos;t think this was right after a primary/secondary switch. This has been happening continuously, with errors every few seconds on each server running mongos, both previously with 1.8.1 and currently with 1.8.2.&lt;/p&gt;

&lt;p&gt;Example of error count samples taken every 2 seconds:&lt;br/&gt;
$ while true;do grep -c &quot;AssertionException in process: setShardVersion&quot; mongos.log; sleep 2;done&lt;br/&gt;
64692&lt;br/&gt;
64692&lt;br/&gt;
64692&lt;br/&gt;
64692&lt;br/&gt;
64693&lt;br/&gt;
64693&lt;br/&gt;
64693&lt;br/&gt;
64693&lt;br/&gt;
64693&lt;br/&gt;
64693&lt;br/&gt;
64693&lt;br/&gt;
64694&lt;br/&gt;
64694&lt;br/&gt;
64694&lt;br/&gt;
64694&lt;br/&gt;
64695&lt;br/&gt;
64695&lt;/p&gt;


&lt;p&gt;Output of connPoolStats: &lt;a href=&quot;http://pastebin.com/Q0mGFgRw&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://pastebin.com/Q0mGFgRw&lt;/a&gt;&lt;br/&gt;
Will include mongos log later.&lt;/p&gt;</comment>
                            <comment id="38270" author="eliot" created="Mon, 20 Jun 2011 03:04:46 +0000"  >&lt;p&gt;Also, was this right after a primary/secondary switch?&lt;/p&gt;</comment>
                            <comment id="38269" author="eliot" created="Mon, 20 Jun 2011 03:04:24 +0000"  >&lt;p&gt;can you:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;upload full mongos log&lt;/li&gt;
	&lt;li&gt;send output of db.adminCommand( &quot;connPoolStats&quot; ) while connected to mongos&lt;/li&gt;
&lt;/ul&gt;
</comment>
                    </comments>
                    <attachments>
                            <attachment id="12101" name="mongos.log.gz" size="225977" author="luc@friend.ly" created="Mon, 20 Jun 2011 22:59:46 +0000"/>
                            <attachment id="12099" name="mongos.log.gz" size="2478211" author="joachim@friend.ly" created="Mon, 20 Jun 2011 18:09:14 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>16.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 20 Jun 2011 03:04:24 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 33 weeks, 1 day ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 33 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="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>greg_10gen</customfieldvalue>
            <customfieldvalue>joachim@friend.ly</customfieldvalue>
            <customfieldvalue>luc@friend.ly</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hroxfz:</customfieldvalue>

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

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

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