<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:56:14 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-2069] Use setVersion and electionId to detect stale primaries</title>
                <link>https://jira.mongodb.org/browse/JAVA-2069</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;This is a change to the Server Discovery and Monitoring Specification &lt;a href=&quot;https://github.com/mongodb/specifications/blob/master/source/server-discovery-and-monitoring/server-discovery-and-monitoring.rst&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;specification&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Because electionIds from different protocol versions aren&apos;t comparable,&lt;br/&gt;
drivers must compare (setVersion, electionId) tuples to detect stale&lt;br/&gt;
primaries.&lt;/p&gt;

&lt;p&gt;You can see the details of the spec change in these commits:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://github.com/mongodb/specifications/commit/f63e74c8565c6515ce5c81feee29feb5008328e1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/specifications/commit/f63e74c8565c6515ce5c81feee29feb5008328e1&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;https://github.com/mongodb/specifications/commit/73b92206002c41243facc745036512aa8a44b6f4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/specifications/commit/73b92206002c41243facc745036512aa8a44b6f4&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;SDAM tests are also updated:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://github.com/mongodb/specifications/commit/9f4ecb128a820cacd016c5be58824f72dec75942&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/specifications/commit/9f4ecb128a820cacd016c5be58824f72dec75942&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;https://github.com/mongodb/specifications/commit/034efc8f0ba7f56acb01de44dd6394ab148e1a21&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/specifications/commit/034efc8f0ba7f56acb01de44dd6394ab148e1a21&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;https://github.com/mongodb/specifications/commit/80b0a9e03212c3385c354d115ca75af1e4c79016&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/specifications/commit/80b0a9e03212c3385c354d115ca75af1e4c79016&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="244879">JAVA-2069</key>
            <summary>Use setVersion and electionId to detect stale primaries</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>Tue, 22 Dec 2015 18:28:06 +0000</created>
                <updated>Fri, 16 Feb 2018 08:55:46 +0000</updated>
                            <resolved>Wed, 13 Jan 2016 16:42:07 +0000</resolved>
                                    <version>2.14.0</version>
                    <version>3.2.0</version>
                                    <fixVersion>3.2.1</fixVersion>
                    <fixVersion>2.14.1</fixVersion>
                                    <component>Cluster Management</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="1807794" author="xgen-internal-githook" created="Fri, 16 Feb 2018 08:55:46 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;jeff.yemin@10gen.com&apos;, &apos;name&apos;: &apos;Jeff Yemin&apos;, &apos;username&apos;: &apos;jyemin&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-2069&quot; title=&quot;Use setVersion and electionId to detect stale primaries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2069&quot;&gt;&lt;del&gt;JAVA-2069&lt;/del&gt;&lt;/a&gt;: Use both setVersion and electionId to detect a stale primary&lt;br/&gt;
Branch: 2.14.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/062a2bb14f96467938e4828e83a3fcf07f92332d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/062a2bb14f96467938e4828e83a3fcf07f92332d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1133923" author="jeff.yemin" created="Wed, 13 Jan 2016 18:06:45 +0000"  >&lt;p&gt;Closing for 3.2.1 release.&lt;/p&gt;</comment>
                            <comment id="1133760" author="xgen-internal-githook" created="Wed, 13 Jan 2016 16:41:17 +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-2069&quot; title=&quot;Use setVersion and electionId to detect stale primaries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2069&quot;&gt;&lt;del&gt;JAVA-2069&lt;/del&gt;&lt;/a&gt;: Use both setVersion and electionId to detect a stale primary&lt;br/&gt;
Branch: 2.14.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/062a2bb14f96467938e4828e83a3fcf07f92332d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/062a2bb14f96467938e4828e83a3fcf07f92332d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1133583" author="xgen-internal-githook" created="Wed, 13 Jan 2016 15:22:18 +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-2069&quot; title=&quot;Use setVersion and electionId to detect stale primaries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2069&quot;&gt;&lt;del&gt;JAVA-2069&lt;/del&gt;&lt;/a&gt;: Use both setVersion and electionId to detect a stale primary&lt;br/&gt;
Branch: 2.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/9011ab3cf0199378bdb764d0742ea74862e622ad&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/9011ab3cf0199378bdb764d0742ea74862e622ad&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1126617" author="xgen-internal-githook" created="Tue, 5 Jan 2016 18:13:42 +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-2069&quot; title=&quot;Use setVersion and electionId to detect stale primaries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2069&quot;&gt;&lt;del&gt;JAVA-2069&lt;/del&gt;&lt;/a&gt;: Added additional tests from the specification&lt;br/&gt;
Branch: 3.2.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/82a5aa99a05d748c6b9316d3702ff9729e727841&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/82a5aa99a05d748c6b9316d3702ff9729e727841&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1126614" author="jeff.yemin" created="Tue, 5 Jan 2016 18:11:52 +0000"  >&lt;p&gt;Note: referenced the wrong ticket in the commit message.&lt;/p&gt;

&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-2068&quot; title=&quot;MongoClientOptions.builder(MongoClientOptions) should make a copy of the commandListeners arrays&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2068&quot;&gt;&lt;del&gt;JAVA-2068&lt;/del&gt;&lt;/a&gt;: Added additional tests from the specification&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/4f693f5ba3157662111d9dea988c765423c5b77d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/4f693f5ba3157662111d9dea988c765423c5b77d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1126430" author="xgen-internal-githook" created="Tue, 5 Jan 2016 16:06:17 +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-2069&quot; title=&quot;Use setVersion and electionId to detect stale primaries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2069&quot;&gt;&lt;del&gt;JAVA-2069&lt;/del&gt;&lt;/a&gt;: Use both setVersion and electionId to detect a stale primary&lt;br/&gt;
Branch: 3.2.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/c59e798d83256b1f57cae68c0e80672e422d3ef3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/c59e798d83256b1f57cae68c0e80672e422d3ef3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1126419" author="xgen-internal-githook" created="Tue, 5 Jan 2016 16:00:12 +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-2069&quot; title=&quot;Use setVersion and electionId to detect stale primaries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-2069&quot;&gt;&lt;del&gt;JAVA-2069&lt;/del&gt;&lt;/a&gt;: Use both setVersion and electionId to detect a stale primary&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-java-driver/commit/a3e1330d851e6a559b77648d04154c650b4685ac&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-java-driver/commit/a3e1330d851e6a559b77648d04154c650b4685ac&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="244048">DRIVERS-279</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                                        </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|hrdtzb:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="815">JVM Sprint 30</customfieldvalue>
    <customfieldvalue id="835">Java Sprint 30</customfieldvalue>

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