<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:17:40 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-3314] Test that retryable writes applies to read_write_command helpers</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-3314</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;The read_write command helpers, like &lt;tt&gt;mongoc_client_read_write_command_with_opts&lt;/tt&gt; apply both default read and write concern and read preferences. Because we consider it a write command, we apply retry writes logic. Let&apos;s write tests to validate this behavior.&lt;/p&gt;</description>
                <environment></environment>
        <key id="892439">CDRIVER-3314</key>
            <summary>Test that retryable writes applies to read_write_command helpers</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="kevin.albertson@mongodb.com">Kevin Albertson</reporter>
                        <labels>
                    </labels>
                <created>Tue, 13 Aug 2019 13:40:47 +0000</created>
                <updated>Thu, 31 Mar 2022 13:24:42 +0000</updated>
                                                                            <component>libmongoc</component>
                    <component>tests</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="2379417" author="jmikola@gmail.com" created="Tue, 20 Aug 2019 18:08:31 +0000"  >&lt;p&gt;IMO, the logic for retryable reads is only intended to apply to read commands that &lt;em&gt;do not&lt;/em&gt; write.&lt;/p&gt;

&lt;p&gt;Since this helper is intended for methods that both read and write (i.e. may inherit a read and write concern), I don&apos;t think retryable read logic should apply at all. Users should not be using this method to execute read-only commands (e.g. &lt;tt&gt;find&lt;/tt&gt;, counts using &lt;tt&gt;aggregate&lt;/tt&gt;).&lt;/p&gt;

&lt;p&gt;It&apos;s reasonable to allow retryable write logic, since we&apos;ll inspect whether the &lt;a href=&quot;https://github.com/mongodb/specifications/blob/master/source/retryable-writes/retryable-writes.rst#supported-write-operations&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;command is supported&lt;/a&gt;.&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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>CDRIVER-2733</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr6lvb:</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>