<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:24:42 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>[DRIVERS-2090] Discuss errors that may interrupt a bulk write regardless of ordering</title>
                <link>https://jira.mongodb.org/browse/DRIVERS-2090</link>
                <project id="10980" key="DRIVERS">Drivers</project>
                    <description>&lt;p&gt;In &lt;a href=&quot;https://github.com/mongodb/specifications/blob/master/source/retryable-writes/retryable-writes.rst#retrying-write-commands&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Retrying Write Commands&lt;/a&gt;, the retryable writes spec states:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;In the case of a multi-statement write operation split across multiple write commands, a failed retry attempt will also interrupt execution of any additional write operations in the batch (regardless of the ordered option). This is no different than if a retryable error had been encountered without retryable behavior enabled or supported by the driver.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;In the context of the CRUD spec, multi-statement write operations are &lt;tt&gt;insertMany()&lt;/tt&gt; and &lt;tt&gt;bulkWrite()&lt;/tt&gt; (ordered and unordered alike).&lt;/p&gt;

&lt;p&gt;AFAIK, most drivers do abort bulk writes after retryable errors (i.e. network error, &quot;not master&quot; exception) and other &quot;hard stop&quot; errors (e.g. no socket available from the connection pool). However, this behavior does not appear to be documented in any specification.&lt;/p&gt;

&lt;p&gt;The &lt;a href=&quot;https://github.com/mongodb/specifications/blob/master/source/driver-bulk-update.rst#on-errors&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Bulk Write spec&apos;s On Errors section&lt;/a&gt; does discuss an authentication error aborting a bulk write before the first write is sent, but it doesn&apos;t talk about &quot;hard stop&quot; errors occurring in the midst of a bulk write (e.g. on the third of five write commands in a batch).&lt;/p&gt;

&lt;p&gt;This issue relates to the driver&apos;s ability to relay incomplete bulk write results to the user after an interruption (see: SPEC-971).&lt;/p&gt;</description>
                <environment></environment>
        <key id="450315">DRIVERS-2090</key>
            <summary>Discuss errors that may interrupt a bulk write regardless of ordering</summary>
                <type id="14901" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14700&amp;avatarType=issuetype">Spec Change</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="jmikola@mongodb.com">Jeremy Mikola</reporter>
                        <labels>
                    </labels>
                <created>Tue, 24 Oct 2017 23:15:50 +0000</created>
                <updated>Wed, 29 Jun 2022 19:49:06 +0000</updated>
                                                                <component>CRUD</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                    <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="900346">DRIVERS-716</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="667824">DRIVERS-2093</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="668349">DRIVERS-2159</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </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_10951" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Driver Changes</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10748"><![CDATA[Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hscsqv:</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>