<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 22:04:52 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>[CXX-2095] a bulk_write operation (created by create_bulk_write()) cannot be reinitialised</title>
                <link>https://jira.mongodb.org/browse/CXX-2095</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;Say I call&#160;&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;auto bulk = coll.create_bulk_write();&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;and append some writes and call&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;auto result = bulk.execute();&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;Afterwards, every object created using .create_bulk_write from now on fails and does not execute.&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;Is there some way to reinitialise the object created by create_bulk_write()&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="1446188">CXX-2095</key>
            <summary>a bulk_write operation (created by create_bulk_write()) cannot be reinitialised</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="13203">Gone away</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="kaustubh@zilliqa.com">kaustubh shamshery</reporter>
                        <labels>
                    </labels>
                <created>Wed, 19 Aug 2020 07:36:13 +0000</created>
                <updated>Fri, 27 Oct 2023 19:48:21 +0000</updated>
                            <resolved>Thu, 20 Aug 2020 00:17:02 +0000</resolved>
                                    <version>3.5.1</version>
                                                    <component>Implementation</component>
                    <component>Performance</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="3348253" author="JIRAUSER1255786" created="Thu, 20 Aug 2020 00:12:50 +0000"  >&lt;p&gt;Issue Resolved, Kindly delete this. &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&#160;. Apologies.&lt;/p&gt;</comment>
                            <comment id="3346556" author="JIRAUSER1255786" created="Wed, 19 Aug 2020 07:39:26 +0000"  >&lt;p&gt;Code Example&lt;/p&gt;

&lt;p&gt;&#160;&lt;br/&gt;
 auto txnCollection = GetCollection(m_txnCollectionName);&lt;br/&gt;
 &#160;&lt;br/&gt;
 auto bulk = txnCollection.create_bulk_write();&lt;br/&gt;
 bulk.append(insert_op1);&#160;&lt;/p&gt;

&lt;p&gt;bulk.append(insert_op2); //This one is invalid due to unique key error&lt;/p&gt;

&lt;p&gt;bulk.execute(); //One executes and I catch the error for the other one&lt;/p&gt;

&lt;p&gt;auto bulk2 = txnCollection.create_bulk_write();&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;bulk2.append(insert_op3); //insert_op3 is valid&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;bulk2.execute() //Fails due to previous error&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&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|hxnq5b:</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>