<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:48:04 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-38139] Ban temporary collections in prepared transactions</title>
                <link>https://jira.mongodb.org/browse/SERVER-38139</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Temporary collections are dropped on step up regardless of if a transaction is actively prepared on them. This makes it so that they don&apos;t really make sense in a transaction. Temporary collections are mainly used internally to mapreduce and agg $out, so no users should be using them in transactions anyways.&lt;/p&gt;</description>
                <environment></environment>
        <key id="634060">SERVER-38139</key>
            <summary>Ban temporary collections in prepared transactions</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="dianna.hohensee@mongodb.com">Dianna Hohensee</assignee>
                                    <reporter username="judah.schvimer@mongodb.com">Judah Schvimer</reporter>
                        <labels>
                            <label>prepare_errors</label>
                            <label>txn_storage</label>
                    </labels>
                <created>Wed, 14 Nov 2018 22:29:04 +0000</created>
                <updated>Sun, 29 Oct 2023 22:26:33 +0000</updated>
                            <resolved>Tue, 2 Apr 2019 19:26:57 +0000</resolved>
                                                    <fixVersion>4.1.10</fixVersion>
                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="2199642" author="xgen-internal-githook" created="Tue, 2 Apr 2019 19:23:31 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Dianna Hohensee&apos;, &apos;username&apos;: &apos;DiannaHohensee&apos;, &apos;email&apos;: &apos;dianna.hohensee@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-38139&quot; title=&quot;Ban temporary collections in prepared transactions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-38139&quot;&gt;&lt;del&gt;SERVER-38139&lt;/del&gt;&lt;/a&gt; prepareTransaction will error if transaction operations were done against temporary collections&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/b55d0e6297219efd14fe4d27d0063d61d29a5f43&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/b55d0e6297219efd14fe4d27d0063d61d29a5f43&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2174513" author="judah.schvimer" created="Thu, 7 Mar 2019 15:25:10 +0000"  >&lt;p&gt;I love the analogy, and the rationale seems reasonable. sgtm.&lt;/p&gt;</comment>
                            <comment id="2173587" author="geert.bosch" created="Wed, 6 Mar 2019 23:33:15 +0000"  >&lt;p&gt;I don&apos;t think consistency is a sufficient argument. This really is an obscure edge case that users will not ordinarily stumble across. For prepared transactions handling this corner-case matters because of correctness. We&apos;ll have to pay a price for that check, but because the distributed transactions are expensive by necessity(in time and resource consumption), the relatively small incremental price of the check will not matter much. Single node transactions are far cheaper, and adding the same checks is relatively expensive, either at run-time or in development time.&lt;/p&gt;

&lt;p&gt;While we&apos;re OK with a luggage check for an intercontinental flight, requiring that for each subway ride wouldn&apos;t fly.&lt;/p&gt;</comment>
                            <comment id="2170016" author="judah.schvimer" created="Mon, 4 Mar 2019 21:02:36 +0000"  >&lt;p&gt;For consistency we will also do the above check at commit time for unprepared transactions.&lt;/p&gt;</comment>
                            <comment id="2169524" author="geert.bosch" created="Mon, 4 Mar 2019 17:00:56 +0000"  >&lt;p&gt;It has become clear that checking at lock acquisition time is not the right thing to do for a few reasons:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;The catalog RAII types are at the wrong level, as all lock acquisitions have to go through those, whether part of a transaction or not. Calling into the replication subsystem from the catalog is a layering violation.&lt;/li&gt;
	&lt;li&gt;We do plan to support aggregations with &lt;tt&gt;$out&lt;/tt&gt;  side transactions in the future, so disallowing accesses would have to be a temporary stopgap measure.&lt;/li&gt;
	&lt;li&gt;Having a non-versioned cached value on the Collection object goes against our work to make the catalog versioned. Unlike the permanent &lt;tt&gt;isCapped&lt;/tt&gt; attribute, a &lt;tt&gt;Collection&lt;/tt&gt; can go from being temporary to being permanent (typically through rename), or from permanent to temporary (through rollback).&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;As the real issue is that all collections should be non-temporary at the time of prepare, the proper solution is to check then. As we know at that point that we&apos;re in a write transaction, there should be no issue accessing the actual storage catalog.&lt;/p&gt;</comment>
                            <comment id="2111139" author="judah.schvimer" created="Thu, 10 Jan 2019 15:55:05 +0000"  >&lt;p&gt;Waiting on &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-38927&quot; title=&quot;Cache collection &amp;#39;temp&amp;#39; status on Collection object&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-38927&quot;&gt;&lt;del&gt;SERVER-38927&lt;/del&gt;&lt;/a&gt; to implement the Storage Team&apos;s preferred solution.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="669255">SERVER-38927</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="630322">SERVER-37988</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>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <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_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 4 Mar 2019 17:00:56 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        4 years, 45 weeks, 1 day ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<s><a href='https://jira.mongodb.org/browse/SERVER-38927'>SERVER-38927</a></s>]]></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, 45 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>dianna.hohensee@mongodb.com</customfieldvalue>
            <customfieldvalue>geert.bosch@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>judah.schvimer@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hucx2v:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr84tj:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="2828">Storage NYC 2019-03-25</customfieldvalue>
    <customfieldvalue id="2829">Storage NYC 2019-04-08</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|hucjc7:</customfieldvalue>

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