<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:39:10 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>[GODRIVER-2694] Return errors from &quot;description.NewServer&quot; and &quot;fsm.apply&quot;</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-2694</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;The &lt;tt&gt;description.NewServer&lt;/tt&gt; and &lt;tt&gt;fsm.apply&lt;/tt&gt; functions create or modify server descriptions. Both of those functions set any errors that happen on the returned or modified &lt;tt&gt;description.Server&lt;/tt&gt; struct instead of returning it as part of the function signature. That deviates from typical Go function signatures and can lead to bugs if someone doesn&apos;t realize they need to check the &lt;tt&gt;LastError&lt;/tt&gt; field on the returned struct. Update both functions to return errors as well as set the error in the &lt;tt&gt;LastError&lt;/tt&gt; field. Update calling code to check the returned error instead of the error on the &lt;tt&gt;description.Server&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;Definition of done:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Update &lt;tt&gt;description.NewServer&lt;/tt&gt; and &lt;tt&gt;fsm.apply&lt;/tt&gt; to return an error.&lt;/li&gt;
	&lt;li&gt;Update all calling code to check the returned error instead of the &lt;tt&gt;description.Server.LastError&lt;/tt&gt; field.&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="2211553">GODRIVER-2694</key>
            <summary>Return errors from &quot;description.NewServer&quot; and &quot;fsm.apply&quot;</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="matt.dale@mongodb.com">Matt Dale</reporter>
                        <labels>
                    </labels>
                <created>Thu, 15 Dec 2022 02:09:22 +0000</created>
                <updated>Mon, 8 Jan 2024 21:12:59 +0000</updated>
                                                            <fixVersion>2.0.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                    <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="2430429">GODRIVER-2965</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2210198">GODRIVER-2691</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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>GODRIVER-1787</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr6jqv:s0000yzu4f</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>