<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:12:20 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-6658] slaveOk reads are going to primary</title>
                <link>https://jira.mongodb.org/browse/SERVER-6658</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;linked to : &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6604&quot; title=&quot;slaveOk reads are going to primary&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6604&quot;&gt;&lt;del&gt;SERVER-6604&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I am still seeing this issue Scott.&lt;/p&gt;

&lt;p&gt;After upgrading our 2 secondaries to 2.2 rc0 with master still at 2.0.6, driver starts reading from master as well as secondaries. Switching the secondaries back to 2.0.6 resolves the problem. This could be specific to the c# driver, or might be resolved once the master is also upgraded (waiting for production release before upgrading master).&lt;/p&gt;

&lt;p&gt;Please see details below. The driver is definitely being set to SlaveOk=true, and I do not see this issue when running 2.0.6. &lt;br/&gt;
As you can see both secondaries are synced and operational, and there are queries being routed to the primary. The secondaries have been running 2.2 for over an hour&lt;/p&gt;

&lt;p&gt;                  localhost:3002	    *6   6068   1|86     *0       3    19|0       0    30g  70.7g  44.8g   1388        0          0      37|0   870|1   410k     5m 14671 tagstore  SEC   11:46:49 &lt;br/&gt;
mongo86:3002	    *6   6069   1|86     *0       3    19|0       0    30g  70.7g  44.8g   1388        0          0       5|1   870|1   410k     5m 14671 tagstore  SEC   11:46:49 &lt;br/&gt;
mongo87:3002	   *33   5152   *845     *0       0    47|0       0  30.1g  56.1g  32.1g   3572        0          0       0|0  1528|0   259k     3m 12214 tagstore  SEC   11:46:49 &lt;br/&gt;
mongo88:3002	     0   3262    123      0      65      26       0    34g  40.8g  32.8g    160        0          0       0|0     1|1   276k     3m  6639 tagstore    M   11:46:49 &lt;/p&gt;

&lt;p&gt;                  localhost:3002	    *3   6828   1|85     *0       2    41|0       0    30g  70.7g  44.8g   2705        0          0       0|0   415|0   444k     5m 14721 tagstore  SEC   11:46:50 &lt;br/&gt;
mongo86:3002	    *3   6842   1|85     *0       2    41|0       0    30g  70.7g  44.8g   2705        0          0       0|0   402|0   445k     5m 14721 tagstore  SEC   11:46:50 &lt;br/&gt;
mongo87:3002	   *18   2360   *327     *0       0    38|0       0  30.1g  56.1g  32.1g   1626        0          0       0|0     5|0   354k     4m 12239 tagstore  SEC   11:46:50 &lt;br/&gt;
mongo88:3002	     0   3514    113      0      48      26       0    34g  40.8g  32.8g    133        0          0       0|0     2|1   293k     3m  6640 tagstore    M   11:46:50 &lt;/p&gt;

&lt;p&gt;                  localhost:3002	   *41   4981  1|569     *0       3    11|0       0    30g  70.7g  44.8g   1401        0          0       0|0    33|0   527k     6m 14723 tagstore  SEC   11:46:51 &lt;br/&gt;
mongo86:3002	   *41   4972  1|569     *0       3    11|0       0    30g  70.7g  44.8g   1401        0          0       0|0    46|0   525k     6m 14723 tagstore  SEC   11:46:51 &lt;br/&gt;
mongo87:3002	    *0   2060     *0     *0       0    19|0       0  30.1g  56.1g  32.1g    211        0          0       0|0     2|0   160k     1m 12252 tagstore  SEC   11:46:51 &lt;br/&gt;
mongo88:3002	     0   1886    605      0      33      18       0    34g  40.8g  32.8g    122     15.3          0       0|0     0|1   247k     2m  6639 tagstore    M   11:46:51 &lt;/p&gt;

&lt;p&gt;                  localhost:3002	    *7   1987   *116     *0       1     9|0       0    30g  70.2g  44.8g    100        0          0       0|0     0|0   161k     1m 14239 tagstore  SEC   11:46:52 &lt;br/&gt;
mongo86:3002	    *7   1986   *116     *0       1     9|0       0    30g  70.2g  44.8g    100        0          0       0|0     0|0   162k     1m 14239 tagstore  SEC   11:46:52 &lt;br/&gt;
mongo87:3002	   *19   2458   *350     *0       0    11|0       0  30.1g  55.7g  32.1g    233        0          0       0|0    59|0   180k     2m 11891 tagstore  SEC   11:46:52 &lt;br/&gt;
mongo88:3002	     0   7713     79      0      57      13       0    34g  40.8g  32.8g    129        0          0       0|0     2|1   610k     7m  6639 tagstore    M   11:46:52 &lt;/p&gt;

&lt;p&gt;                  localhost:3002	    *5   1898    *79     *0       2     8|0       0    30g  70.2g  44.8g     29        0          0       0|0     0|0   146k     1m 14232 tagstore  SEC   11:46:53 &lt;br/&gt;
mongo86:3002	    *5   1897    *79     *0       2     8|0       0    30g  70.2g  44.8g     29        0          0       0|0     0|0   146k     1m 14232 tagstore  SEC   11:46:53 &lt;br/&gt;
mongo87:3002	    *0   2563     *0     *0       0     7|0       0  30.1g  55.7g  32.1g     53        0          0       0|0     9|0   202k     2m 11859 tagstore  SEC   11:46:53 &lt;br/&gt;
mongo88:3002	     0   7030     80      0      79       7       0    34g  40.8g  32.8g    174        0          0       0|0     2|1   559k     7m  6639 tagstore    M   11:46:53 &lt;/p&gt;


&lt;p&gt;from mongo86&lt;br/&gt;
SECONDARY&amp;gt; rs.status()&lt;br/&gt;
{&lt;br/&gt;
        &quot;set&quot; : &quot;tagstore&quot;,&lt;br/&gt;
        &quot;date&quot; : ISODate(&quot;2012-07-31T11:48:08Z&quot;),&lt;br/&gt;
        &quot;myState&quot; : 2,&lt;br/&gt;
        &quot;syncingTo&quot; : &quot;mongo88:3002&quot;,&lt;br/&gt;
        &quot;members&quot; : [&lt;br/&gt;
                {&lt;br/&gt;
                        &quot;_id&quot; : 0,&lt;br/&gt;
                        &quot;name&quot; : &quot;mongo86:3002&quot;,&lt;br/&gt;
                        &quot;health&quot; : 1,&lt;br/&gt;
                        &quot;state&quot; : 2,&lt;br/&gt;
                        &quot;stateStr&quot; : &quot;SECONDARY&quot;,&lt;br/&gt;
                        &quot;uptime&quot; : 6900,&lt;br/&gt;
                        &quot;optime&quot; : &lt;/p&gt;
{
                                &quot;t&quot; : 1343735324000,
                                &quot;i&quot; : 45
                        }
&lt;p&gt;,&lt;br/&gt;
                        &quot;optimeDate&quot; : ISODate(&quot;2012-07-31T11:48:44Z&quot;),&lt;br/&gt;
                        &quot;self&quot; : true&lt;br/&gt;
                },&lt;br/&gt;
                {&lt;br/&gt;
                        &quot;_id&quot; : 1,&lt;br/&gt;
                        &quot;name&quot; : &quot;mongo87:3002&quot;,&lt;br/&gt;
                        &quot;health&quot; : 1,&lt;br/&gt;
                        &quot;state&quot; : 2,&lt;br/&gt;
                        &quot;stateStr&quot; : &quot;SECONDARY&quot;,&lt;br/&gt;
                        &quot;uptime&quot; : 6714,&lt;br/&gt;
                        &quot;optime&quot; : &lt;/p&gt;
{
                                &quot;t&quot; : 1343735322000,
                                &quot;i&quot; : 61
                        }
&lt;p&gt;,&lt;br/&gt;
                        &quot;optimeDate&quot; : ISODate(&quot;2012-07-31T11:48:42Z&quot;),&lt;br/&gt;
                        &quot;lastHeartbeat&quot; : ISODate(&quot;2012-07-31T11:48:07Z&quot;),&lt;br/&gt;
                        &quot;pingMs&quot; : 0&lt;br/&gt;
                },&lt;br/&gt;
                &lt;/p&gt;
{
                        &quot;_id&quot; : 2,
                        &quot;name&quot; : &quot;ship71:3002&quot;,
                        &quot;health&quot; : 1,
                        &quot;state&quot; : 7,
                        &quot;stateStr&quot; : &quot;ARBITER&quot;,
                        &quot;uptime&quot; : 6897,
                        &quot;lastHeartbeat&quot; : ISODate(&quot;2012-07-31T11:48:08Z&quot;),
                        &quot;pingMs&quot; : 0
                }
&lt;p&gt;,&lt;br/&gt;
                {&lt;br/&gt;
                        &quot;_id&quot; : 3,&lt;br/&gt;
                        &quot;name&quot; : &quot;mongo88:3002&quot;,&lt;br/&gt;
                        &quot;health&quot; : 1,&lt;br/&gt;
                        &quot;state&quot; : 1,&lt;br/&gt;
                        &quot;stateStr&quot; : &quot;PRIMARY&quot;,&lt;br/&gt;
                        &quot;uptime&quot; : 6897,&lt;br/&gt;
                        &quot;optime&quot; : &lt;/p&gt;
{
                                &quot;t&quot; : 1343735324000,
                                &quot;i&quot; : 79
                        }
&lt;p&gt;,&lt;br/&gt;
                        &quot;optimeDate&quot; : ISODate(&quot;2012-07-31T11:48:44Z&quot;),&lt;br/&gt;
                        &quot;lastHeartbeat&quot; : ISODate(&quot;2012-07-31T11:48:07Z&quot;),&lt;br/&gt;
                        &quot;pingMs&quot; : 0&lt;br/&gt;
                }&lt;br/&gt;
        ],&lt;br/&gt;
        &quot;ok&quot; : 1&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;PRIMARY&amp;gt; db.printSlaveReplicationInfo()&lt;br/&gt;
source:   mongo86:3002&lt;br/&gt;
         syncedTo: Tue Jul 31 2012 11:50:03 GMT+0000 (Coordinated Universal Time)&lt;br/&gt;
                 = 1 secs ago (0hrs)&lt;br/&gt;
source:   mongo87:3002&lt;br/&gt;
         syncedTo: Tue Jul 31 2012 11:50:01 GMT+0000 (Coordinated Universal Time)&lt;br/&gt;
                 = 3 secs ago (0hrs)&lt;br/&gt;
source:   ship71:3002&lt;br/&gt;
         syncedTo: Thu Jan 01 1970 00:00:00 GMT+0000 (Coordinated Universal Time)&lt;br/&gt;
                 = 1343735404 secs ago (373259.83hrs)&lt;/p&gt;</description>
                <environment>windows 64 with c# driver v1.5</environment>
        <key id="45850">SERVER-6658</key>
            <summary>slaveOk reads are going to primary</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="4">Incomplete</resolution>
                                        <assignee username="craig.wilson@mongodb.com">Craig Wilson</assignee>
                                    <reporter username="pierrearmageddon">Pierre Dane</reporter>
                        <labels>
                    </labels>
                <created>Tue, 31 Jul 2012 11:56:32 +0000</created>
                <updated>Tue, 21 Aug 2012 21:16:53 +0000</updated>
                            <resolved>Tue, 21 Aug 2012 21:16:52 +0000</resolved>
                                    <version>2.2.0-rc0</version>
                                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="155573" author="ian@10gen.com" created="Tue, 21 Aug 2012 21:16:53 +0000"  >&lt;p&gt;@pierre, please reopen if you continue to see the same problem.&lt;/p&gt;</comment>
                            <comment id="154506" author="ian@10gen.com" created="Fri, 17 Aug 2012 20:00:46 +0000"  >&lt;p&gt;@pierre, assuming you&apos;re still seeing the above problem, are you able to run db.isMaster() and post the output?&lt;/p&gt;</comment>
                            <comment id="149162" author="craiggwilson" created="Tue, 31 Jul 2012 19:23:14 +0000"  >&lt;p&gt;@Pierre could you run db.isMaster() on each of the members and post that here.  The C# driver, does not read from the primary when slaveOk is true unless there are no secondaries available.  The driver runs db.IsMaster() to determine the state of each of the members every 10 seconds.&lt;/p&gt;</comment>
                            <comment id="148999" author="pierrearmageddon" created="Tue, 31 Jul 2012 11:57:21 +0000"  >&lt;p&gt;As an aside I am seeing way more queries returning after 100ms that I do with 2.0.6&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>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 31 Jul 2012 18:56:47 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 26 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>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            11 years, 26 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>craig.wilson@mongodb.com</customfieldvalue>
            <customfieldvalue>ian@mongodb.com</customfieldvalue>
            <customfieldvalue>pierrearmageddon</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrnt6v:</customfieldvalue>

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

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

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