<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:57:07 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>[JAVA-2407] MongoBulkWriteException E11000 duplicate key error collection</title>
                <link>https://jira.mongodb.org/browse/JAVA-2407</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;com.mongodb.MongoBulkWriteException: Bulk write operation error on server localhost:27017. Write errors: &lt;span class=&quot;error&quot;&gt;&amp;#91;BulkWriteError{index=0, code=11000, message=&amp;#39;E11000 duplicate key error collection: dbxxx.coll index: _id_ dup key: { : ObjectId(&amp;#39;584d0561ccc8fa5203947cc2&amp;#39;) }&amp;#39;, details={ }}&amp;#93;&lt;/span&gt;. &lt;br/&gt;
	at com.mongodb.connection.BulkWriteBatchCombiner.getError(BulkWriteBatchCombiner.java:176)&lt;br/&gt;
	at com.mongodb.connection.BulkWriteBatchCombiner.throwOnError(BulkWriteBatchCombiner.java:205)&lt;br/&gt;
	at com.mongodb.connection.BulkWriteBatchCombiner.getResult(BulkWriteBatchCombiner.java:146)&lt;br/&gt;
	at com.mongodb.operation.MixedBulkWriteOperation$1.call(MixedBulkWriteOperation.java:188)&lt;br/&gt;
	at com.mongodb.operation.MixedBulkWriteOperation$1.call(MixedBulkWriteOperation.java:168)&lt;br/&gt;
	at com.mongodb.operation.OperationHelper.withConnectionSource(OperationHelper.java:422)&lt;br/&gt;
	at com.mongodb.operation.OperationHelper.withConnection(OperationHelper.java:413)&lt;br/&gt;
	at com.mongodb.operation.MixedBulkWriteOperation.execute(MixedBulkWriteOperation.java:168)&lt;br/&gt;
	at com.mongodb.operation.MixedBulkWriteOperation.execute(MixedBulkWriteOperation.java:74)&lt;br/&gt;
	at com.mongodb.Mongo.execute(Mongo.java:845)&lt;br/&gt;
	at com.mongodb.Mongo$2.execute(Mongo.java:828)&lt;br/&gt;
	at com.mongodb.MongoCollectionImpl.insertMany(MongoCollectionImpl.java:338)&lt;br/&gt;
	at com.mongodb.MongoCollectionImpl.insertMany(MongoCollectionImpl.java:322)&lt;br/&gt;
	at com.xxxx.database.mongodb.PositionsMongoDb.executeBatch(PositionsMongoDb.java:130)&lt;br/&gt;
	at com.afaqy.database.DataManager$1.run(DataManager.java:75)&lt;br/&gt;
	at java.util.TimerThread.mainLoop(Timer.java:555)&lt;br/&gt;
	at java.util.TimerThread.run(Timer.java:505)&lt;/p&gt;</description>
                <environment>&lt;br/&gt;
</environment>
        <key id="337907">JAVA-2407</key>
            <summary>MongoBulkWriteException E11000 duplicate key error collection</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="13202">Works as Designed</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="kelany">Mahmoud Kelany</reporter>
                        <labels>
                    </labels>
                <created>Sun, 11 Dec 2016 07:58:46 +0000</created>
                <updated>Fri, 27 Oct 2023 13:21:15 +0000</updated>
                            <resolved>Sun, 11 Dec 2016 17:26:58 +0000</resolved>
                                    <version>3.4.0</version>
                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1454830" author="jeff.yemin" created="Sun, 11 Dec 2016 17:26:48 +0000"  >&lt;p&gt;Without any more information to go on, I&apos;d say this is expected behavior.  The server is returning an error that a document with _id of ObjectId(&quot;584d0561ccc8fa5203947cc2&quot;) already exists in the collection, and the driver is reporting that error as an exception.  Given that ObjectId instances are generally unique, the most likely explanation is that your application is inserting the same document twice.&lt;/p&gt;

&lt;p&gt;I&apos;m closing this as Works as Designed, but if you have evidence of an issue with the driver or the server, we can re-open.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <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|hssqun:</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>