<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:43:33 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-36589] Implement mongos abort logic</title>
                <link>https://jira.mongodb.org/browse/SERVER-36589</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Currently, mongos aborts transactions by sending &lt;tt&gt;abortTransaction&lt;/tt&gt;&#160;to all shards, since this was sufficient for the single shard case. Instead, it should be changed to only target the shards in the participant list that have been successfully sent &lt;tt&gt;startTransaction=true&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;Mongos should also remember if a txnId (lsid/txnNumber pair) is aborted, so it won&apos;t accept more statements for a transaction after it chooses to abort.&lt;/p&gt;</description>
                <environment></environment>
        <key id="586607">SERVER-36589</key>
            <summary>Implement mongos abort logic</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="randolph@mongodb.com">Randolph Tan</assignee>
                                    <reporter username="jack.mulrow@mongodb.com">Jack Mulrow</reporter>
                        <labels>
                            <label>ShardedTxn:RouterSupport</label>
                    </labels>
                <created>Fri, 10 Aug 2018 16:01:37 +0000</created>
                <updated>Sun, 29 Oct 2023 22:29:03 +0000</updated>
                            <resolved>Wed, 26 Sep 2018 14:41:35 +0000</resolved>
                                                    <fixVersion>4.1.4</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="2019391" author="xgen-internal-githook" created="Mon, 1 Oct 2018 16:57:10 +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: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-36589&quot; title=&quot;Implement mongos abort logic&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-36589&quot;&gt;&lt;del&gt;SERVER-36589&lt;/del&gt;&lt;/a&gt; Remove unused reference to s/transactions/SConscript&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/5090bdb9b2d87dc77954352d3124cbab4806b0a5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/5090bdb9b2d87dc77954352d3124cbab4806b0a5&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2014839" author="xgen-internal-githook" created="Wed, 26 Sep 2018 14:40:34 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Randolph Tan&apos;, &apos;email&apos;: &apos;randolph@10gen.com&apos;, &apos;username&apos;: &apos;renctan&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-36589&quot; title=&quot;Implement mongos abort logic&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-36589&quot;&gt;&lt;del&gt;SERVER-36589&lt;/del&gt;&lt;/a&gt; Implement mongos abort logic&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/071521f35b79c8e3c280cfade3b621d61243f3bc&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/071521f35b79c8e3c280cfade3b621d61243f3bc&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2014838" author="xgen-internal-githook" created="Wed, 26 Sep 2018 14:40:32 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Randolph Tan&apos;, &apos;email&apos;: &apos;randolph@10gen.com&apos;, &apos;username&apos;: &apos;renctan&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-36589&quot; title=&quot;Implement mongos abort logic&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-36589&quot;&gt;&lt;del&gt;SERVER-36589&lt;/del&gt;&lt;/a&gt; Reorganize libraries and fold s/transaction to s/&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/625fa16dff719dbf6688af209c5f31913d1e794f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/625fa16dff719dbf6688af209c5f31913d1e794f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1994285" author="jack.mulrow" created="Wed, 5 Sep 2018 19:25:25 +0000"  >&lt;blockquote&gt;&lt;p&gt;I think it should sent abort regardless of whether mongos has been successfully startTxn or not since it cannot guarantee that the shard failed to execute when mongos gets an error.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Sounds good to me, as long as we stop sending abort to all shards in the cluster like we do now. That&apos;s all I really meant in the description. &#160;&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;since it will never succeed in running on the shards that aborted&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;You may not have seen this, but to allow internal retries by mongos, I had to make shards accept &lt;tt&gt;startTransaction=true&lt;/tt&gt;&#160;at their active transaction number, even if the shard aborted that transaction number already (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-36590&quot; title=&quot;Allow shards to start new transactions at the active transaction number &quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-36590&quot;&gt;&lt;del&gt;SERVER-36590&lt;/del&gt;&lt;/a&gt;). I think you&apos;re still correct though as long as we don&apos;t clear the participant list when we abort, because if we try to contact a shard we already aborted on, we won&apos;t send &lt;tt&gt;startTransaction=true&lt;/tt&gt;&#160;and the shard will reject the statement. I guess there&apos;s no reason to clear the participant list on abort, so I agree it&apos;s not necessary for this ticket.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="1994220" author="renctan" created="Wed, 5 Sep 2018 18:23:28 +0000"  >&lt;blockquote&gt;
&lt;p&gt;Instead, it should be changed to only target the shards in the participant list that have been successfully sent startTransaction=true&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;I think it should sent abort regardless of whether mongos has been successfully startTxn or not since it cannot guarantee that the shard failed to execute when mongos gets an error.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Mongos should also remember if a txnId (lsid/txnNumber pair) is aborted, so it won&apos;t accept more statements for a transaction after it chooses to abort.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;I&apos;m not fully convinced that this is 100% correct. On the other hand, I believe that it is safe allowing new statements to get executed since it will never succeed in running on the shards that aborted and the whole transaction will never be able to commit if at least one participant aborted already. I&apos;m going to defer this &quot;nice to have&quot; optimization for later work.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="570404">DRIVERS-522</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10020">
                    <name>Gantt Dependency</name>
                                            <outwardlinks description="has to be done before">
                                        <issuelink>
            <issuekey id="607198">SERVER-37210</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>4.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>Wed, 5 Sep 2018 18:23:28 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        5 years, 19 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-834</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>
                            5 years, 19 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>jack.mulrow@mongodb.com</customfieldvalue>
            <customfieldvalue>randolph@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hu57dz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|htvt87:</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="2452">Sharding 2018-08-27</customfieldvalue>
    <customfieldvalue id="2481">Sharding 2018-09-10</customfieldvalue>
    <customfieldvalue id="2482">Sharding 2018-09-24</customfieldvalue>
    <customfieldvalue id="2538">Sharding 2018-10-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|hu4tnb:</customfieldvalue>

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