<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:38:43 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>[GODRIVER-2478] Create implicit sessions with &quot;causalConsistency=false&quot;</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-2478</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;Read concerns &quot;linearizable&quot; and &quot;available&quot; cannot be used in causally consistent sessions (see documentation &lt;a href=&quot;https://www.mongodb.com/docs/v6.0/reference/read-concern-linearizable/#causally-consistent-sessions&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;; see server code &lt;a href=&quot;https://github.com/mongodb/mongo/blob/fdf1e87a30e8c879080839573700ceed42ab1db4/src/mongo/db/repl/read_concern_args.cpp#L234-L246&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;). However, the Causal Consistency spec &lt;a href=&quot;https://github.com/mongodb/specifications/blob/68d1095ef710ba294894474f7b8f3297c21b86f6/source/causal-consistency/causal-consistency.rst#causalconsistency&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;says&lt;/a&gt; that causal consistency should be enabled in sessions by default unless &lt;tt&gt;snapshot=true&lt;/tt&gt;. Enabling causal consistency in implicit sessions can cause server errors when a user sets read concern &quot;linearizable&quot; or &quot;available&quot;.&lt;/p&gt;

&lt;p&gt;A specific case where this causes a problem is with retryable reads because they reuse the same session and set an &quot;operation time&quot;. As a result, a retried read will send a read concern document that includes &lt;tt&gt;afterClusterTime&lt;/tt&gt;. If a user has also set the read concern to &quot;linearizable&quot; or &quot;available&quot;, that retried read will fail with error &lt;tt&gt;InvalidOptions(72)&lt;/tt&gt; with message:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;afterClusterTime field can be set only if level is equal to majority, local, or snapshot&#160;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Update the Go driver to always set &lt;tt&gt;causalConsistency=false&lt;/tt&gt; for implicit sessions to prevent sending &lt;tt&gt;afterClusterTime&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;Note that the &lt;a href=&quot;https://github.com/mongodb/specifications/blob/68d1095ef710ba294894474f7b8f3297c21b86f6/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 isn&apos;t clear on whether implicit sessions should have causal consistency disabled and under what circumstances. &lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-2369&quot; title=&quot;Disable causal consistency in implicit sessions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-2369&quot;&gt;DRIVERS-2369&lt;/a&gt; is a ticket to clarify the behavior of implicit sessions in the Causal Consistency spec. The implementer of this ticket should check for updates on &lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-2369&quot; title=&quot;Disable causal consistency in implicit sessions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-2369&quot;&gt;DRIVERS-2369&lt;/a&gt; and for any related Causal Consistency spec changes. For now we chose to follow the implementation of the Java driver that always disables causal consistency in implicit sessions.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2079154">GODRIVER-2478</key>
            <summary>Create implicit sessions with &quot;causalConsistency=false&quot;</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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="matt.dale@mongodb.com">Matt Dale</reporter>
                        <labels>
                    </labels>
                <created>Tue, 28 Jun 2022 22:41:19 +0000</created>
                <updated>Wed, 8 Feb 2023 19:31:52 +0000</updated>
                            <resolved>Wed, 8 Feb 2023 19:31:52 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="5179953" author="JIRAUSER1259527" created="Wed, 8 Feb 2023 19:31:52 +0000"  >&lt;p&gt;Closing as a duplicate of &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-2497&quot; title=&quot;Disable causal consistency in implicit sessions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-2497&quot;&gt;&lt;del&gt;GODRIVER-2497&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="2094663">GODRIVER-2497</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2094663">GODRIVER-2497</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="2076451">DRIVERS-2369</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_14266" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Documentation Changes Summary</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;1.  What would you like to communicate to the user about this feature?&lt;br/&gt;
2.  Would you like the user to see examples of the syntax and/or executable code and its output?&lt;br/&gt;
3.  Which versions of the driver/connector does this apply to?&lt;/p&gt;</customfieldvalue>

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