<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:19:48 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-4057] Reset setName when stale primary detected</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-4057</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;&lt;b&gt;Motivation&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;Several SDAM specification tests make assertions that the &lt;tt&gt;setName&lt;/tt&gt; on a server description is unset if it is a stale primary is reset to the state Unknown.&lt;/p&gt;

&lt;p&gt;The test runner currently does not assert anything about the &lt;tt&gt;setName&lt;/tt&gt; if it is null in the &lt;tt&gt;outcome&lt;/tt&gt;. In attempting to add the check as part of &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-4053&quot; title=&quot;Load balancer: SDAM changes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-4053&quot;&gt;&lt;del&gt;CDRIVER-4053&lt;/del&gt;&lt;/a&gt;, it started failing on several tests. The following is a sampling:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;equal_electionids.json&lt;/li&gt;
	&lt;li&gt;new_primary_new_electionid.json&lt;/li&gt;
	&lt;li&gt;null_election_id.json&lt;/li&gt;
	&lt;li&gt;setversion_without_electionid.json&lt;/li&gt;
	&lt;li&gt;new_primary.json&lt;/li&gt;
	&lt;li&gt;new_primary_new_setversion.json&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I suspect the correct behavior, as the test asserts, is to reset the &lt;tt&gt;setName&lt;/tt&gt; when a stale primary is detected.&lt;/p&gt;

&lt;p&gt;I think this is low impact currently. I do not think this interferes with SDAM correctness. But it may be an inconsistency with other drivers. Users may incorrectly see a set &lt;tt&gt;setName&lt;/tt&gt; in a ServerChangedEvent.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Scope&lt;/b&gt;&lt;br/&gt;
1. Investigate the root cause of these failures.&lt;br/&gt;
2. If, as suspected, the correct behavior is to reset the &lt;tt&gt;setName&lt;/tt&gt;, make the fix (&lt;tt&gt;_mongoc_topology_description_invalidate_primaries_cb&lt;/tt&gt; may be a starting point).&lt;br/&gt;
3. Add the assertion back in to test-mongoc-sdam.c.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1808969">CDRIVER-4057</key>
            <summary>Reset setName when stale primary detected</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="kevin.albertson@mongodb.com">Kevin Albertson</reporter>
                        <labels>
                    </labels>
                <created>Tue, 6 Jul 2021 01:28:21 +0000</created>
                <updated>Fri, 15 Apr 2022 18:38:23 +0000</updated>
                                                                                                <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                        <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-4107</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr6ltt:</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>