<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:36:38 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-1553] Add method to identify which key has duplicate value</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-1553</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;Even if detecting it&#8217;s fairly simple to detect if the write failure was produced by a duplicated key, it&#8217;s not so simple to detect which key was duplicated because, as far as I&#8217;m concerned, the only way it&#8217;s extract it from the error message string, which is error &#160;prone and can easily break with an driver update. So, I will be very happy to see a new method that easily allows to know the key at fault when this kind of error happens.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1304755">GODRIVER-1553</key>
            <summary>Add method to identify which key has duplicate value</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="12300">Won&apos;t Do</resolution>
                                        <assignee username="divjot.arora@mongodb.com">Divjot Arora</assignee>
                                    <reporter username="clausly4@gmail.com">Claudio Yanes</reporter>
                        <labels>
                    </labels>
                <created>Sun, 5 Apr 2020 00:43:15 +0000</created>
                <updated>Tue, 7 Apr 2020 14:35:08 +0000</updated>
                            <resolved>Tue, 7 Apr 2020 14:35:08 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="3029252" author="divjot.arora" created="Tue, 7 Apr 2020 14:35:08 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=clausly4%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;clausly4@gmail.com&quot;&gt;clausly4@gmail.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;These error messages are actually generated by the MongoDB server. The driver does not do any processing here, except for taking the server&apos;s response and unmarshalling it into the proper error type (in this case likely a &lt;tt&gt;mongo.WriteException&lt;/tt&gt; or &lt;tt&gt;mongo.BulkWriteException&lt;/tt&gt;). It&apos;s not feasible for us to add a method to the driver for this because we wouldn&apos;t be able to guarantee that it works for all existing and future server versions.&lt;/p&gt;

&lt;p&gt;You mentioned driver updates, so I also want to clarify that a driver update should not break your code if you decided to do this yourself because the driver will always relay the server&apos;s responses. I do recommend using a substring check (e.g &lt;tt&gt;strings.Contains()&lt;/tt&gt; rather than a string equality check because the driver may decorate the server&apos;s response with some additional information if necessary.&lt;/p&gt;

&lt;p&gt;Given this, I&apos;m going to close this ticket. Feel free to leave a comment or open another ticket if you have any further questions.&lt;/p&gt;

&lt;p&gt;&amp;#8211; Divjot&lt;/p&gt;</comment>
                    </comments>
                    <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|hx15zr:</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>