<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:01:58 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-4400] Improve selection criteria for srvMaxHosts</title>
                <link>https://jira.mongodb.org/browse/JAVA-4400</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;The logic should be&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;Remove all nodes no longer present in the SRV response.&lt;/li&gt;
	&lt;li&gt;Find all new nodes to add from the SRV response.&lt;/li&gt;
	&lt;li&gt;Shuffle the new nodes (and only the new nodes).&lt;/li&gt;
	&lt;li&gt;Select and add the first srvMaxHosts - numCurrentEndPoints + numRemovedEndPoints. Note that numCurrentEndPoints is the number prior to removing any. So it&apos;s not double-counting removed endpoints.&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;The net result is that it will keep existing nodes, discard deleted nodes, and fill up to srvMaxHosts from a random shuffle of newly discovered nodes from the SRV response.&lt;/p&gt;

&lt;p&gt;The current behavior is:&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;Find all nodes from the SRV response.&lt;/li&gt;
	&lt;li&gt;Shuffle them&lt;/li&gt;
	&lt;li&gt;Select and add the first srvMaxHosts nodes&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Also implement the prose test:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;Start with 27017, and 27018. Then replace the 27018 record with two additional records so you have: 27017, 27019, 27020. Assert that the topology has two hosts present and that one of the hosts is localhost.test.build.10gen.cc:27017. The second, new host will have been randomly selected&lt;/p&gt;&lt;/blockquote&gt;

</description>
                <environment></environment>
        <key id="1921543">JAVA-4400</key>
            <summary>Improve selection criteria for srvMaxHosts</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="10300" iconUrl="https://jira.mongodb.org/images/icons/priorities/medium.svg">Unknown</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="jeff.yemin@mongodb.com">Jeffrey Yemin</reporter>
                        <labels>
                    </labels>
                <created>Tue, 9 Nov 2021 17:01:23 +0000</created>
                <updated>Sun, 23 Apr 2023 19:03:37 +0000</updated>
                                                                            <component>Cluster Management</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                    <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1827519">JAVA-4252</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1922209">DRIVERS-1981</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|hr3mmh:0400000942rf1i1</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>