<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:53:15 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-859] Use setVersion field in isMaster for replica set discovery</title>
                <link>https://jira.mongodb.org/browse/JAVA-859</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;The latest 2.5 nightly has support for a setVersion field in the isMaster response.  It looks like an integer value that is incremented after every replset reconfig.&lt;/p&gt;

&lt;p&gt;The driver could use this field during replica set discovery process in the following way:  &lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;keep track of the highest value for setVersion seen so far&lt;/li&gt;
	&lt;li&gt;if an isMaster response has a higher setVersion that that, prefer its lists of hosts/passives/arbiters to those seen from any previous isMaster response&lt;/li&gt;
	&lt;li&gt;if it has a lower setVersion, ignore the various hosts lists&lt;/li&gt;
	&lt;li&gt;if the setVersion is equal, it should be the same list of hosts so nothing needs to be done&lt;/li&gt;
	&lt;li&gt;if there is no setVersion, assume it&apos;s newer&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Note that the setVersion is not incremented after an election, only after a reconfig.&lt;/p&gt;</description>
                <environment></environment>
        <key id="79978">JAVA-859</key>
            <summary>Use setVersion field in isMaster for replica set discovery</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="9">Done</resolution>
                                        <assignee username="jeff.yemin@mongodb.com">Jeffrey Yemin</assignee>
                                    <reporter username="jeff.yemin@mongodb.com">Jeffrey Yemin</reporter>
                        <labels>
                    </labels>
                <created>Fri, 21 Jun 2013 22:52:04 +0000</created>
                <updated>Thu, 3 Apr 2014 15:21:56 +0000</updated>
                            <resolved>Thu, 7 Nov 2013 02:20:04 +0000</resolved>
                                                    <fixVersion>2.12.0</fixVersion>
                    <fixVersion>3.0.0</fixVersion>
                                    <component>Connection Management</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                                                            <comments>
                            <comment id="414392" author="auto" created="Thu, 29 Aug 2013 21:41:30 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;jyemin&apos;, u&apos;name&apos;: u&apos;Jeff Yemin&apos;, u&apos;email&apos;: u&apos;jeff.yemin@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-859&quot; title=&quot;Use setVersion field in isMaster for replica set discovery&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-859&quot;&gt;&lt;del&gt;JAVA-859&lt;/del&gt;&lt;/a&gt;: Use setVersion field in isMaster for replica set discovery.&lt;br/&gt;
Ignore the hosts/arbiters/passives lists from a member with an older setVersion than has been received from a previous notification from another server.&lt;br/&gt;
Branch: 3.0.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/65ec95ef39e8a38374e584ef26e03490d20a2474&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/65ec95ef39e8a38374e584ef26e03490d20a2474&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                            <subtask id="93559">JAVA-994</subtask>
                            <subtask id="93560">JAVA-995</subtask>
                    </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|hrh3xj:</customfieldvalue>

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