<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:17:17 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-3161] Prohibit starting a transaction for maxWireVersion &lt; 7</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-3161</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;The &lt;a href=&quot;https://github.com/mongodb/specifications/blob/master/source/transactions/transactions.rst#starttransaction&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;startTransaction&lt;/a&gt; section of the Transaction spec states: &lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;startTransaction SHOULD report an error if the driver can detect that transactions are not supported by the deployment. A deployment does not support transactions when the deployment does not support sessions, or maxWireVersion &amp;lt; 7, or the maxWireVersion &amp;lt; 8 and the topology type is Sharded.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3067&quot; title=&quot;Ensure 4.0 drivers return an error when attempting sharded transactions on 4.2&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3067&quot;&gt;&lt;del&gt;CDRIVER-3067&lt;/del&gt;&lt;/a&gt; will address the case of a sharded cluster, but libmongoc currently does not prohibit starting a transaction on a server with wire version 6, where sessions are supported but transactions are not (i.e. 3.6). I don&apos;t believe we need to worry about wire versions &amp;lt; 6 because it should be impossible to create a session in that topology (it would be wise to confirm this just in case). Nevertheless, we can probably check for maxWireVersion &amp;lt; 7 just to be safe.&lt;/p&gt;

&lt;p&gt;I don&apos;t believe this is a serious problem, as we can still rely on the server to report an error for an unrecognized command option (e.g. &quot;BSON field &apos;insert.startTransaction&apos; is an unknown field&quot;); however, libmongoc would still do well to raise a preemptive error in this case to better comply with the spec.&lt;/p&gt;</description>
                <environment></environment>
        <key id="786425">CDRIVER-3161</key>
            <summary>Prohibit starting a transaction for maxWireVersion &lt; 7</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="13201">Fixed</resolution>
                                        <assignee username="clyde.bazile@mongodb.com">Clyde Bazile III</assignee>
                                    <reporter username="jmikola@mongodb.com">Jeremy Mikola</reporter>
                        <labels>
                    </labels>
                <created>Fri, 31 May 2019 21:25:48 +0000</created>
                <updated>Sat, 28 Oct 2023 11:29:16 +0000</updated>
                            <resolved>Mon, 17 Jun 2019 15:32:44 +0000</resolved>
                                                    <fixVersion>1.14.1</fixVersion>
                                    <component>libmongoc</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="2287415" author="clyde.bazile" created="Mon, 17 Jun 2019 17:27:26 +0000"  >&lt;p&gt;Author:&lt;/p&gt;

{&apos;name&apos;: &apos;bazile-clyde&apos;, &apos;email&apos;: &apos;34226620+bazile-clyde@users.noreply.github.com&apos;, &apos;username&apos;: &apos;bazile-clyde&apos;}

&lt;p&gt;Message:&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3067&quot; title=&quot;Ensure 4.0 drivers return an error when attempting sharded transactions on 4.2&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3067&quot;&gt;&lt;del&gt;CDRIVER-3067&lt;/del&gt;&lt;/a&gt;/3161 error when attempting sharded transactions on 4.2 or maxWireVersion &amp;lt; 7 (#567) (#568)&lt;br/&gt;
Branch: r1.14&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/2d7d5f20261eb797afed22a17c397c8c91014605&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/2d7d5f20261eb797afed22a17c397c8c91014605&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2277736" author="kevin.albertson" created="Mon, 10 Jun 2019 14:57:13 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=clyde.bazile&quot; class=&quot;user-hover&quot; rel=&quot;clyde.bazile&quot;&gt;clyde.bazile&lt;/a&gt; if this is done in &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3067&quot; title=&quot;Ensure 4.0 drivers return an error when attempting sharded transactions on 4.2&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3067&quot;&gt;&lt;del&gt;CDRIVER-3067&lt;/del&gt;&lt;/a&gt;, let&apos;s close this after &lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-3067&quot; title=&quot;Ensure 4.0 drivers return an error when attempting sharded transactions on 4.2&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-3067&quot;&gt;&lt;del&gt;CDRIVER-3067&lt;/del&gt;&lt;/a&gt; is merged.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="786426">PHPC-1391</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="839225">CDRIVER-3224</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="786430">DRIVERS-2133</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="728255">CDRIVER-3067</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|hursrr:</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>