<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:55:03 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-40462]  Disallow transactions on shard servers with writeConcernMajorityJournalDefault = false</title>
                <link>https://jira.mongodb.org/browse/SERVER-40462</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Nodes running with the in-memory storage engine do not support transaction prepare and because of this, currently they cannot participate in cross-shard transactions.&lt;/p&gt;

&lt;p&gt;On the chance that we start supporting that and in order to ensure that in-memory nodes and nodes running with &lt;tt&gt;writeConcernMajorityJournalDefault = false&lt;/tt&gt; don&apos;t count towards the majority quorum for any w:majority writes done by the coordinator and participant, such writes should be done with j:true.&lt;/p&gt;</description>
                <environment></environment>
        <key id="729026">SERVER-40462</key>
            <summary> Disallow transactions on shard servers with writeConcernMajorityJournalDefault = false</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="13201">Fixed</resolution>
                                        <assignee username="lingzhi.deng@mongodb.com">Lingzhi Deng</assignee>
                                    <reporter username="kaloian.manassiev@mongodb.com">Kaloian Manassiev</reporter>
                        <labels>
                            <label>prepare_errors</label>
                    </labels>
                <created>Wed, 3 Apr 2019 15:51:02 +0000</created>
                <updated>Sun, 29 Oct 2023 22:22:20 +0000</updated>
                            <resolved>Mon, 29 Apr 2019 16:18:48 +0000</resolved>
                                                    <fixVersion>4.1.11</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="2227821" author="xgen-internal-githook" created="Mon, 29 Apr 2019 16:10:29 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Lingzhi Deng&apos;, &apos;username&apos;: &apos;ldennis&apos;, &apos;email&apos;: &apos;lingzhi.deng@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-40462&quot; title=&quot; Disallow transactions on shard servers with writeConcernMajorityJournalDefault = false&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-40462&quot;&gt;&lt;del&gt;SERVER-40462&lt;/del&gt;&lt;/a&gt;: Disallow transactions on shard servers with writeConcernMajorityJournalDefault = false&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/e4b08de746ef4e472bfdd4790fdb2b89d5a62f1a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/e4b08de746ef4e472bfdd4790fdb2b89d5a62f1a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2220788" author="judah.schvimer" created="Mon, 22 Apr 2019 17:43:55 +0000"  >&lt;p&gt;One roadblock this will have to work around is that most of our in-memory tests use fully in-memory sets. We implicitly convert &lt;tt&gt;writeConcernMajorityJournalDefault&lt;/tt&gt; &lt;a href=&quot;https://github.com/mongodb/mongo/blob/4d1c39f2a5860e928a6450510fec7c561a00dfbe/src/mongo/shell/replsettest.js#L883-L888&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here.&lt;/a&gt; We&apos;ll have to add a testing exemption in this case. That should be fine since our in-memory tests do not shutdown nodes.&lt;/p&gt;</comment>
                            <comment id="2203833" author="alyson.cabral" created="Fri, 5 Apr 2019 19:29:03 +0000"  >&lt;p&gt;(2) disallowing transactions on shard servers that have j:false defaults seems like a good approach.&lt;/p&gt;</comment>
                            <comment id="2203807" author="judah.schvimer" created="Fri, 5 Apr 2019 19:12:11 +0000"  >&lt;p&gt;We no longer want to just send &lt;tt&gt;j:true&lt;/tt&gt;. &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=schwerin&quot; class=&quot;user-hover&quot; rel=&quot;schwerin&quot;&gt;schwerin&lt;/a&gt; pointed out that if a user sets &lt;tt&gt;writeConcernMajorityJournalDefault = false&lt;/tt&gt;, we shouldn&apos;t just disregard it unilaterally. As a result there are two options, in general:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Allow transactions with &lt;tt&gt;writeConcernMajorityJournalDefault = false&lt;/tt&gt; and have undefined untested coordinator behavior when majority writes get rolled back as a result of the flag being set.&lt;/li&gt;
	&lt;li&gt;Fail the first command in a transaction if the replica set is configured with &lt;tt&gt;writeConcernMajorityJournalDefault = false&lt;/tt&gt; (and as a result prohibit transactions with &lt;tt&gt;writeConcernMajorityJournalDefault = false&lt;/tt&gt;).&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;This second option does on its face change behavior from 4.0 which supported &lt;tt&gt;writeConcernMajorityJournalDefault = false&lt;/tt&gt; with transactions. If we wanted to continue that, we could only prohibit transactions on shard-servers with &lt;tt&gt;writeConcernMajorityJournalDefault = false&lt;/tt&gt; to let replica sets that are not part of a sharded cluster support transactions.&lt;/p&gt;

&lt;p&gt;We could also allow any single-replica set transaction succeed with &lt;tt&gt;writeConcernMajorityJournalDefault = false&lt;/tt&gt; but fail at prepare time, but I think this is undesirable behavior since it is arbitrary based on where chunks are placed.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=alyson.cabral&quot; class=&quot;user-hover&quot; rel=&quot;alyson.cabral&quot;&gt;alyson.cabral&lt;/a&gt;, which behavior would you like?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                                                <inwardlinks description="is documented by">
                                        <issuelink>
            <issuekey id="750703">DOCS-12662</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="634791">SERVER-38165</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10011"><![CDATA[Minor Change]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 5 Apr 2019 19:12:11 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        4 years, 41 weeks, 2 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-1032</customfieldvalue>
                        </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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            4 years, 41 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>alyson.cabral@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>judah.schvimer@mongodb.com</customfieldvalue>
            <customfieldvalue>kaloian.manassiev@mongodb.com</customfieldvalue>
            <customfieldvalue>lingzhi.deng@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|husw93:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|huifvz:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="2919">Repl 2019-05-06</customfieldvalue>

                        </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|husiif:</customfieldvalue>

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