<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:19:57 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-4110] Session causalConsistency option should not default to true if snapshot is true</title>
                <link>https://jira.mongodb.org/browse/CDRIVER-4110</link>
                <project id="10030" key="CDRIVER">C Driver</project>
                    <description>&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/CDRIVER-4034&quot; title=&quot;Snapshot reads on Secondaries&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-4034&quot;&gt;&lt;del&gt;CDRIVER-4034&lt;/del&gt;&lt;/a&gt; included a workaround to explicitly set &lt;tt&gt;causalConsistency&lt;/tt&gt; to false if &lt;tt&gt;snapshot&lt;/tt&gt; was true when constructing a session entity in a unified test. This could potentially override an explicit value for &lt;tt&gt;causalConsistency&lt;/tt&gt; if a test were to specify both as true.&lt;/p&gt;

&lt;p&gt;Note: no such test exists because it would require expecting a failure when constructing the session entity (before any test operations are run). This could only be done through a &lt;tt&gt;valid-fail&lt;/tt&gt; test in the unified test format spec, which currently isn&apos;t use for testing other specifications. In this case, the conflict between both session options is covered by a &lt;a href=&quot;https://github.com/mongodb/specifications/blob/master/source/sessions/tests/README.rst#prose-tests&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;prose test&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Having said that, the &lt;a href=&quot;https://github.com/mongodb/specifications/blob/master/source/causal-consistency/causal-consistency.rst&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Causal Consistency&lt;/a&gt; spec was changed as part of Snapshot Sessions to &lt;em&gt;not&lt;/em&gt; default to true if &lt;tt&gt;snapshot&lt;/tt&gt; was explicitly set to true. Fixing this should entail changes to the session options API and entail reverting the above work-around in the test runner.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1836113">CDRIVER-4110</key>
            <summary>Session causalConsistency option should not default to true if snapshot is true</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="10300" iconUrl="https://jira.mongodb.org/images/icons/priorities/medium.svg">Unknown</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="jmikola@mongodb.com">Jeremy Mikola</assignee>
                                    <reporter username="jmikola@mongodb.com">Jeremy Mikola</reporter>
                        <labels>
                    </labels>
                <created>Thu, 29 Jul 2021 21:41:22 +0000</created>
                <updated>Sat, 28 Oct 2023 11:28:22 +0000</updated>
                            <resolved>Wed, 4 Aug 2021 17:36:58 +0000</resolved>
                                                    <fixVersion>1.19.0</fixVersion>
                                    <component>libmongoc</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="3981069" author="jmikola@gmail.com" created="Wed, 4 Aug 2021 17:38:07 +0000"  >&lt;p&gt;I don&apos;t believe there is any BC concern here as there is no behavioral change without using the new &lt;tt&gt;snapshot&lt;/tt&gt; option &#8211; and even then, this fix just ensures that users don&apos;t inadvertently get a client-side error when only specifying &lt;tt&gt;snapshot=true&lt;/tt&gt;.&lt;/p&gt;</comment>
                            <comment id="3981066" author="xgen-internal-githook" created="Wed, 4 Aug 2021 17:36:34 +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-4110&quot; title=&quot;Session causalConsistency option should not default to true if snapshot is true&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CDRIVER-4110&quot;&gt;&lt;del&gt;CDRIVER-4110&lt;/del&gt;&lt;/a&gt;: Default for causal_consistency depends on snapshot (#838)&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Don&apos;t force casualConsistency=false when creating session with snapshot=true&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;This was originally added in d5f73e18eac7acaa05f31c4ffde68c9cd565704a&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Relocate session snapshot prose test&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;This prose test is defined in the sessions spec, not transactions. It also does not require the server to support transactions.&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Default for causal_consistency depends on snapshot&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Use mongoc_optional_t for causal_consistency and snapshot session opts to track whether or not values have been set.&lt;/p&gt;

&lt;p&gt;This also removes explicitly setting causal_consistency to true in _mongoc_client_session_new, since mongoc_session_opts_get_causal_consistency now enforces the default value.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/commit/230369cd070d800545b0c91fd47e1537a50ce6ca&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/commit/230369cd070d800545b0c91fd47e1537a50ce6ca&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3973533" author="jmikola@gmail.com" created="Fri, 30 Jul 2021 19:31:34 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-c-driver/pull/838&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-c-driver/pull/838&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="1612636">PHPC-1761</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1791452">CDRIVER-4034</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1612624">DRIVERS-1607</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <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-3891</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hzfffz:</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>