<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:18:34 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>[CDRIVER-3615] Reduce race conditions in SDAM error handling</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-3615</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;&lt;b&gt;Summary of required driver work:&lt;/b&gt;&lt;br/&gt;
Reduce race conditions in SDAM error handling. In summary, drivers will update their SDAM and error handling logic to:&lt;/p&gt;

&lt;p&gt;Add topologyVersion field to ServerDescription.&lt;br/&gt;
Ignore stale errors based on generation number and topologyVersion.&lt;br/&gt;
Implement SDAM spec tests for topologyVersion comparison.&lt;br/&gt;
Implement SDAM spec tests for handling mock application errors with the new tests in the tests/errors directory.&lt;br/&gt;
&lt;b&gt;Spec changes:&lt;/b&gt;&lt;br/&gt;
Spec commit (part 1 of 2):&lt;br/&gt;
Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Shane Harvey&apos;, &apos;email&apos;: &apos;shane.harvey@mongodb.com&apos;, &apos;username&apos;: &apos;ShaneHarvey&apos;}
&lt;p&gt;Message: SPEC-1663 Reduce race conditions in SDAM error handling (#781)&lt;br/&gt;
Add topologyVersion field to ServerDescription.&lt;br/&gt;
Add SDAM spec tests for topologyVersion comparison.&lt;br/&gt;
Clients ignore stale errors based on generation number and topologyVersion.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/specifications/commit/7dd9c008be6edaf65368787d5e91c2ac3aeb95b8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/specifications/commit/7dd9c008be6edaf65368787d5e91c2ac3aeb95b8&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Spec commit (part 2 of 2):&lt;br/&gt;
Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Shane Harvey&apos;, &apos;email&apos;: &apos;shane.harvey@mongodb.com&apos;, &apos;username&apos;: &apos;ShaneHarvey&apos;}
&lt;p&gt;Message: SPEC-1663 Add SDAM tests for detecting stale application errors (#787)&lt;br/&gt;
Add applicationErrors to configure mock errors.&lt;br/&gt;
Add pool generation to outcome assertion.&lt;br/&gt;
Add optional &quot;description&quot; field to each phase.&lt;br/&gt;
Add tests for network errors before/after handshake completes.&lt;br/&gt;
Add tests for not master errors pre/post 4.2.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/specifications/commit/371e95b18f4783d485218bb1565970be10568e8a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/specifications/commit/371e95b18f4783d485218bb1565970be10568e8a&lt;/a&gt;&lt;br/&gt;
See DRIVERS-1187 for updated details.&lt;/p&gt;
</description>
                <environment></environment>
        <key id="1313155">CDRIVER-3615</key>
            <summary>Reduce race conditions in SDAM error handling</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="kevin.albertson@mongodb.com">Kevin Albertson</assignee>
                                    <reporter username="backlog-server-pm">Backlog - Core Eng Program Management Team</reporter>
                        <labels>
                    </labels>
                <created>Mon, 13 Apr 2020 16:35:05 +0000</created>
                <updated>Sat, 28 Oct 2023 11:28:48 +0000</updated>
                            <resolved>Fri, 15 May 2020 19:02:36 +0000</resolved>
                                                    <fixVersion>1.17.0-beta2</fixVersion>
                    <fixVersion>1.17.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="3191341" author="kevin.albertson" created="Thu, 4 Jun 2020 21:54:33 +0000"  >&lt;p&gt;Subsequent PR: &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/pull/609&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/pull/609&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3106188" author="xgen-internal-githook" created="Mon, 25 May 2020 21:14:42 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kevin Albertson&apos;, &apos;email&apos;: &apos;kevin.albertson@mongodb.com&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3678&quot; title=&quot;/Topology/request_scan_on_error failing&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3678&quot;&gt;&lt;del&gt;CDRIVER-3678&lt;/del&gt;&lt;/a&gt; fix /Topology/request_scan_on_error&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3615&quot; title=&quot;Reduce race conditions in SDAM error handling&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3615&quot;&gt;&lt;del&gt;CDRIVER-3615&lt;/del&gt;&lt;/a&gt; changed an exotic edge case for parsing errors.&lt;br/&gt;
An error with a NotMaster error code, but a &quot;node is recovering&quot; message&lt;br/&gt;
is considered a &quot;node is recovering&quot; error for multi-threaded error&lt;br/&gt;
handling. So requested scan is expected.&lt;/p&gt;

&lt;p&gt;A &quot;node is recovering&quot; error should request scan for multi-threaded, not&lt;br/&gt;
single-threaded scanning. The test was making a wrong assertion, but the&lt;br/&gt;
check of the assertion was very racy.&lt;/p&gt;

&lt;p&gt;This fixes the test and increases the wait to make the test less racy.&lt;br/&gt;
Branch: r1.17&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/ad6e9ffef947a09b08368bfcd72fdac2e877dcf7&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/ad6e9ffef947a09b08368bfcd72fdac2e877dcf7&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3106183" author="xgen-internal-githook" created="Mon, 25 May 2020 21:14:30 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kevin Albertson&apos;, &apos;email&apos;: &apos;kevin.albertson@mongodb.com&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3615&quot; title=&quot;Reduce race conditions in SDAM error handling&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3615&quot;&gt;&lt;del&gt;CDRIVER-3615&lt;/del&gt;&lt;/a&gt; reduce races in SDAM err handling&lt;br/&gt;
Branch: r1.17&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/db50880f5e4a8a41b893a0c1888ef3ae96ae62d5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/db50880f5e4a8a41b893a0c1888ef3ae96ae62d5&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3098442" author="xgen-internal-githook" created="Wed, 20 May 2020 21:53:39 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kevin Albertson&apos;, &apos;email&apos;: &apos;kevin.albertson@mongodb.com&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3678&quot; title=&quot;/Topology/request_scan_on_error failing&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3678&quot;&gt;&lt;del&gt;CDRIVER-3678&lt;/del&gt;&lt;/a&gt; fix /Topology/request_scan_on_error&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3615&quot; title=&quot;Reduce race conditions in SDAM error handling&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3615&quot;&gt;&lt;del&gt;CDRIVER-3615&lt;/del&gt;&lt;/a&gt; changed an exotic edge case for parsing errors.&lt;br/&gt;
An error with a NotMaster error code, but a &quot;node is recovering&quot; message&lt;br/&gt;
is considered a &quot;node is recovering&quot; error for multi-threaded error&lt;br/&gt;
handling. So requested scan is expected.&lt;/p&gt;

&lt;p&gt;A &quot;node is recovering&quot; error should request scan for multi-threaded, not&lt;br/&gt;
single-threaded scanning. The test was making a wrong assertion, but the&lt;br/&gt;
check of the assertion was very racy.&lt;/p&gt;

&lt;p&gt;This fixes the test and increases the wait to make the test less racy.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/6dbadb53cf3568f733496ec8be7e740d5beca3bf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/6dbadb53cf3568f733496ec8be7e740d5beca3bf&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3090492" author="xgen-internal-githook" created="Fri, 15 May 2020 19:01:48 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kevin Albertson&apos;, &apos;email&apos;: &apos;kevin.albertson@mongodb.com&apos;, &apos;username&apos;: &apos;kevinAlbs&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3615&quot; title=&quot;Reduce race conditions in SDAM error handling&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3615&quot;&gt;&lt;del&gt;CDRIVER-3615&lt;/del&gt;&lt;/a&gt; reduce races in SDAM err handling&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/924184ad11e716b3cdc36cdded2e2aac79f1be8f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/924184ad11e716b3cdc36cdded2e2aac79f1be8f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3072550" author="kevin.albertson" created="Wed, 6 May 2020 19:32:30 +0000"  >&lt;p&gt;PR: &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/pull/601&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/pull/601&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="1144715">CDRIVER-3535</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1313156">CXX-1989</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="1339549">CDRIVER-3648</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1336717">CDRIVER-3645</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1313163">PHPC-1589</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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>CDRIVER-3508</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hw913j:</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>