<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:01:55 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>[JAVA-4380] Fix server selection logic for $out/$merge on secondary</title>
                <link>https://jira.mongodb.org/browse/JAVA-4380</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;In &lt;a href=&quot;https://github.com/mongodb/specifications/commit/747b7480c47900827ff2b64f23c2a14636803d1a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb/specifications@747b748&lt;/a&gt;, the rules were applying a read preference for aggregations using &lt;tt&gt;$out&lt;/tt&gt; and &lt;tt&gt;$merge&lt;/tt&gt; was changed. Previously, drivers were instructed to attempt using the read preference and only fall back to a primary if a pre-5.0 secondary was selected.&lt;/p&gt;

&lt;p&gt;This was changed to require drivers to always disregard the read preference if there is &lt;em&gt;any&lt;/em&gt; evidence of a pre-5.0 server. If there are either no available servers or all servers are 5.0+ (or load balanced, where we assume 5.0+), drivers can utilize the read preference.&lt;/p&gt;

&lt;p&gt;Spec tests have not been changed, as this clarification really only changes behavior for mixed version clusters or a replica set consisting of a single pre-5.0 primary, neither of which are tested.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1912509">JAVA-4380</key>
            <summary>Fix server selection logic for $out/$merge on secondary</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="13201">Fixed</resolution>
                                        <assignee username="jeff.yemin@mongodb.com">Jeffrey Yemin</assignee>
                                    <reporter username="jeff.yemin@mongodb.com">Jeffrey Yemin</reporter>
                        <labels>
                    </labels>
                <created>Thu, 28 Oct 2021 18:23:39 +0000</created>
                <updated>Sat, 28 Oct 2023 11:20:58 +0000</updated>
                            <resolved>Wed, 10 Nov 2021 14:53:54 +0000</resolved>
                                                    <fixVersion>4.4.0</fixVersion>
                                    <component>Query Operations</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4180373" author="xgen-internal-githook" created="Wed, 10 Nov 2021 14:53:34 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jeff Yemin&apos;, &apos;email&apos;: &apos;jeff.yemin@mongodb.com&apos;, &apos;username&apos;: &apos;jyemin&apos;}
&lt;p&gt;Message: Update server selection logic for $out/$merge aggregation pipelines (#818)&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-4380&quot; title=&quot;Fix server selection logic for $out/$merge on secondary&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-4380&quot;&gt;&lt;del&gt;JAVA-4380&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/6f49b5cd718e12d028afb094c06d2ba3c14aaccb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/6f49b5cd718e12d028afb094c06d2ba3c14aaccb&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4175687" author="jmikola@gmail.com" created="Mon, 8 Nov 2021 19:19:18 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jeff.yemin&quot; class=&quot;user-hover&quot; rel=&quot;jeff.yemin&quot;&gt;jeff.yemin&lt;/a&gt;: Assuming this is the ticket you mean to use for &lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-1969&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;DRIVERS-1969&quot;&gt;&lt;del&gt;DRIVERS-1969&lt;/del&gt;&lt;/a&gt;, I think you&apos;ll want to add a &quot;split from&quot; relationship and delete &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-4396&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;JAVA-4396&quot;&gt;&lt;del&gt;JAVA-4396&lt;/del&gt;&lt;/a&gt;. Note that using &quot;split from&quot; originally would have prevented JIRA automation from spawning &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-4396&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;JAVA-4396&quot;&gt;&lt;del&gt;JAVA-4396&lt;/del&gt;&lt;/a&gt; when the DRIVERS ticket advanced states.&lt;/p&gt;</comment>
                            <comment id="4169088" author="jeff.yemin" created="Thu, 4 Nov 2021 12:40:51 +0000"  >&lt;p&gt;In Draft Review.  Waiting on &lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-1969&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;DRIVERS-1969&quot;&gt;&lt;del&gt;DRIVERS-1969&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="1920649">JAVA-4396</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1913549">DRIVERS-1969</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_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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr3ml3:</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>