<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:38:23 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>[CSHARP-993] E11000 duplicate key error with concurrent inserts from multiple app domains</title>
                <link>https://jira.mongodb.org/browse/CSHARP-993</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;Same BSON ObjectId is sometimes generated for two different documents when inserts are performed concurrently from different .NET app domains in the same process.&lt;/p&gt;

&lt;p&gt;WriteConcern detected an error &apos;insertDocument :: caused by :: 11000 E11000 duplicate key error index: &amp;lt;colletionname&amp;gt;.$&lt;em&gt;id&lt;/em&gt;  dup key: { : ObjectId(&apos;538c82074141bd10741de97d&apos;) }&apos;.&lt;/p&gt;

&lt;p&gt;My thoughts:&lt;br/&gt;
The ObjectId class appears to not take application domains into account.  Using pid, machine name, timestamp, &amp;amp; counter (local to each app domain) is apparently not enough to guarantee uniqueness.  Perhaps, app domains should be part of the input.&lt;/p&gt;</description>
                <environment></environment>
        <key id="141618">CSHARP-993</key>
            <summary>E11000 duplicate key error with concurrent inserts from multiple app domains</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="robert@mongodb.com">Robert Stam</assignee>
                                    <reporter username="njalal">Nizar</reporter>
                        <labels>
                    </labels>
                <created>Wed, 11 Jun 2014 19:26:33 +0000</created>
                <updated>Thu, 2 Apr 2015 18:27:59 +0000</updated>
                            <resolved>Mon, 16 Jun 2014 15:24:07 +0000</resolved>
                                    <version>1.9.1</version>
                                    <fixVersion>1.9.2</fixVersion>
                                    <component>BSON</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="623038" author="xgen-internal-githook" created="Mon, 16 Jun 2014 15:55:07 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;name&apos;: u&apos;rstam&apos;, u&apos;email&apos;: u&apos;robert@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-993&quot; title=&quot;E11000 duplicate key error with concurrent inserts from multiple app domains&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-993&quot;&gt;&lt;del&gt;CSHARP-993&lt;/del&gt;&lt;/a&gt;: Ensure unique ObjectIds across AppDomains.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/4b50d5da02051a47fcfeec7c2275ca8839dd3237&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/4b50d5da02051a47fcfeec7c2275ca8839dd3237&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="622986" author="xgen-internal-githook" created="Mon, 16 Jun 2014 15:23:44 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;name&apos;: u&apos;rstam&apos;, u&apos;email&apos;: u&apos;robert@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-993&quot; title=&quot;E11000 duplicate key error with concurrent inserts from multiple app domains&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-993&quot;&gt;&lt;del&gt;CSHARP-993&lt;/del&gt;&lt;/a&gt;: Ensure unique ObjectIds across AppDomains.&lt;br/&gt;
Branch: v1.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/75977d0cc409c74c312db95fa834ece8d2f05496&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/75977d0cc409c74c312db95fa834ece8d2f05496&lt;/a&gt;&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|hrzmw7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>122220</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="182">Sprint 3 - May 25 - High Level</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>