<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:16:30 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>[CDRIVER-2840] Delete Many and Update Many fail with retryWrites enabled</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-2840</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;Discovered in testing with 1.12.0, still an issue in 1.13.0.&#160; Previously working in 1.9.4.&#160; Have not built 1.10.0 or 1.11.0 (cannot confirm which version this stopped working)&lt;/p&gt;

&lt;p&gt;Testing against 3.6.&lt;/p&gt;

&lt;p&gt;Connection string with retryWrites=true&lt;/p&gt;

&lt;p&gt;mongoc_collection_delete_many() and mongoc_collection_update_many() both return an error as the request contains the &quot;txnNumber&quot; field.&lt;/p&gt;

&lt;p&gt;delete:&#160; &quot;writeErrors&quot; : [ { &quot;index&quot; : 0, &quot;code&quot; : 72, &quot;errmsg&quot; : &quot;Cannot use (or request) retryable writes with limit=0&quot; }&lt;/p&gt;

&lt;p&gt;update:&#160; &quot;writeErrors&quot; : [ { &quot;index&quot; : 0, &quot;code&quot; : 72, &quot;errmsg&quot; : &quot;Cannot use (or request) retryable writes with multi=true&quot; }&lt;/p&gt;

&lt;p&gt;The APM log for both is attached.&#160; The txnNumber field is set in both requests even though these requests do not support retryable writes.&#160; (The retryable writes spec states &quot;Drivers MUST NOT add a transaction ID to any single- or multi-statement write commands that include one or more multi-document write operations.&quot;)&lt;/p&gt;

&lt;p&gt;A workaround is to use bulk operation instead.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment>AIX</environment>
        <key id="612523">CDRIVER-2840</key>
            <summary>Delete Many and Update Many fail with retryWrites enabled</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="13201">Fixed</resolution>
                                        <assignee username="jesse@mongodb.com">A. Jesse Jiryu Davis</assignee>
                                    <reporter username="amygiersch">Amy Giersch</reporter>
                        <labels>
                    </labels>
                <created>Mon, 1 Oct 2018 23:19:22 +0000</created>
                <updated>Sat, 28 Oct 2023 11:29:34 +0000</updated>
                            <resolved>Fri, 5 Oct 2018 15:38:40 +0000</resolved>
                                    <version>1.10.0</version>
                                    <fixVersion>1.14.0</fixVersion>
                                    <component>libmongoc</component>
                                        <votes>1</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="2025163" author="xgen-internal-githook" created="Fri, 5 Oct 2018 15:40:24 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;A. Jesse Jiryu Davis&apos;, &apos;email&apos;: &apos;jesse@mongodb.com&apos;, &apos;username&apos;: &apos;ajdavis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-2840&quot; title=&quot;Delete Many and Update Many fail with retryWrites enabled&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-2840&quot;&gt;&lt;del&gt;CDRIVER-2840&lt;/del&gt;&lt;/a&gt; update/delete_many ignore retrywrites&lt;/p&gt;

&lt;p&gt;These commands do not support retryable writes; they must not add txnId.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/daf35597d9612f223ac7c0ae0f263ee2d0f01c39&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/daf35597d9612f223ac7c0ae0f263ee2d0f01c39&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2021042" author="jesse" created="Tue, 2 Oct 2018 18:46:16 +0000"  >&lt;p&gt;Git bisecting, and reading diffs, suggests this change in 1.10.0 is buggy:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/db384740ed0f81c1a044f764e369fe8f26ce1438#diff-4a0fdf60d158a368481203d254179434R180&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/db384740ed0f81c1a044f764e369fe8f26ce1438#diff-4a0fdf60d158a368481203d254179434R180&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="2019982" author="jesse" created="Mon, 1 Oct 2018 23:51:36 +0000"  >&lt;p&gt;Thanks for the terrific bug report. We&apos;ll fix this in 1.14.0. Is your workaround reasonably convenient for now?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10020">
                    <name>Gantt Dependency</name>
                                                                <inwardlinks description="has to be done after">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                                                <inwardlinks description="is caused by">
                                        <issuelink>
            <issuekey id="458714">CDRIVER-2373</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="725881">CDRIVER-3051</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="725902">CDRIVER-3053</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="197578" name="update_many_delete_many_apm.txt" size="2187" author="amygiersch" created="Mon, 1 Oct 2018 23:04:31 +0000"/>
                    </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|htzomf:</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>