<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:38:07 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-2231] Check if readpref was overwritten in operation.createReadPref</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-2231</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;Because of recent changes in &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-2220&quot; title=&quot;Ignore read preference for $out/$merge on secondaries if any servers are pre-5.0&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-2220&quot;&gt;&lt;del&gt;GODRIVER-2220&lt;/del&gt;&lt;/a&gt;, if a user runs an &lt;tt&gt;aggregate&lt;/tt&gt; with an output stage (&lt;tt&gt;$out&lt;/tt&gt; or &lt;tt&gt;$merge&lt;/tt&gt;), we will overwrite their supplied read preference with &quot;primary&quot; if there are any candidate servers that are &amp;lt; 5.0 (wire version 13).&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;operation.createReadPref&lt;/tt&gt; should check if we overwrote the read preference, and if so, return no &lt;tt&gt;$readPreference&lt;/tt&gt; to attach to the command. At the moment, we only check if the underlying operation was an output-aggregate and the &lt;em&gt;selected&lt;/em&gt; server is &amp;lt; 5.0.&lt;/p&gt;

&lt;p&gt;In a P5 + S4 + S5 situation where the user provided a &quot;secondary&quot; read preference, a &lt;tt&gt;$readPreference&lt;/tt&gt; of &quot;secondary&quot; would be sent to a primary. While this will not cause an error, it is incorrect (&quot;secondary&quot; was &lt;em&gt;not&lt;/em&gt; the effective read pref) and may mislead users of command monitoring.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1925398">GODRIVER-2231</key>
            <summary>Check if readpref was overwritten in operation.createReadPref</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="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="benji.rewis@mongodb.com">Benji Rewis</reporter>
                        <labels>
                    </labels>
                <created>Mon, 15 Nov 2021 16:11:04 +0000</created>
                <updated>Wed, 30 Mar 2022 23:46:55 +0000</updated>
                                                                            <component>Wire Protocol</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                    <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1920648">GODRIVER-2220</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|hztqsf:</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>