<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:36:27 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>[CSHARP-315] Support ReadPreference (deprecate SlaveOk)</title>
                <link>https://jira.mongodb.org/browse/CSHARP-315</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;Support new ReadPreference options and deprecate SlaveOk.&lt;/p&gt;</description>
                <environment></environment>
        <key id="21885">CSHARP-315</key>
            <summary>Support ReadPreference (deprecate SlaveOk)</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="robert@mongodb.com">Robert Stam</assignee>
                                    <reporter username="robert@mongodb.com">Robert Stam</reporter>
                        <labels>
                            <label>SERVER_V2</label>
                    </labels>
                <created>Tue, 6 Sep 2011 00:13:52 +0000</created>
                <updated>Thu, 20 Mar 2014 14:32:12 +0000</updated>
                            <resolved>Mon, 27 Aug 2012 20:04:50 +0000</resolved>
                                    <version>1.2</version>
                                    <fixVersion>1.6</fixVersion>
                                                        <votes>7</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="155969" author="auto" created="Thu, 23 Aug 2012 03:17:00 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-08-20T13:36:40-07:00&apos;, u&apos;email&apos;: u&apos;craiggwilson@gmail.com&apos;, u&apos;name&apos;: u&apos;Craig Wilson&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-315&quot; title=&quot;Support ReadPreference (deprecate SlaveOk)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-315&quot;&gt;&lt;del&gt;CSHARP-315&lt;/del&gt;&lt;/a&gt;: add support for reading tags from isMaster result.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/cdd29cbc0441af283122d9682d1cf616abf5447e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/cdd29cbc0441af283122d9682d1cf616abf5447e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="142990" author="auto" created="Sat, 14 Jul 2012 13:45:51 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-07-13T22:22:34-07:00&apos;, u&apos;email&apos;: u&apos;robert@10gen.com&apos;, u&apos;name&apos;: u&apos;rstam&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-315&quot; title=&quot;Support ReadPreference (deprecate SlaveOk)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-315&quot;&gt;&lt;del&gt;CSHARP-315&lt;/del&gt;&lt;/a&gt;: Changed WrapQuery in MongoCursorEnumerator to send ReadPreference over the wire when sending query to a mongos.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/f4ec867d893270aa1393d8639c77192bfc6d08b7&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/f4ec867d893270aa1393d8639c77192bfc6d08b7&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="142906" author="auto" created="Fri, 13 Jul 2012 21:09:33 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-07-13T12:46:58-07:00&apos;, u&apos;email&apos;: u&apos;robert@10gen.com&apos;, u&apos;name&apos;: u&apos;rstam&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-315&quot; title=&quot;Support ReadPreference (deprecate SlaveOk)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-315&quot;&gt;&lt;del&gt;CSHARP-315&lt;/del&gt;&lt;/a&gt;: added support for ReadPreference to MongoConnectionStringBuilder.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/359f49834934b31362d20faa9cd7cfdf3f95d0b8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/359f49834934b31362d20faa9cd7cfdf3f95d0b8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="142537" author="auto" created="Thu, 12 Jul 2012 20:40:48 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-07-11T18:30:00-07:00&apos;, u&apos;email&apos;: u&apos;robert@10gen.com&apos;, u&apos;name&apos;: u&apos;rstam&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-315&quot; title=&quot;Support ReadPreference (deprecate SlaveOk)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-315&quot;&gt;&lt;del&gt;CSHARP-315&lt;/del&gt;&lt;/a&gt;: Added support for ReadPreference to MongoUrl and MongoUrlBuilder.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/134158b1107edd2381268a7ca77f3010a19a1dac&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/134158b1107edd2381268a7ca77f3010a19a1dac&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="142533" author="auto" created="Thu, 12 Jul 2012 20:40:42 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-07-11T10:50:06-07:00&apos;, u&apos;email&apos;: u&apos;robert@10gen.com&apos;, u&apos;name&apos;: u&apos;rstam&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-315&quot; title=&quot;Support ReadPreference (deprecate SlaveOk)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-315&quot;&gt;&lt;del&gt;CSHARP-315&lt;/del&gt;&lt;/a&gt;: some changes to how ReadPreference instances are created and initialized.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/c8cc71183ff928f391b81960322d0287d655bd86&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/c8cc71183ff928f391b81960322d0287d655bd86&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="142532" author="auto" created="Thu, 12 Jul 2012 20:40:41 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-07-11T10:34:49-07:00&apos;, u&apos;email&apos;: u&apos;robert@10gen.com&apos;, u&apos;name&apos;: u&apos;rstam&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-315&quot; title=&quot;Support ReadPreference (deprecate SlaveOk)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-315&quot;&gt;&lt;del&gt;CSHARP-315&lt;/del&gt;&lt;/a&gt;: more work on ReadPreference. Some optimizations based on keeping connected instances sorted by PingTime.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/256303c310e8f98683f9d710ce52e21dc847ca6a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/256303c310e8f98683f9d710ce52e21dc847ca6a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="142531" author="auto" created="Thu, 12 Jul 2012 20:40:40 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-07-10T20:19:00-07:00&apos;, u&apos;email&apos;: u&apos;robert@10gen.com&apos;, u&apos;name&apos;: u&apos;Robert Stam&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-315&quot; title=&quot;Support ReadPreference (deprecate SlaveOk)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-315&quot;&gt;&lt;del&gt;CSHARP-315&lt;/del&gt;&lt;/a&gt;: Add support for ReadPreference (more work needed).&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/35cb22fce151b7050d6e3be6356e7eed3ef3e218&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/35cb22fce151b7050d6e3be6356e7eed3ef3e218&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="104693" author="kamaradclimber" created="Thu, 29 Mar 2012 11:38:28 +0000"  >&lt;p&gt;Is there any place we can have an idea of the draft protocol for  this functionnality ?&lt;/p&gt;</comment>
                            <comment id="76572" author="rstam" created="Thu, 29 Dec 2011 15:52:32 +0000"  >&lt;p&gt;Work on this ticket has not yet commenced because the driver team as a whole has not yet standardized the functionality required. There is also an internal requirement that the drivers not implement this functionality until the wire protocol has been enhanced to allow passing this same information to mongos so that the same read preferences are supported in a sharded environment as in a non-sharded replica set.&lt;/p&gt;</comment>
                            <comment id="76571" author="kamaradclimber" created="Thu, 29 Dec 2011 15:44:55 +0000"  >&lt;p&gt;Another use of this function would be to allow to read from all instances in a replicaset (master and slaves). For now, documentation states that slaveOk queries are routed to slaves only.&lt;br/&gt;
My use case is all masters are on one coadt of the US, all slaves on the other coast, slaveOk is not usable when querying from the wrong side &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;Is there any news on this ticket ? Can I help ?&lt;/p&gt;</comment>
                            <comment id="64141" author="onyxmaster" created="Wed, 2 Nov 2011 07:58:50 +0000"  >&lt;p&gt;Also interested in this, we already plan for replica sets to span datacenters and having local reads inside each datacenter instead of going over VPN would be helpful latency-wise.&lt;/p&gt;</comment>
                            <comment id="61078" author="kamaradclimber" created="Tue, 18 Oct 2011 07:37:07 +0000"  >&lt;p&gt;it depends on the core server feature &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;. There seems to be other requests for this feature (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3980&quot; title=&quot;Better Data-Centre performance using local reads&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3980&quot;&gt;&lt;del&gt;SERVER-3980&lt;/del&gt;&lt;/a&gt;) but usually there are in the drivers jiras (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3309&quot; title=&quot;Need a way to exclude a particular server from being read&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3309&quot;&gt;&lt;del&gt;SERVER-3309&lt;/del&gt;&lt;/a&gt; &amp;amp; PERL-128)&lt;/p&gt;</comment>
                            <comment id="60971" author="brennancheung" created="Mon, 17 Oct 2011 21:16:18 +0000"  >&lt;p&gt;Sounds like this is dependent on the main database (we&apos;re using ruby) but waiting for this feature as well.  Currently stuck on master/slave until this is implemented.&lt;/p&gt;</comment>
                            <comment id="59479" author="rstam" created="Mon, 10 Oct 2011 15:10:49 +0000"  >&lt;p&gt;Thanks for the feedback. Knowing whether or not users are waiting for a particular feature is helpful in scheduling the order they are implemented in. Perhaps others can comment or vote also.&lt;/p&gt;</comment>
                            <comment id="59426" author="kamaradclimber" created="Mon, 10 Oct 2011 07:17:19 +0000"  >&lt;p&gt;This is really a crucial feature for us, I would be glad to help to make it happen.&lt;/p&gt;

&lt;p&gt;EDIT (explain why this feature is really useful) : &lt;br/&gt;
this is one of the last step &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/star_yellow.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; that holds us to have one big mongo cluster instead of several smaller clusters in differents datacenter. This feature would allow us to precise : read from the closest data center.&lt;/p&gt;

&lt;p&gt;&lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/star_yellow.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; The real last one is the ability to specify on which shards chunks of a given collection are allowed to be moved.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="28110">CSHARP-380</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="23329">CSHARP-336</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrh8g7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>14168</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>