<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:53: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-803] Document insert must call getLastError after each sub-batch even with WriteConcern.UNACKNOWLEDGED</title>
                <link>https://jira.mongodb.org/browse/JAVA-803</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;To maintain the semantic that the batch stops as soon as there is a single error...if a user tries to insert 10k documents but only 2k documents fit with the maximum message size, the driver does five 2k inserts. In that case, after each 2k insert, it should call getLastError, and if there was an error, fail. This is whether or not the user wants GLEs called. This is the only way to guarantee the semantics.&quot;&lt;/p&gt;

&lt;p&gt;So, even if WriteConcern.UNACKNOWLEDGED, you still must call getLastError after each batch, except for the last batch.&lt;/p&gt;

&lt;p&gt;This is only if WriteConcern.continueOnError is false.  If it&apos;s true, the existing algorithm is ok.&lt;/p&gt;</description>
                <environment></environment>
        <key id="71580">JAVA-803</key>
            <summary>Document insert must call getLastError after each sub-batch even with WriteConcern.UNACKNOWLEDGED</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="-1">Unassigned</assignee>
                                    <reporter username="jeff.yemin@mongodb.com">Jeffrey Yemin</reporter>
                        <labels>
                    </labels>
                <created>Fri, 12 Apr 2013 01:01:27 +0000</created>
                <updated>Wed, 25 Nov 2015 20:14:30 +0000</updated>
                            <resolved>Wed, 25 Nov 2015 20:14:30 +0000</resolved>
                                                    <fixVersion>3.1.0</fixVersion>
                                    <component>Write Operations</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="1098657" author="jeff.yemin" created="Wed, 25 Nov 2015 20:14:30 +0000"  >&lt;p&gt;This was fixed as part of &lt;a href=&quot;https://jira.mongodb.org/browse/JAVA-1887&quot; title=&quot;Implement command monitoring specification&quot; class=&quot;issue-link&quot; data-issue-key=&quot;JAVA-1887&quot;&gt;&lt;del&gt;JAVA-1887&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="525126" author="jeff.yemin" created="Thu, 27 Mar 2014 20:40:02 +0000"  >&lt;p&gt;Since OP_INSERT is going to be deprecated in favor of the insert command, this improvement is no longer so imperative.  &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="50898">DRIVERS-1888</issuekey>
        </issuelink>
                            </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_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrgafj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8595</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>