<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:00:24 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-64462] &#26356;&#26032;shard key&#24182;abortTransaction&#24471;&#21040;&#25253;&#38169;&#24182;&#23548;&#33268;mongos hang</title>
                <link>https://jira.mongodb.org/browse/SERVER-64462</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;mongo5.0.4&#160;&#160; redhat 8&lt;/p&gt;

&lt;p&gt;&#25805;&#20316;&#27493;&#39588;&#65306;&lt;/p&gt;

&lt;p&gt;MongoDB Enterprise mongos&amp;gt; var session = db.getMongo().startSession()&lt;br/&gt;
MongoDB Enterprise mongos&amp;gt; session.startTransaction()&lt;br/&gt;
MongoDB Enterprise mongos&amp;gt; var tb1 = session.getDatabase(&apos;testdb01&apos;).getCollection(&apos;table01&apos;)&lt;br/&gt;
MongoDB Enterprise mongos&amp;gt; tb1.updateOne({id:1},{$set:{&quot;id&quot;:&quot;88888&quot;}},{multi:false})&lt;/p&gt;
{ &quot;acknowledged&quot; : true, &quot;matchedCount&quot; : 1, &quot;modifiedCount&quot; : 1 }
&lt;p&gt;MongoDB Enterprise mongos&amp;gt; session.commitTransaction()&lt;br/&gt;
uncaught exception: Error: command failed: {&lt;br/&gt;
 &quot;ok&quot; : 0,&lt;br/&gt;
 &quot;errmsg&quot; : &quot;Transaction was aborted :: caused by :: from shard rs_shard03 :: caused by :: &apos;prepareTransaction&apos; is not supported for replica sets with arbiters&quot;,&lt;br/&gt;
 &quot;code&quot; : 148,&lt;br/&gt;
 &quot;codeName&quot; : &quot;ReadConcernMajorityNotEnabled&quot;,&lt;br/&gt;
 &quot;$clusterTime&quot; : {&lt;br/&gt;
 &quot;clusterTime&quot; : Timestamp(1647248380, 3),&lt;br/&gt;
 &quot;signature&quot; : &lt;/p&gt;
{
 &quot;hash&quot; : BinData(0,&quot;AAAAAAAAAAAAAAAAAAAAAAAAAAA=&quot;),
 &quot;keyId&quot; : NumberLong(0)
 }
&lt;p&gt; },&lt;br/&gt;
 &quot;operationTime&quot; : Timestamp(1647248380, 3),&lt;br/&gt;
 &quot;recoveryToken&quot; : &lt;/p&gt;
{
 &quot;recoveryShardId&quot; : &quot;rs_shard03&quot;
 }
&lt;p&gt;} with original command request: {&lt;br/&gt;
 &quot;commitTransaction&quot; : 1,&lt;br/&gt;
 &quot;txnNumber&quot; : NumberLong(0),&lt;br/&gt;
 &quot;lsid&quot; : &lt;/p&gt;
{
 &quot;id&quot; : UUID(&quot;4baec96b-8124-4b4d-a3ac-c99a375ba7b0&quot;)
 }
&lt;p&gt;,&lt;br/&gt;
 &quot;$clusterTime&quot; : {&lt;br/&gt;
 &quot;clusterTime&quot; : Timestamp(1647248371, 2),&lt;br/&gt;
 &quot;signature&quot; : &lt;/p&gt;
{
 &quot;hash&quot; : BinData(0,&quot;AAAAAAAAAAAAAAAAAAAAAAAAAAA=&quot;),
 &quot;keyId&quot; : NumberLong(0)
 }
&lt;p&gt; },&lt;br/&gt;
 &quot;autocommit&quot; : false,&lt;br/&gt;
 &quot;stmtId&quot; : NumberInt(1)&lt;br/&gt;
} on connection: connection to 127.0.0.1:32017 :&lt;br/&gt;
_getErrorWithCode@src/mongo/shell/utils.js:25:13&lt;br/&gt;
doassert@src/mongo/shell/assert.js:18:14&lt;br/&gt;
_assertCommandWorked@src/mongo/shell/assert.js:737:17&lt;br/&gt;
assert.commandWorked@src/mongo/shell/assert.js:829:16&lt;br/&gt;
commitTransaction@src/mongo/shell/session.js:977:17&lt;br/&gt;
@(shell):1:1&lt;/p&gt;

&lt;p&gt;&#28982;&#21518;mongos&#19978;find,currentOp&#31561;&#25805;&#20316;&#37117;&#26080;&#21709;&#24212;&#20102;&#12290;&lt;/p&gt;



&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="2000302">SERVER-64462</key>
            <summary>&#26356;&#26032;shard key&#24182;abortTransaction&#24471;&#21040;&#25253;&#38169;&#24182;&#23548;&#33268;mongos hang</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="13202">Works as Designed</resolution>
                                        <assignee username="yuan.fang@mongodb.com">Yuan Fang</assignee>
                                    <reporter username="251237926@qq.com">Yi deng</reporter>
                        <labels>
                    </labels>
                <created>Mon, 14 Mar 2022 10:01:05 +0000</created>
                <updated>Fri, 27 Oct 2023 13:52:05 +0000</updated>
                            <resolved>Thu, 22 Sep 2022 16:02:41 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="4845249" author="JIRAUSER1270794" created="Wed, 21 Sep 2022 14:47:46 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=251237926%40qq.com&quot; class=&quot;user-hover&quot; rel=&quot;251237926@qq.com&quot;&gt;251237926@qq.com&lt;/a&gt; ,&lt;/p&gt;

&lt;p&gt;Thank you for your report. Kindly note that MongoDB Jira and Support are &lt;a href=&quot;https://www.mongodb.com/support-policy/software&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;only available in English&lt;/a&gt;. Since the issue has already been addressed in a &lt;a href=&quot;https://www.mongodb.com/community/forums/t/how-to-update-shard-key/152044&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;post&lt;/a&gt; in MongoDB Community Forum, I would like to summarize the answers here: transactions were errored and aborted because modifying shard keys uses transactions, and &quot;prepareTransaction&quot; is &lt;a href=&quot;https://www.mongodb.com/docs/manual/core/transactions-sharded-clusters/?_ga=2.90799450.1715190077.1662989440-731116381.1660789216&amp;amp;_gac=1.88078058.1661278151.Cj0KCQjw9ZGYBhCEARIsAEUXITWmpk-ComccWc-BjE7liW8Ry2agvvE435JEu3aSOJeiM_WvIU6LFvwaAqMFEALw_wcB#arbiters&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;not supported for replica sets with arbiters.&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I&apos;m glad your issue has been resolved, and I&apos;m going to close this ticket.&#160;&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Yuan&lt;/p&gt;</comment>
                            <comment id="4419957" author="JIRAUSER1265483" created="Fri, 18 Mar 2022 00:53:08 +0000"  >&lt;p&gt;&#27492;&#38382;&#39064;&#30001;&#20110;shard cluster&#20013;&#21253;&#21547;&#20102;arbiter member&#23548;&#33268;&#65292;&#20294;&#26159;&#21457;&#29983;hang&#20043;&#21518;&#65292;&#19981;&#30693;&#36947;&#22914;&#20309;&#35753;&#31995;&#32479;&#24674;&#22797;&#27491;&#24120;&#12290;&lt;/p&gt;</comment>
                            <comment id="4409366" author="JIRAUSER1265483" created="Mon, 14 Mar 2022 10:09:30 +0000"  >&lt;p&gt;&#19981;&#22909;&#24847;&#24605;&#65292;&#20889;&#38169;&#20102;&#65292;&#26159;commitTransaction&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1649908">COMPASS-4715</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="2143394">DOCS-15643</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>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 21 Sep 2022 14:47:46 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 20 weeks 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_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>
                            1 year, 20 weeks ago
                        </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>251237926@qq.com</customfieldvalue>
            <customfieldvalue>yuan.fang@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i0n1af:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i062is:</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_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>
                                    <customfieldvalue><![CDATA[edwin.zhou@mongodb.com]]></customfieldvalue>
        <customfieldvalue><![CDATA[yuan.fang@mongodb.com]]></customfieldvalue>
    

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i0mnfr:</customfieldvalue>

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