<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:38:04 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>[GODRIVER-2209] Do not include default read preference on cursor getMore and killCursors commands</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-2209</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;&lt;b&gt;Background &amp;amp; Motivation&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Cursor &lt;tt&gt;getMore&lt;/tt&gt; and &lt;tt&gt;killCursors&lt;/tt&gt; operations must target the same server that produced the cursor ID.&lt;/p&gt;

&lt;p&gt;Currently, the default read preference of primaryPreferred is included in the &lt;tt&gt;getMore&lt;/tt&gt; and &lt;tt&gt;killCursors&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;This can be surprising to users logging CommandStarted events.&lt;/p&gt;

&lt;p&gt;The specifications do not note expected behavior with passing read preference to &lt;tt&gt;getMore&lt;/tt&gt; and &lt;tt&gt;killCursors&lt;/tt&gt;. &lt;a href=&quot;https://jira.mongodb.org/browse/PYTHON-2059&quot; title=&quot;getmore explicitly sets readPreference to primary even when connection set secondary&quot; class=&quot;issue-link&quot; data-issue-key=&quot;PYTHON-2059&quot;&gt;&lt;del&gt;PYTHON-2059&lt;/del&gt;&lt;/a&gt; notes a similar report for PyMongo.&lt;/p&gt;

&lt;p&gt;See the attached main.go for a reproducible example.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Scope&lt;/b&gt;&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Omit read preference from &lt;tt&gt;getMore&lt;/tt&gt; and &lt;tt&gt;killCursors&lt;/tt&gt; commands.&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="1913208">GODRIVER-2209</key>
            <summary>Do not include default read preference on cursor getMore and killCursors commands</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="13201">Fixed</resolution>
                                        <assignee username="preston.vasquez@mongodb.com">Preston Vasquez</assignee>
                                    <reporter username="kevin.albertson@mongodb.com">Kevin Albertson</reporter>
                        <labels>
                    </labels>
                <created>Fri, 29 Oct 2021 15:00:35 +0000</created>
                <updated>Wed, 8 Nov 2023 03:32:03 +0000</updated>
                            <resolved>Tue, 8 Aug 2023 20:09:59 +0000</resolved>
                                    <version>1.7.3</version>
                                    <fixVersion>1.12.2</fixVersion>
                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="5863065" author="xgen-internal-githook" created="Wed, 8 Nov 2023 03:32:03 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Preston Vasquez&apos;, &apos;email&apos;: &apos;prestonvasquez@icloud.com&apos;, &apos;username&apos;: &apos;prestonvasquez&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-2209&quot; title=&quot;Do not include default read preference on cursor getMore and killCursors commands&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-2209&quot;&gt;&lt;del&gt;GODRIVER-2209&lt;/del&gt;&lt;/a&gt; Omit readPreference on BatchCursor commands (#1346)&lt;br/&gt;
Branch: release/1.12&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/2b69f0305b138c44978a924e5206e922d8604b29&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/2b69f0305b138c44978a924e5206e922d8604b29&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5621510" author="xgen-internal-githook" created="Tue, 8 Aug 2023 20:09:24 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Preston Vasquez&apos;, &apos;email&apos;: &apos;prestonvasquez@icloud.com&apos;, &apos;username&apos;: &apos;prestonvasquez&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-2209&quot; title=&quot;Do not include default read preference on cursor getMore and killCursors commands&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-2209&quot;&gt;&lt;del&gt;GODRIVER-2209&lt;/del&gt;&lt;/a&gt; Omit readPreference on BatchCursor commands (#1346)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/585e3ee097d4e6e3af8db1f22ae0f414ace86523&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/585e3ee097d4e6e3af8db1f22ae0f414ace86523&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1016274">PYTHON-2059</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="343170" name="main.go" size="4540" author="kevin.albertson@mongodb.com" created="Fri, 29 Oct 2021 14:50:52 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                    <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[5006R00001lQ6JoQAK, 5006R00001v77XwQAI]]]></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_10257" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Documentation Changes</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11861"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_14266" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Documentation Changes Summary</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;1.  What would you like to communicate to the user about this feature?&lt;br/&gt;
2.  Would you like the user to see examples of the syntax and/or executable code and its output?&lt;br/&gt;
3.  Which versions of the driver/connector does this apply to?&lt;/p&gt;</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_21553" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Quarter</customfieldname>
                        <customfieldvalues>
                                        <label>FY24Q3</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hzrsav:</customfieldvalue>

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