<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:03:08 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-3462] slaveOk queries don&apos;t distribute to all secondaries when using a mongos</title>
                <link>https://jira.mongodb.org/browse/SERVER-3462</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When adding a hidden replica one of the secondaries is no longer sent queries when slaveOk is used. Reproduced with 4 replicas (one hidden/prio=0) + 1 arbiter.&lt;/p&gt;</description>
                <environment></environment>
        <key id="20002">SERVER-3462</key>
            <summary>slaveOk queries don&apos;t distribute to all secondaries when using a mongos</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="spencer@mongodb.com">Spencer Brody</assignee>
                                    <reporter username="scotthernandez">Scott Hernandez</reporter>
                        <labels>
                    </labels>
                <created>Thu, 21 Jul 2011 23:24:54 +0000</created>
                <updated>Tue, 12 Jul 2016 00:19:54 +0000</updated>
                            <resolved>Wed, 27 Jul 2011 16:50:05 +0000</resolved>
                                    <version>1.8.2</version>
                    <version>1.9.0</version>
                                    <fixVersion>1.8.3</fixVersion>
                    <fixVersion>1.9.2</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="55859" author="scotthernandez" created="Thu, 22 Sep 2011 12:12:26 +0000"  >&lt;p&gt;Updated fix version because it was backported to 1.8.3:&lt;/p&gt;

&lt;p&gt;git tag --contains bb85c0204c705186ca1bd67c6f39e1920ee5711d&lt;br/&gt;
r1.8.3&lt;br/&gt;
r1.8.3-rc1&lt;/p&gt;</comment>
                            <comment id="46837" author="auto" created="Sun, 7 Aug 2011 16:49:42 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;erh&apos;, u&apos;name&apos;: u&apos;Eliot Horowitz&apos;, u&apos;email&apos;: u&apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: backport of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3462&quot; title=&quot;slaveOk queries don&amp;#39;t distribute to all secondaries when using a mongos&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3462&quot;&gt;&lt;del&gt;SERVER-3462&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: v1.8&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/bb85c0204c705186ca1bd67c6f39e1920ee5711d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/bb85c0204c705186ca1bd67c6f39e1920ee5711d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="46813" author="auto" created="Sat, 6 Aug 2011 23:50:38 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;erh&apos;, u&apos;name&apos;: u&apos;Eliot Horowitz&apos;, u&apos;email&apos;: u&apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: better slave handling for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3462&quot; title=&quot;slaveOk queries don&amp;#39;t distribute to all secondaries when using a mongos&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3462&quot;&gt;&lt;del&gt;SERVER-3462&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/41f43db6e267a1007800a324cc9e5735fc37a06c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/41f43db6e267a1007800a324cc9e5735fc37a06c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="46805" author="auto" created="Sat, 6 Aug 2011 19:02:38 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;erh&apos;, u&apos;name&apos;: u&apos;Eliot Horowitz&apos;, u&apos;email&apos;: u&apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: finish &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3462&quot; title=&quot;slaveOk queries don&amp;#39;t distribute to all secondaries when using a mongos&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3462&quot;&gt;&lt;del&gt;SERVER-3462&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/7355a811bac3b021bd066a5a4ddcb4b47cb721a3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/7355a811bac3b021bd066a5a4ddcb4b47cb721a3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="45627" author="spencer" created="Mon, 1 Aug 2011 15:55:01 +0000"  >&lt;p&gt;This fix is being considered for the 1.8.3 release, but we don&apos;t decide 100% what&apos;s going into a minor stability improvement release like 1.8.3 until the dev release goes out and gets some stability testing.&lt;/p&gt;</comment>
                            <comment id="45432" author="nacuff@igodigital.com" created="Sat, 30 Jul 2011 22:18:25 +0000"  >&lt;p&gt;Any chance of a backport to 1.8.X?&lt;/p&gt;</comment>
                            <comment id="44518" author="auto" created="Tue, 26 Jul 2011 14:33:47 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;stbrody&apos;, u&apos;name&apos;: u&apos;Spencer T Brody&apos;, u&apos;email&apos;: u&apos;spencer@10gen.com&apos;}
&lt;p&gt;Message: Make doing slaveOk reads use all secondaries - &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3462&quot; title=&quot;slaveOk queries don&amp;#39;t distribute to all secondaries when using a mongos&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3462&quot;&gt;&lt;del&gt;SERVER-3462&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/39032a0f977ca4360fa9077dd24b5e03269db993&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/39032a0f977ca4360fa9077dd24b5e03269db993&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="44157" author="spencer" created="Fri, 22 Jul 2011 23:51:33 +0000"  >&lt;p&gt;Fix ready.  You can see it at &lt;a href=&quot;https://github.com/stbrody/mongo/commit/55838b9984c6301a3b465761ec5b4428bccbc373&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/stbrody/mongo/commit/55838b9984c6301a3b465761ec5b4428bccbc373&lt;/a&gt;.&lt;br/&gt;
Waiting for 1.9.1 to go out before I push it.&lt;/p&gt;</comment>
                            <comment id="44055" author="spencer" created="Fri, 22 Jul 2011 16:30:37 +0000"  >&lt;p&gt;Also, I don&apos;t think having a hidden node is necessary to reproduce, I think the actual cause is whether you have an odd or even number of visible secondaries.  If you have an odd number of secondaries, even if you&apos;re skipping every other node in the rotation, you&apos;ll still hit every node.  If you have an even number of secondaries, however, skipping every other node causes you to only use 50% of the available secondaries.&lt;/p&gt;</comment>
                            <comment id="44051" author="spencer" created="Fri, 22 Jul 2011 16:17:05 +0000"  >&lt;p&gt;I think I found the source of the bug.  In DBClientReplicaSet::checkSlave, it gets a connection to a slave, which might be an existing connection or might be a new connection.  If it&apos;s an existing connection that was made invalid it gets a new connection.  The bug is that it also gets another new connection when the first connection was a new connection to begin with.  This causes it to skip over a slave in some cases.  The fix is to change the code to only get the second connection when the first one was invalid.&lt;/p&gt;

&lt;p&gt;Patch will be coming as soon as I have a regression test.&lt;/p&gt;</comment>
                            <comment id="43946" author="eliot" created="Fri, 22 Jul 2011 01:21:11 +0000"  >&lt;p&gt;Is there a script that reproduces?&lt;br/&gt;
Ideally a JS test.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>11.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 22 Jul 2011 01:21:11 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 21 weeks, 6 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, 21 weeks, 6 days ago
                        </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>auto</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>nacuff@igodigital.com</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
            <customfieldvalue>spencer@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrovdj:</customfieldvalue>

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

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

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