<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:33:57 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-312] Ensure WriteErrors are returned to the user</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-312</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;The current OP_REPLY error parsing code does not account for circumstances where the errmsg, codeName, or code are nested within the response document. This means that for write commands (insert, update, and delete), additional error parsing logic is require to extract the writeErrors.&lt;/p&gt;

&lt;p&gt;To fix this problem:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Add result.WriteError, result.WriteErrors, and result.WriteConcernError types.&lt;/li&gt;
	&lt;li&gt;Mirror these types in the mongo package as mongo.WriteError, mongo.WriteErrors, mongo.WriteConcernError.&lt;/li&gt;
	&lt;li&gt;Fully implement the result.Delete, result.Insert, and result.Update types to include a result.WriteErrors&lt;/li&gt;
	&lt;li&gt;Make the dispatch methods for Delete, Insert, and Update return an error for for WriteErrors and WriteConcernError&lt;/li&gt;
	&lt;li&gt;Create mongo package errors for WriteErrors and WriteConcernError&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="516704">GODRIVER-312</key>
            <summary>Ensure WriteErrors are returned to the user</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="kris.brandow@mongodb.com">Kristofer Brandow</assignee>
                                    <reporter username="kris.brandow@mongodb.com">Kristofer Brandow</reporter>
                        <labels>
                            <label>FreeMonitoring</label>
                            <label>Stitch</label>
                            <label>evg</label>
                    </labels>
                <created>Mon, 26 Mar 2018 16:20:20 +0000</created>
                <updated>Fri, 27 Apr 2018 20:38:12 +0000</updated>
                            <resolved>Fri, 27 Apr 2018 20:38:12 +0000</resolved>
                                    <version>0.0.2</version>
                                    <fixVersion>0.0.4</fixVersion>
                                    <component>CRUD</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="1876665" author="kris.brandow" created="Fri, 27 Apr 2018 20:38:00 +0000"  >&lt;p&gt;Code Review: &lt;a href=&quot;https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/408527&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/408527&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="1876661" author="xgen-internal-githook" created="Fri, 27 Apr 2018 20:37:50 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;kris@mongodb.com&apos;, &apos;username&apos;: &apos;skriptble&apos;, &apos;name&apos;: &apos;Kris Brandow&apos;}
&lt;p&gt;Message: Ensure write operation error are returned&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-312&quot; title=&quot;Ensure WriteErrors are returned to the user&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-312&quot;&gt;&lt;del&gt;GODRIVER-312&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-307&quot; title=&quot;Insert methods do not seem propogate duplicate key errors&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-307&quot;&gt;&lt;del&gt;GODRIVER-307&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-347&quot; title=&quot;Write errors are not handled for command responses&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-347&quot;&gt;&lt;del&gt;GODRIVER-347&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Change-Id: Ib3321215285029b9602f27ca4a89d588ef643238&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/0dfcbabcc0f2b9032e3f1ce413996c900f52a06c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/0dfcbabcc0f2b9032e3f1ce413996c900f52a06c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1871527" author="jeff.yemin" created="Mon, 23 Apr 2018 16:26:50 +0000"  >&lt;p&gt;For reference, here&apos;s the exception thrown by the C# driver: &lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/blob/master/src/MongoDB.Driver/MongoBulkWriteException.cs&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/blob/master/src/MongoDB.Driver/MongoBulkWriteException.cs&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1871515" author="eric.daniels@10gen.com" created="Mon, 23 Apr 2018 16:19:10 +0000"  >&lt;p&gt;Not sure. May be best to format it as an array of a series of errors.&lt;/p&gt;</comment>
                            <comment id="1871511" author="kris.brandow" created="Mon, 23 Apr 2018 16:16:20 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=eric.daniels&quot; class=&quot;user-hover&quot; rel=&quot;eric.daniels&quot;&gt;eric.daniels&lt;/a&gt; Yes, but I&apos;m not sure how we should actually stringify the multi-error.&lt;/p&gt;</comment>
                            <comment id="1870699" author="eric.daniels@10gen.com" created="Fri, 20 Apr 2018 23:09:29 +0000"  >&lt;p&gt;Will this also handle multiple errors returned from InsertMany for instance?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                        <issuelink>
            <issuekey id="516211">GODRIVER-307</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="522557">GODRIVER-347</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>GODRIVER-271</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr9ms7:</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>