<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:13:14 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>[SERVER-47079] Investigate and remove unnecessary causalConsistency=false settings in sharding testing</title>
                <link>https://jira.mongodb.org/browse/SERVER-47079</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Currently, a fair amount of our testing, especially transactions testing, uses sessions with causalConsistency explicitly set to false (as opposed to using the default). Per a discussion with&#160;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=judah.schvimer&quot; class=&quot;user-hover&quot; rel=&quot;judah.schvimer&quot;&gt;judah.schvimer&lt;/a&gt;, this setting is left over from early transactions testing, and is not necessarily required for new tests.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1288529">SERVER-47079</key>
            <summary>Investigate and remove unnecessary causalConsistency=false settings in sharding testing</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="backlog-server-sharding">[DO NOT USE] Backlog - Sharding Team</assignee>
                                    <reporter username="maria.vankeulen@mongodb.com">Maria van Keulen</reporter>
                        <labels>
                    </labels>
                <created>Tue, 24 Mar 2020 15:17:26 +0000</created>
                <updated>Tue, 6 Dec 2022 02:32:05 +0000</updated>
                            <resolved>Fri, 24 Apr 2020 15:17:06 +0000</resolved>
                                                                    <component>Testing Infrastructure</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="3054322" author="kaloian.manassiev" created="Fri, 24 Apr 2020 15:17:06 +0000"  >&lt;p&gt;This ticket is just cleanup, which doesn&apos;t change the testing coverage, so we decided to not invest time in it.&lt;/p&gt;</comment>
                            <comment id="3042750" author="judah.schvimer" created="Thu, 16 Apr 2020 15:38:11 +0000"  >&lt;p&gt;I agree that this is not a priority. I have preferred the convention to be to not specify {&lt;tt&gt;causalConsistency: false&lt;/tt&gt;} but don&apos;t feel strongly enough to codify it or make it uniform across the codebase.&lt;/p&gt;</comment>
                            <comment id="3042391" author="max.hirschhorn@10gen.com" created="Thu, 16 Apr 2020 13:07:01 +0000"  >&lt;p&gt;It looks like the driver examples in &lt;a href=&quot;https://docs.mongodb.com/manual/core/transactions-in-applications/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.com/manual/core/transactions-in-applications/&lt;/a&gt; all show calling &lt;tt&gt;startSession()&lt;/tt&gt; without changing the causal consistency setting, so they&apos;ll use the default of true. I agree it is likely that&apos;ll be the more common way our users end up using transactions then.&lt;/p&gt;

&lt;p&gt;We should already be running the tests in the &lt;tt&gt;jstests/core/txns/&lt;/tt&gt; directory with causal consistency enabled (regardless of whether the file itself specifies {&lt;tt&gt;causalConsistency: true&lt;/tt&gt;} or {&lt;tt&gt;causalConsistency: false&lt;/tt&gt;}) in the&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;tt&gt;causally_consistent_jscore_txns_passthrough.yml&lt;/tt&gt;,&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;sharded_causally_consistent_jscore_txns_passthrough.yml&lt;/tt&gt;, and&lt;/li&gt;
	&lt;li&gt;&lt;tt&gt;sharded_collections_causally_consistent_jscore_txns_passthrough.yml&lt;/tt&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;test suites. I believe we generally support read-your-writes behavior when all reads and writes (including ones from multi-statement transactions) happen against the primary and the primary doesn&apos;t change, so that may actually be an argument for {&lt;tt&gt;causalConsistency: false&lt;/tt&gt;} being the default in testing (at least for the &lt;tt&gt;jstests/core/&lt;/tt&gt; directory.&lt;/p&gt;

&lt;p&gt;That all being said, I&apos;m still struggling to see why this test cleanup is worth doing over any other JavaScript cleanup we could also do (looking at &lt;tt&gt;ReplSetTest&lt;/tt&gt; and &lt;tt&gt;ShardingTest&lt;/tt&gt;).&lt;/p&gt;</comment>
                            <comment id="3040810" author="judah.schvimer" created="Wed, 15 Apr 2020 15:47:23 +0000"  >&lt;p&gt;My only reasoning is to use defaults when possible because it&apos;s the mostly likely mode of user operation and it makes tests less complex. It also makes it clear when the causalConsistency setting is intentional vs. arbitrary. If there is a strong argument in the opposite direction, I&apos;d suggest we just change the default in our tests to causalConsistency: false.&lt;/p&gt;</comment>
                            <comment id="3040055" author="max.hirschhorn@10gen.com" created="Wed, 15 Apr 2020 02:43:27 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=maria.vankeulen&quot; class=&quot;user-hover&quot; rel=&quot;maria.vankeulen&quot;&gt;maria.vankeulen&lt;/a&gt;, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=judah.schvimer&quot; class=&quot;user-hover&quot; rel=&quot;judah.schvimer&quot;&gt;judah.schvimer&lt;/a&gt;, could you expound on the motivation and benefit of removing {&lt;tt&gt;causalConsistency: false&lt;/tt&gt;} when starting sessions for transactions testing? It isn&apos;t clear to me why if the test doesn&apos;t rely on causal consistency that we&apos;d want necessarily use it anyway.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1288527">SERVER-47078</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25141"><![CDATA[Sharding]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 15 Apr 2020 02:43:27 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 41 weeks, 5 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></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_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>alexander.golin@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            3 years, 41 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-server-sharding</customfieldvalue>
            <customfieldvalue>judah.schvimer@mongodb.com</customfieldvalue>
            <customfieldvalue>kaloian.manassiev@mongodb.com</customfieldvalue>
            <customfieldvalue>maria.vankeulen@mongodb.com</customfieldvalue>
            <customfieldvalue>max.hirschhorn@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hxaxuv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hwynef:</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>
                                                                                            <customfield id="customfield_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hxak47:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>