<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:39:54 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-3027] Fix and improve causal consistency Go driver examples</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-3027</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;The &quot;Causal Consistency Example 2&quot; in &lt;tt&gt;examples.go&lt;/tt&gt; (see &lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/blob/v1/examples/documentation_examples/examples.go#L2585-L2616&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;) seems to not work correctly. Specifically, the example creates &lt;tt&gt;session2&lt;/tt&gt; and sets operation and cluster time on that session, but then calls &lt;tt&gt;UseSessionWithOptions&lt;/tt&gt; and uses that &lt;tt&gt;SessionContext&lt;/tt&gt; to actually run the operations. There seems to be no relationship between those sessions, so it seems like the example doesn&apos;t actually use a causally consistent session and would be misleading to anyone who reads it. Additionally, it&apos;s not clear if that example in &lt;tt&gt;examples.go&lt;/tt&gt; is actually used in any documentation. It would be much more useful if it was part of a testable example.&lt;/p&gt;

&lt;p&gt;Definition of done:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Correct the causal consistency example(s) in &lt;tt&gt;examples.go&lt;/tt&gt;.&lt;/li&gt;
	&lt;li&gt;Test that the causal consistency example(s) actually create causal consistency within and between sessions.&lt;/li&gt;
	&lt;li&gt;Add a causal consistency testable example to the &lt;tt&gt;Session&lt;/tt&gt; documentation.&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="2486914">GODRIVER-3027</key>
            <summary>Fix and improve causal consistency Go driver examples</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="matt.dale@mongodb.com">Matt Dale</reporter>
                        <labels>
                    </labels>
                <created>Tue, 31 Oct 2023 18:38:28 +0000</created>
                <updated>Mon, 6 Nov 2023 20:44:46 +0000</updated>
                                                                            <component>Causal Consistency</component>
                    <component>Docs Examples</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                    <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2394813">GODRIVER-2915</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </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|i2g224:</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>