<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:17:23 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-48527] Aborting in-progress transactions on step-up should clear session state before returning</title>
                <link>https://jira.mongodb.org/browse/SERVER-48527</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Step-up can run further operations on the same operation context, which will be left with session metadata (lsid, txnNumber, etc.) from the last transaction the node &lt;a href=&quot;https://github.com/mongodb/mongo/blob/903bcf6579085c135f9506933d8f671f54255eb0/src/mongo/db/session_catalog_mongod.cpp#L203-L214&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;aborted&lt;/a&gt; as part of step-up.&lt;/p&gt;

&lt;p&gt;These operations can then invariant that the &lt;a href=&quot;https://github.com/mongodb/mongo/blob/903bcf6579085c135f9506933d8f671f54255eb0/src/mongo/db/repl/oplog.cpp#L485&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;session is not checked out&lt;/a&gt; even though they have session metadata on their operation context. Ordinarily they would exit early for not having a stmtId &lt;a href=&quot;https://github.com/mongodb/mongo/blob/903bcf6579085c135f9506933d8f671f54255eb0/src/mongo/db/repl/oplog.cpp#L479-L482&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;. That stmtId is assigned &lt;a href=&quot;https://github.com/mongodb/mongo/blob/903bcf6579085c135f9506933d8f671f54255eb0/src/mongo/db/exec/update_stage.cpp#L253&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt; from the update request, which comes from &lt;a href=&quot;https://github.com/mongodb/mongo/blob/903bcf6579085c135f9506933d8f671f54255eb0/src/mongo/db/ops/write_ops_exec.cpp#L833&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;. That would return an uninitialized stmtId, except the txnNumber is not null like it should be &lt;a href=&quot;https://github.com/mongodb/mongo/blob/903bcf6579085c135f9506933d8f671f54255eb0/src/mongo/db/ops/write_ops_exec.cpp#L528&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1368563">SERVER-48527</key>
            <summary>Aborting in-progress transactions on step-up should clear session state before returning</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="judah.schvimer@mongodb.com">Judah Schvimer</assignee>
                                    <reporter username="judah.schvimer@mongodb.com">Judah Schvimer</reporter>
                        <labels>
                    </labels>
                <created>Mon, 1 Jun 2020 20:55:20 +0000</created>
                <updated>Sun, 29 Oct 2023 22:07:34 +0000</updated>
                            <resolved>Wed, 10 Jun 2020 16:50:27 +0000</resolved>
                                                    <fixVersion>4.4.0-rc10</fixVersion>
                    <fixVersion>4.2.9</fixVersion>
                    <fixVersion>4.7.0</fixVersion>
                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="3224956" author="xgen-internal-githook" created="Thu, 25 Jun 2020 23:04:03 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Judah Schvimer&apos;, &apos;email&apos;: &apos;judah@mongodb.com&apos;, &apos;username&apos;: &apos;judahschvimer&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-48527&quot; title=&quot;Aborting in-progress transactions on step-up should clear session state before returning&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-48527&quot;&gt;&lt;del&gt;SERVER-48527&lt;/del&gt;&lt;/a&gt; Aborting in-progress transactions on step-up should clear session state before returning&lt;br/&gt;
Branch: v4.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/f43c336b61fcf493510080807937870db4ed75ba&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/f43c336b61fcf493510080807937870db4ed75ba&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3212472" author="xgen-internal-githook" created="Wed, 17 Jun 2020 15:57:53 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Judah Schvimer&apos;, &apos;email&apos;: &apos;judah@mongodb.com&apos;, &apos;username&apos;: &apos;judahschvimer&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-48527&quot; title=&quot;Aborting in-progress transactions on step-up should clear session state before returning&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-48527&quot;&gt;&lt;del&gt;SERVER-48527&lt;/del&gt;&lt;/a&gt; Aborting in-progress transactions on step-up should clear session state before returning&lt;/p&gt;

&lt;p&gt;(cherry picked from commit 07169364c2aece0fb99f4a97b796196edb033efa)&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/e5a25068d1e122488ea5e8d400e86e96022e4c72&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/e5a25068d1e122488ea5e8d400e86e96022e4c72&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3203370" author="xgen-internal-githook" created="Wed, 10 Jun 2020 15:52:49 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Judah Schvimer&apos;, &apos;email&apos;: &apos;judah@mongodb.com&apos;, &apos;username&apos;: &apos;judahschvimer&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-48527&quot; title=&quot;Aborting in-progress transactions on step-up should clear session state before returning&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-48527&quot;&gt;&lt;del&gt;SERVER-48527&lt;/del&gt;&lt;/a&gt; Aborting in-progress transactions on step-up should clear session state before returning&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/07169364c2aece0fb99f4a97b796196edb033efa&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/07169364c2aece0fb99f4a97b796196edb033efa&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3197486" author="siyuan.zhou@10gen.com" created="Tue, 9 Jun 2020 16:13:15 +0000"  >&lt;p&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;, I think we should backport this to 4.2 since it&apos;s used by large transactions as you mentioned.&lt;/p&gt;</comment>
                            <comment id="3197231" author="xgen-internal-githook" created="Tue, 9 Jun 2020 14:57:03 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kaloian Manassiev&apos;, &apos;email&apos;: &apos;kaloian.manassiev@mongodb.com&apos;, &apos;username&apos;: &apos;kaloianm&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-48527&quot; title=&quot;Aborting in-progress transactions on step-up should clear session state before returning&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-48527&quot;&gt;&lt;del&gt;SERVER-48527&lt;/del&gt;&lt;/a&gt; Aborting in-progress transactions on step-up should clear session state before returning&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit c7c78598d530710b1e0c8805bfceb37ccde08604.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/9a41a3c8f69fae56bb23d1d6004d7f75ff7ce9fa&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/9a41a3c8f69fae56bb23d1d6004d7f75ff7ce9fa&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3195906" author="judah.schvimer" created="Mon, 8 Jun 2020 20:44:45 +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;, should I backport this to 4.2? It&apos;s not strictly necessary, but has to do with Large Transactions.&lt;/p&gt;</comment>
                            <comment id="3195753" author="xgen-internal-githook" created="Mon, 8 Jun 2020 19:34:51 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Judah Schvimer&apos;, &apos;email&apos;: &apos;judah@mongodb.com&apos;, &apos;username&apos;: &apos;judahschvimer&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-48527&quot; title=&quot;Aborting in-progress transactions on step-up should clear session state before returning&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-48527&quot;&gt;&lt;del&gt;SERVER-48527&lt;/del&gt;&lt;/a&gt; Aborting in-progress transactions on step-up should clear session state before returning&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c7c78598d530710b1e0c8805bfceb37ccde08604&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c7c78598d530710b1e0c8805bfceb37ccde08604&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3191046" author="judah.schvimer" created="Thu, 4 Jun 2020 19:29:19 +0000"  >&lt;p&gt;This test is somewhat blocked by &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-48600&quot; title=&quot;RefineCollectionShardKey does not check for transaction write concern errors&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-48600&quot;&gt;&lt;del&gt;SERVER-48600&lt;/del&gt;&lt;/a&gt;. Thinking of how to sequence this all and not block it on that.&lt;/p&gt;</comment>
                            <comment id="3160518" author="judah.schvimer" created="Mon, 1 Jun 2020 22:44:54 +0000"  >&lt;p&gt;I think that the cleanest way to do this is for aborting in progress transactions to use AlternativeClientRegions.&lt;/p&gt;</comment>
                            <comment id="3158641" author="judah.schvimer" created="Mon, 1 Jun 2020 21:58:11 +0000"  >&lt;p&gt;This was introduced in 4.4, since that was when Refine Document Shard Key was introduced. That said, backporting to 4.2 is likely a good idea since it&apos;s possible this could trigger an invariant with other step-up writes that we just haven&apos;t seen yet.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                        <issuelink>
            <issuekey id="1378558">SERVER-48729</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1406895">SERVER-49459</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1372554">SERVER-48600</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>10.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_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="18953"><![CDATA[v4.4]]></customfieldvalue>
    <customfieldvalue key="16775"><![CDATA[v4.2]]></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, 8 Jun 2020 19:34:51 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 32 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_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16941"><![CDATA[Not Needed]]></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>
                            3 years, 32 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>11.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>judah.schvimer@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|hxo0fb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hxb773:</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="3935">Repl 2020-06-15</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|hxnmon:</customfieldvalue>

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