<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:02:42 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-3309] Need a way to exclude a particular server from being read</title>
                <link>https://jira.mongodb.org/browse/SERVER-3309</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;As per recommended best practice, one of our secondary servers is in a different data center. However, when enabling &lt;tt&gt;slaveOK&lt;/tt&gt; for a replication set, this server is sometimes read from, even though it&apos;s much slower than the secondaries in the same data center.&lt;/p&gt;

&lt;p&gt;We have already set the priority to 0 so that this server never becomes master, but there does not appear to be a way to make that server unreadable by application code.  I believe this is a core server issue since the configuration should be set in the replication set configuration and not in each client we want to use.&lt;/p&gt;</description>
                <environment></environment>
        <key id="18541">SERVER-3309</key>
            <summary>Need a way to exclude a particular server from being read</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="scotthernandez">Scott Hernandez</assignee>
                                    <reporter username="mnorman">Michael D. Norman</reporter>
                        <labels>
                    </labels>
                <created>Tue, 21 Jun 2011 16:16:45 +0000</created>
                <updated>Tue, 18 Oct 2011 07:32:05 +0000</updated>
                            <resolved>Mon, 29 Aug 2011 15:59:40 +0000</resolved>
                                    <version>1.8.1</version>
                                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="61076" author="kamaradclimber" created="Tue, 18 Oct 2011 07:32:05 +0000"  >&lt;p&gt;this issue can be solved using read preference &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3358&quot; title=&quot;sharding - tagging - use for reading from secondaries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3358&quot;&gt;&lt;del&gt;SERVER-3358&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="38878" author="mnorman" created="Thu, 23 Jun 2011 14:12:41 +0000"  >&lt;p&gt;Thank you Kristina, this appears to have cleared up the issue. I am able to see only the non-hidden DB instances from my client now.&lt;/p&gt;</comment>
                            <comment id="38699" author="kristina" created="Wed, 22 Jun 2011 13:50:33 +0000"  >&lt;p&gt;If you haven&apos;t restarted that member since making it hidden, please do so.  There was a bug in 1.8 where certain reconfigs wouldn&apos;t be loaded by certain members until they are restarted. &lt;/p&gt;</comment>
                            <comment id="38628" author="mnorman" created="Wed, 22 Jun 2011 01:43:09 +0000"  >&lt;p&gt;They are identical&lt;/p&gt;</comment>
                            <comment id="38627" author="scotthernandez" created="Wed, 22 Jun 2011 01:36:44 +0000"  >&lt;p&gt;Can you run rs.conf() from each node? See if they match. I&apos;m guess there is an error on one of the servers related to this.&lt;/p&gt;</comment>
                            <comment id="38586" author="mnorman" created="Tue, 21 Jun 2011 20:45:24 +0000"  >&lt;p&gt;Interestingly, when I call db.isMaster() from the secondary that is hidden, the following is returned:&lt;/p&gt;

&lt;p&gt;pacman:SECONDARY&amp;gt; db.isMaster()&lt;br/&gt;
{&lt;br/&gt;
	&quot;setName&quot; : &quot;pacman&quot;,&lt;br/&gt;
	&quot;ismaster&quot; : false,&lt;br/&gt;
	&quot;secondary&quot; : true,&lt;br/&gt;
	&quot;hosts&quot; : [&lt;br/&gt;
		&quot;prod-c0-pacmandb2&quot;,&lt;br/&gt;
		&quot;prod-c0-pacmandb1&quot;&lt;br/&gt;
	],&lt;br/&gt;
	&quot;primary&quot; : &quot;prod-c0-pacmandb1&quot;,&lt;br/&gt;
	&quot;passive&quot; : true,&lt;br/&gt;
	&quot;hidden&quot; : true,&lt;br/&gt;
	&quot;maxBsonObjectSize&quot; : 16777216,&lt;br/&gt;
	&quot;ok&quot; : 1&lt;br/&gt;
}&lt;/p&gt;</comment>
                            <comment id="38585" author="mnorman" created="Tue, 21 Jun 2011 20:43:57 +0000"  >&lt;p&gt;Java 2.6.3.  It appears that db.isMaster() is returning the wrong results:&lt;/p&gt;

&lt;p&gt;pacman:PRIMARY&amp;gt; db.isMaster()&lt;br/&gt;
{&lt;br/&gt;
	&quot;setName&quot; : &quot;pacman&quot;,&lt;br/&gt;
	&quot;ismaster&quot; : true,&lt;br/&gt;
	&quot;secondary&quot; : false,&lt;br/&gt;
	&quot;hosts&quot; : [&lt;br/&gt;
		&quot;prod-c0-pacmandb1&quot;&lt;br/&gt;
	],&lt;br/&gt;
	&quot;passives&quot; : [&lt;br/&gt;
		&quot;lab-c0-pacmandb1.lab&quot;,&lt;br/&gt;
		&quot;prod-c0-pacmandb2&quot;&lt;br/&gt;
	],&lt;br/&gt;
	&quot;maxBsonObjectSize&quot; : 16777216,&lt;br/&gt;
	&quot;ok&quot; : 1&lt;br/&gt;
}&lt;/p&gt;</comment>
                            <comment id="38555" author="scotthernandez" created="Tue, 21 Jun 2011 18:13:35 +0000"  >&lt;p&gt;What driver are you using? If you run db.isMaster() then hidden nodes are not shown and this is what drivers user to build the list of available secondaries for reading from.&lt;/p&gt;</comment>
                            <comment id="38554" author="mnorman" created="Tue, 21 Jun 2011 18:08:39 +0000"  >&lt;p&gt;pacman:SECONDARY&amp;gt; rs.conf()&lt;br/&gt;
{&lt;br/&gt;
	&quot;_id&quot; : &quot;pacman&quot;,&lt;br/&gt;
	&quot;version&quot; : 2,&lt;br/&gt;
	&quot;members&quot; : [&lt;br/&gt;
		&lt;/p&gt;
{
			&quot;_id&quot; : 0,
			&quot;host&quot; : &quot;prod-c0-pacmandb1&quot;
		}
&lt;p&gt;,&lt;br/&gt;
		&lt;/p&gt;
{
			&quot;_id&quot; : 1,
			&quot;host&quot; : &quot;prod-c0-pacmandb2&quot;
		}
&lt;p&gt;,&lt;/p&gt;
		{
			&quot;_id&quot; : 2,
			&quot;host&quot; : &quot;lab-c0-pacmandb1.lab&quot;,
			&quot;priority&quot; : 0,
			&quot;hidden&quot; : true
		}
&lt;p&gt;	]&lt;br/&gt;
}&lt;/p&gt;</comment>
                            <comment id="38553" author="mnorman" created="Tue, 21 Jun 2011 18:07:31 +0000"  >&lt;p&gt;Though, to be honest, I was hoping it would!&lt;/p&gt;</comment>
                            <comment id="38552" author="mnorman" created="Tue, 21 Jun 2011 18:07:04 +0000"  >&lt;p&gt;It is marked as hidden.  That does not take it out of the read pool of secondaries.&lt;/p&gt;</comment>
                            <comment id="38527" author="scotthernandez" created="Tue, 21 Jun 2011 16:44:19 +0000"  >&lt;p&gt;You will want to mark it hidden; that will take it out of the read pool of secondaries.&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>12.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 21 Jun 2011 16:44:19 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 18 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>
                            12 years, 18 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_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>kamaradclimber</customfieldvalue>
            <customfieldvalue>kristina</customfieldvalue>
            <customfieldvalue>mnorman</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrox87:</customfieldvalue>

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

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

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