<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:39:40 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-2929] Improve error messaging by wrapping errors in Go Driver 1.x</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-2929</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;There are a bunch of places we could improve information in errors returned by the Go driver by wrapping errors with additional context. In some cases we can&apos;t change errors because it would break backward compatibility (see &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-2721&quot; title=&quot;Fully support &amp;quot;errors.Is&amp;quot; and &amp;quot;errors.As&amp;quot; in all stable public APIs&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-2721&quot;&gt;GODRIVER-2721&lt;/a&gt; for the related Go Driver 2.0 ticket), but in many cases we can wrap errors.&lt;/p&gt;

&lt;p&gt;Definition of done:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Audit errors returned by the Go Driver to find ones that we can change (i.e. we don&apos;t promise to return a specific error value) and that we can wrap with additional information.
	&lt;ul&gt;
		&lt;li&gt;Consider using the &lt;a href=&quot;https://golangci-lint.run/usage/linters/#errorlint&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;errrolint&lt;/a&gt; linter to check for misuse of the Go 1.13 error wrapping pattern.&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
	&lt;li&gt;Replace all uses of the internal &lt;tt&gt;errutil.WrapErrorf&lt;/tt&gt; with &lt;tt&gt;fmt.Errorf&lt;/tt&gt; using the &quot;%w&quot; verb.&lt;/li&gt;
	&lt;li&gt;Consider copying the Go stdlib &lt;a href=&quot;https://cs.opensource.google/go/go/+/refs/tags/go1.20.7:src/errors/join.go;l=13&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;errors.Join&lt;/a&gt; code into the &lt;tt&gt;errutil&lt;/tt&gt; package to support multi-errors.&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="2406747">GODRIVER-2929</key>
            <summary>Improve error messaging by wrapping errors in Go Driver 1.x</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>
                            <label>rp-track</label>
                    </labels>
                <created>Wed, 2 Aug 2023 01:51:15 +0000</created>
                <updated>Tue, 9 Jan 2024 19:22:23 +0000</updated>
                                                                            <component>Error Handling</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="5853899" author="xgen-internal-githook" created="Sat, 4 Nov 2023 00:17:22 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Matt Dale&apos;, &apos;email&apos;: &apos;9760375+matthewdale@users.noreply.github.com&apos;, &apos;username&apos;: &apos;matthewdale&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-2929&quot; title=&quot;Improve error messaging by wrapping errors in Go Driver 1.x&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-2929&quot;&gt;GODRIVER-2929&lt;/a&gt; Add the ability to join multiple errors into one. (#1370)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/848b7c207401ed414270613e929381a654ad6a29&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/848b7c207401ed414270613e929381a654ad6a29&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5641998" author="xgen-internal-githook" created="Fri, 18 Aug 2023 00:51:08 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Matt Dale&apos;, &apos;email&apos;: &apos;9760375+matthewdale@users.noreply.github.com&apos;, &apos;username&apos;: &apos;matthewdale&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-2929&quot; title=&quot;Improve error messaging by wrapping errors in Go Driver 1.x&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-2929&quot;&gt;GODRIVER-2929&lt;/a&gt; Replace all uses of errutil.WrapErrorf with fmt.Errorf (#1354)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/43962b82a22fc391fb3e9653cdd4e25769b8ce04&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/43962b82a22fc391fb3e9653cdd4e25769b8ce04&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5641467" author="xgen-internal-githook" created="Thu, 17 Aug 2023 19:54:43 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Matt Dale&apos;, &apos;email&apos;: &apos;9760375+matthewdale@users.noreply.github.com&apos;, &apos;username&apos;: &apos;matthewdale&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-2929&quot; title=&quot;Improve error messaging by wrapping errors in Go Driver 1.x&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-2929&quot;&gt;GODRIVER-2929&lt;/a&gt; Make driver.ErrDeadlineWouldBeExceeded wrap context.DeadlineExceeded (#1355)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/e2c90c96e8ad6c7b7095c32be0e45e1216c77093&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/e2c90c96e8ad6c7b7095c32be0e45e1216c77093&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2407598">GODRIVER-2932</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2414468">GODRIVER-2941</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2487006">GODRIVER-3031</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="2218909">GODRIVER-2721</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2289301">GODRIVER-2775</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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i22kfc:</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>