<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:19: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>[SERVER-28814] Eliminate ServerSelectionMetadata in favor of just using ReadPreferenceSetting</title>
                <link>https://jira.mongodb.org/browse/SERVER-28814</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;ServerSelectionMetadata is just a ReadPreferenceSetting + secondaryOk. Since secondaryOk is equivalent to ReadPreference SecondaryPreferred, it is simpler to translate it so we have a single source of truth. This is part of the OP_MSG spec which specifies using $readPreference rather than $ssm. The $ssm metadata field will still be used when communicating with 3.4 nodes over OP_COMMAND, but it will be translated at the border. &lt;/p&gt;

&lt;p&gt;As part of this work, ReadPreferenceSetting will be attached to the OperationContext on mongos in the same way that it is in mongod.&lt;/p&gt;</description>
                <environment></environment>
        <key id="374254">SERVER-28814</key>
            <summary>Eliminate ServerSelectionMetadata in favor of just using ReadPreferenceSetting</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="mathias@mongodb.com">Mathias Stearn</assignee>
                                    <reporter username="mathias@mongodb.com">Mathias Stearn</reporter>
                        <labels>
                    </labels>
                <created>Fri, 14 Apr 2017 21:59:44 +0000</created>
                <updated>Mon, 6 Aug 2018 20:01:30 +0000</updated>
                            <resolved>Fri, 12 May 2017 18:17:24 +0000</resolved>
                                                    <fixVersion>3.5.7</fixVersion>
                                    <component>Networking</component>
                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="1569993" author="xgen-internal-githook" created="Fri, 12 May 2017 18:49:10 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;RedBeard0531&apos;, u&apos;name&apos;: u&apos;Mathias Stearn&apos;, u&apos;email&apos;: u&apos;mathias@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-28814&quot; title=&quot;Eliminate ServerSelectionMetadata in favor of just using ReadPreferenceSetting&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-28814&quot;&gt;&lt;del&gt;SERVER-28814&lt;/del&gt;&lt;/a&gt; Add missing libdep&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/b4ec2f3fb21bbcb528a28b4633120f733b1d8976&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/b4ec2f3fb21bbcb528a28b4633120f733b1d8976&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1569928" author="xgen-internal-githook" created="Fri, 12 May 2017 18:11:55 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;RedBeard0531&apos;, u&apos;name&apos;: u&apos;Mathias Stearn&apos;, u&apos;email&apos;: u&apos;mathias@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-28814&quot; title=&quot;Eliminate ServerSelectionMetadata in favor of just using ReadPreferenceSetting&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-28814&quot;&gt;&lt;del&gt;SERVER-28814&lt;/del&gt;&lt;/a&gt; Replace ServerSelectionMetadata with just ReadPreferenceSetting&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/f2902d59175c0724944ca98d13f784e2de944053&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/f2902d59175c0724944ca98d13f784e2de944053&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1569927" author="xgen-internal-githook" created="Fri, 12 May 2017 18:11:52 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;RedBeard0531&apos;, u&apos;name&apos;: u&apos;Mathias Stearn&apos;, u&apos;email&apos;: u&apos;mathias@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-28814&quot; title=&quot;Eliminate ServerSelectionMetadata in favor of just using ReadPreferenceSetting&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-28814&quot;&gt;&lt;del&gt;SERVER-28814&lt;/del&gt;&lt;/a&gt; eliminate unnecessary includes of server_selection_metadata.h&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/1a955fc356627b8cc74eb15506608dd987184608&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/1a955fc356627b8cc74eb15506608dd987184608&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1569926" author="xgen-internal-githook" created="Fri, 12 May 2017 18:11:51 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;RedBeard0531&apos;, u&apos;name&apos;: u&apos;Mathias Stearn&apos;, u&apos;email&apos;: u&apos;mathias@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-28814&quot; title=&quot;Eliminate ServerSelectionMetadata in favor of just using ReadPreferenceSetting&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-28814&quot;&gt;&lt;del&gt;SERVER-28814&lt;/del&gt;&lt;/a&gt; Stop returning Status from metadata functions&lt;/p&gt;

&lt;p&gt;Every caller was already using uassertStatusOK. Moving that into the&lt;br/&gt;
functions simplifies both the implementation and the callers. Also eliminated&lt;br/&gt;
functions without any callers.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/efbf9972043c91531ce3d43275cdb8d3beb08dc2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/efbf9972043c91531ce3d43275cdb8d3beb08dc2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1569925" author="xgen-internal-githook" created="Fri, 12 May 2017 18:11:49 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;RedBeard0531&apos;, u&apos;name&apos;: u&apos;Mathias Stearn&apos;, u&apos;email&apos;: u&apos;mathias@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-28814&quot; title=&quot;Eliminate ServerSelectionMetadata in favor of just using ReadPreferenceSetting&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-28814&quot;&gt;&lt;del&gt;SERVER-28814&lt;/del&gt;&lt;/a&gt; Don&apos;t try to upconvert commands with invalid $maxTimeMS field&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/bffbfc21151a8544c9faf9fc2bf97169cbe0bc36&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/bffbfc21151a8544c9faf9fc2bf97169cbe0bc36&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1569924" author="xgen-internal-githook" created="Fri, 12 May 2017 18:11:48 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;RedBeard0531&apos;, u&apos;name&apos;: u&apos;Mathias Stearn&apos;, u&apos;email&apos;: u&apos;mathias@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-28814&quot; title=&quot;Eliminate ServerSelectionMetadata in favor of just using ReadPreferenceSetting&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-28814&quot;&gt;&lt;del&gt;SERVER-28814&lt;/del&gt;&lt;/a&gt; Attach ServerSelectionMetadata to OpCtx in mongos&lt;/p&gt;

&lt;p&gt;This eliminates the need to pass it in to Command::explain()&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/486759fee5852abed5ee263583d6e867da9c0f5d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/486759fee5852abed5ee263583d6e867da9c0f5d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1569923" author="xgen-internal-githook" created="Fri, 12 May 2017 18:11:46 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;RedBeard0531&apos;, u&apos;name&apos;: u&apos;Mathias Stearn&apos;, u&apos;email&apos;: u&apos;mathias@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-28814&quot; title=&quot;Eliminate ServerSelectionMetadata in favor of just using ReadPreferenceSetting&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-28814&quot;&gt;&lt;del&gt;SERVER-28814&lt;/del&gt;&lt;/a&gt; Clean up ClusterExplain::wrapAsExplain()&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/cb3e9d87a1150fcfd90b7db3e289e298c5c70bff&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/cb3e9d87a1150fcfd90b7db3e289e298c5c70bff&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1569922" author="xgen-internal-githook" created="Fri, 12 May 2017 18:11:45 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;RedBeard0531&apos;, u&apos;name&apos;: u&apos;Mathias Stearn&apos;, u&apos;email&apos;: u&apos;mathias@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-28814&quot; title=&quot;Eliminate ServerSelectionMetadata in favor of just using ReadPreferenceSetting&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-28814&quot;&gt;&lt;del&gt;SERVER-28814&lt;/del&gt;&lt;/a&gt; Add and use ReadPreferenceSetting::secondaryPreferredMetadata()&lt;/p&gt;

&lt;p&gt;This is prep for eliminating ServerSelectionMetadata in favor of just&lt;br/&gt;
ReadPreferenceSetting.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/f9b8a9eb2d196d93a08714c9bbcecbb7fe30a5f3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/f9b8a9eb2d196d93a08714c9bbcecbb7fe30a5f3&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="374258">SERVER-28816</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 12 May 2017 18:11:45 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 39 weeks, 5 days 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-315</customfieldvalue>
                        </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>nick.brewer</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 39 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>mathias@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht5ucv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hraoxj:</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>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1619">Repl 2017-05-08</customfieldvalue>
    <customfieldvalue id="1710">Repl 2017-05-29</customfieldvalue>

                        </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|hs4au7:</customfieldvalue>

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