<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:19:32 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-3964] Unified test runner should append session to all operations that support it</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-3964</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;While implementing &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3963&quot; title=&quot;Add unpinning transaction test for read operations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3963&quot;&gt;&lt;del&gt;CDRIVER-3963&lt;/del&gt;&lt;/a&gt;, I realized that libmongoc&apos;s unified test runner only appends sessions (i.e. &lt;tt&gt;mongoc_client_session_append&lt;/tt&gt;) for the following operations:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;operation_create_index&lt;/li&gt;
	&lt;li&gt;operation_create_collection&lt;/li&gt;
	&lt;li&gt;operation_insert_one&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;This dates back to &lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/56ada16ecdf5fe0e4b23a4af0ceed4da1b4c5351&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;56ada16&lt;/a&gt; for &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3422&quot; title=&quot;Unified test format&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3422&quot;&gt;&lt;del&gt;CDRIVER-3422&lt;/del&gt;&lt;/a&gt;, so it looks like this is just an incomplete implementation of the spec intended to pass the original tests from DRIVERS-709.&lt;/p&gt;

&lt;p&gt;I plan to add support for &quot;operation_find&quot; in &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3963&quot; title=&quot;Add unpinning transaction test for read operations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3963&quot;&gt;&lt;del&gt;CDRIVER-3963&lt;/del&gt;&lt;/a&gt;, but wanted to create this ticket to cover all remaining operations that are documented as supporting a &quot;session&quot; option.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1686055">CDRIVER-3964</key>
            <summary>Unified test runner should append session to all operations that support it</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="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="benji.rewis@mongodb.com">Benji Rewis</assignee>
                                    <reporter username="jmikola@mongodb.com">Jeremy Mikola</reporter>
                        <labels>
                    </labels>
                <created>Wed, 21 Apr 2021 20:50:44 +0000</created>
                <updated>Sat, 28 Oct 2023 11:28:29 +0000</updated>
                            <resolved>Fri, 11 Jun 2021 21:24:03 +0000</resolved>
                                    <version>1.18.0-alpha</version>
                                    <fixVersion>1.18.0</fixVersion>
                                    <component>tests</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="3874292" author="xgen-internal-githook" created="Fri, 11 Jun 2021 21:23:19 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Benjamin Rewis&apos;, &apos;email&apos;: &apos;32186188+benjirewis@users.noreply.github.com&apos;, &apos;username&apos;: &apos;benjirewis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3964&quot; title=&quot;Unified test runner should append session to all operations that support it&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3964&quot;&gt;&lt;del&gt;CDRIVER-3964&lt;/del&gt;&lt;/a&gt; Append session to all operations in UTR (#798)&lt;br/&gt;
Branch: r1.18&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/89701947e26c637de9bfa56b3245e405b8286b34&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/89701947e26c637de9bfa56b3245e405b8286b34&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3874283" author="xgen-internal-githook" created="Fri, 11 Jun 2021 21:16:18 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Benjamin Rewis&apos;, &apos;email&apos;: &apos;32186188+benjirewis@users.noreply.github.com&apos;, &apos;username&apos;: &apos;benjirewis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3964&quot; title=&quot;Unified test runner should append session to all operations that support it&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3964&quot;&gt;&lt;del&gt;CDRIVER-3964&lt;/del&gt;&lt;/a&gt; Append session to all operations in UTR (#798)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/a6b3d5e5802118496093563d7e0c57d652133375&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/a6b3d5e5802118496093563d7e0c57d652133375&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3855463" author="xgen-internal-githook" created="Thu, 3 Jun 2021 00:38:37 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jeremy Mikola&apos;, &apos;email&apos;: &apos;jmikola@gmail.com&apos;, &apos;username&apos;: &apos;jmikola&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3949&quot; title=&quot;Test that session is unpinned when executing a non-transaction operation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3949&quot;&gt;&lt;del&gt;CDRIVER-3949&lt;/del&gt;&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3963&quot; title=&quot;Add unpinning transaction test for read operations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3963&quot;&gt;&lt;del&gt;CDRIVER-3963&lt;/del&gt;&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3966&quot; title=&quot;Unpin sessions after all abortTransaction attempts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3966&quot;&gt;&lt;del&gt;CDRIVER-3966&lt;/del&gt;&lt;/a&gt; aborting txn unpins session (#783)&lt;/p&gt;

&lt;p&gt;Replace manual assignment with _mongoc_client_session_unpin&lt;/p&gt;

&lt;p&gt;Ensures that session arg is appended to operation_find in unified test runner. Other operations will need to be addressed in &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3964&quot; title=&quot;Unified test runner should append session to all operations that support it&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3964&quot;&gt;&lt;del&gt;CDRIVER-3964&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Syncs transaction spec tests with mongodb/specifications@ec326862be443d11f0233cee2de32a95751144df&lt;br/&gt;
Branch: r1.18&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/0966559e932c273fc5b2ce75d31f43d6282c98b1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/0966559e932c273fc5b2ce75d31f43d6282c98b1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3842638" author="benji.rewis" created="Wed, 26 May 2021 18:52:07 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/pull/798&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/pull/798&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3739135" author="xgen-internal-githook" created="Mon, 26 Apr 2021 17:00:15 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Jeremy Mikola&apos;, &apos;email&apos;: &apos;jmikola@gmail.com&apos;, &apos;username&apos;: &apos;jmikola&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3949&quot; title=&quot;Test that session is unpinned when executing a non-transaction operation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3949&quot;&gt;&lt;del&gt;CDRIVER-3949&lt;/del&gt;&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3963&quot; title=&quot;Add unpinning transaction test for read operations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3963&quot;&gt;&lt;del&gt;CDRIVER-3963&lt;/del&gt;&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3966&quot; title=&quot;Unpin sessions after all abortTransaction attempts&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3966&quot;&gt;&lt;del&gt;CDRIVER-3966&lt;/del&gt;&lt;/a&gt; aborting txn unpins session (#783)&lt;/p&gt;

&lt;p&gt;Replace manual assignment with _mongoc_client_session_unpin&lt;/p&gt;

&lt;p&gt;Ensures that session arg is appended to operation_find in unified test runner. Other operations will need to be addressed in &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3964&quot; title=&quot;Unified test runner should append session to all operations that support it&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3964&quot;&gt;&lt;del&gt;CDRIVER-3964&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Syncs transaction spec tests with mongodb/specifications@ec326862be443d11f0233cee2de32a95751144df&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/2d7938aa068a1df70929a161c94642707cb4bd3e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/2d7938aa068a1df70929a161c94642707cb4bd3e&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="988502">CDRIVER-3422</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1685669">CDRIVER-3963</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|hyqpxb:</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>