<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:55:58 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-40790] Test downgrading 4.2 to 4.0 and then commit when transaction is too large to fit in a single applyOps</title>
                <link>https://jira.mongodb.org/browse/SERVER-40790</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;We should test that when we have an uncommitted partial transaction that is larger than 16MB, doing a downgrade and then a &lt;tt&gt;commitTransaction&lt;/tt&gt;&#160;should throw a &lt;tt&gt;TransactionTooLarge&lt;/tt&gt; error.&lt;/p&gt;</description>
                <environment></environment>
        <key id="743944">SERVER-40790</key>
            <summary>Test downgrading 4.2 to 4.0 and then commit when transaction is too large to fit in a single applyOps</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="jason.chan@mongodb.com">Jason Chan</assignee>
                                    <reporter username="jason.chan@mongodb.com">Jason Chan</reporter>
                        <labels>
                            <label>bigtxns_upgrade_downgrade</label>
                            <label>bkp</label>
                    </labels>
                <created>Tue, 23 Apr 2019 19:29:35 +0000</created>
                <updated>Sun, 29 Oct 2023 22:21:45 +0000</updated>
                            <resolved>Thu, 9 May 2019 17:17:52 +0000</resolved>
                                                    <fixVersion>4.1.12</fixVersion>
                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="2240215" author="xgen-internal-githook" created="Thu, 9 May 2019 17:17:17 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;jason.chan@10gen.com&apos;, &apos;name&apos;: &apos;Jason Chan&apos;, &apos;username&apos;: &apos;jasonjhchan&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-40790&quot; title=&quot;Test downgrading 4.2 to 4.0 and then commit when transaction is too large to fit in a single applyOps&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-40790&quot;&gt;&lt;del&gt;SERVER-40790&lt;/del&gt;&lt;/a&gt; Test downgrading from FCV4.2 to FCV4.0 with a large running transaction will fail on commit.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/f8f40d2bc140d4e8cfbc09d934ccb17682ea0d7f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/f8f40d2bc140d4e8cfbc09d934ccb17682ea0d7f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2239118" author="siyuan.zhou@10gen.com" created="Wed, 8 May 2019 20:44:14 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=jason.chan&quot; class=&quot;user-hover&quot; rel=&quot;jason.chan&quot;&gt;jason.chan&lt;/a&gt;, I moved the backport ticket to &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-41062&quot; title=&quot;Always return TransactionTooLarge rather than BSONObjectTooLarge when transaction is too large to fit in a single applyOps&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-41062&quot;&gt;&lt;del&gt;SERVER-41062&lt;/del&gt;&lt;/a&gt; since this ticket is about upgrade/downgrade of 4.2. Making a new SERVER ticket seems clearer.&lt;/p&gt;</comment>
                            <comment id="2238994" author="jason.chan" created="Wed, 8 May 2019 19:39:39 +0000"  >&lt;p&gt;We should backport the moving of the &lt;tt&gt;try&lt;/tt&gt; clause in &lt;tt&gt;onTransactionCommit&lt;/tt&gt; up to also cover the &lt;tt&gt;opsArray.done()&lt;/tt&gt; call since it is possible for that call to throw a BSONObjectTooLarge exception.&lt;/p&gt;

&lt;p&gt;The call in question on the 4.0 branch is here: &lt;a href=&quot;https://github.com/mongodb/mongo/blob/ed33d2f8e66cd907ef13ee162f6a1dac3ff25672/src/mongo/db/op_observer_impl.cpp#L918&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/ed33d2f8e66cd907ef13ee162f6a1dac3ff25672/src/mongo/db/op_observer_impl.cpp#L918&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2232951" author="siyuan.zhou@10gen.com" created="Thu, 2 May 2019 23:17:03 +0000"  >&lt;p&gt;You can imagine a huge delay before the abort or the interruption is not checked while OpObserver is about to write into oplog. Adding a fail-point to block there may be the way to expose the race.&#160;Aborting unprepared transactions is still helpful to speed the FCV change, but may not be sufficient for correctness.&lt;/p&gt;

&lt;p&gt;Besides, I don&apos;t get why we have to abort all&#160;unprepared transactions in the onCommit() callback, since there&apos;s no synchronization around the in-memory FCV or the on-disk doc between this write and the readers. Aborting them in the downgrade code path seems more straightforward to me.&lt;/p&gt;</comment>
                            <comment id="2232887" author="jason.chan" created="Thu, 2 May 2019 21:49:19 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=siyuan.zhou&quot; class=&quot;user-hover&quot; rel=&quot;siyuan.zhou&quot;&gt;siyuan.zhou&lt;/a&gt;&lt;br/&gt;
It seems like we &lt;a href=&quot;https://github.com/mongodb/mongo/blob/dcf7912e275b72d1462d4ecf26f195f8accb45ad/src/mongo/db/commands/feature_compatibility_version.cpp#L181&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;abort all active unprepared transactions&lt;/a&gt; on downgrade from 4.2 to 4.0. &lt;/p&gt;

&lt;p&gt;Since &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=vessyratcheva%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;vessyratcheva@gmail.com&quot;&gt;vessyratcheva@gmail.com&lt;/a&gt; already wrote a test for this behavior &lt;a href=&quot;https://github.com/mongodb/mongo/blob/dcf7912e275b72d1462d4ecf26f195f8accb45ad/jstests/core/txns/abort_unprepared_transactions_on_FCV_downgrade.js&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;, I think we can mark this ticket as duplicated.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="703861">SERVER-39799</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="760803">SERVER-41062</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_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="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>Thu, 2 May 2019 23:17:03 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        4 years, 39 weeks, 6 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-1035</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, 39 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>jason.chan@mongodb.com</customfieldvalue>
            <customfieldvalue>siyuan.zhou@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|huvf9z:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|huku7z:</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="2920">Repl 2019-05-20</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|huv1jb:</customfieldvalue>

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