<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 09:01: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>[JAVA-4231] NoSuchTransaction</title>
                <link>https://jira.mongodb.org/browse/JAVA-4231</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;the code is at &lt;a href=&quot;https://github.com/byhu/springMongoTxTest.git&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/byhu/springMongoTxTest.git&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Test: TxTest.noSuchTransactionRecursive()&lt;/p&gt;

&lt;p&gt;Here is a senariao the error occurs&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;The first command starts a transaction.&lt;/li&gt;
	&lt;li&gt;The second command fails when trying to participate the txn the first command started.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;It appears the second command came too fast, the first one have not started the transaction yet.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;Key fields.&lt;/p&gt;

&lt;p&gt;lsid &#8211; is associated with a session. &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &#160;&quot;lsid&quot;: {&quot;id&quot;: {&quot;$binary&quot;: &lt;/p&gt;
{&quot;base64&quot;: &quot;iH1VdrqKRv20ghDkmqkygg==&quot;, &quot;subType&quot;: &quot;04&quot;}
&lt;p&gt;}},&lt;/p&gt;

&lt;p&gt;txnNumber &#8211; is txn number of the session. &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; &quot;txnNumber&quot;: 4&lt;/p&gt;

&lt;p&gt;request id &#8211; id of the command. &#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; request id 120&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;2021-07-13 15:22:33.477 DEBUG 10552 &amp;#8212; &lt;span class=&quot;error&quot;&gt;&amp;#91;andler-executor&amp;#93;&lt;/span&gt; org.mongodb.driver.protocol.command&#160;&#160; &#160;&#160;&#160;: Sending command &apos;{&quot;update&quot;: &quot;noSuchTransactionRecursive0&quot;, &quot;ordered&quot;: true, &quot;$db&quot;: &quot;bhu&quot;, &quot;$clusterTime&quot;: {&quot;clusterTime&quot;: {&quot;$timestamp&quot;: {&quot;t&quot;: 1626204153, &quot;i&quot;: 60}}, &quot;signature&quot;: {&quot;hash&quot;: {&quot;$binary&quot;: {&quot;base64&quot;: &quot;2MKqn5yo2V3q1dledt6XUNfzYyY=&quot;, &quot;subType&quot;: &quot;00&quot;}}, &quot;keyId&quot;: 6959228637484679170}}, &quot;lsid&quot;: {&quot;id&quot;: {&quot;$binary&quot;: &lt;/p&gt;
{&quot;base64&quot;: &quot;iH1VdrqKRv20ghDkmqkygg==&quot;, &quot;subType&quot;: &quot;04&quot;}
&lt;p&gt;}}, &quot;txnNumber&quot;: 4, &quot;startTransaction&quot;: true, &quot;autocommit&quot;: false, &quot;updates&quot;: [{&quot;q&quot;: &lt;/p&gt;
{&quot;_id&quot;: 30}
&lt;p&gt;, &quot;u&quot;: {&quot;_id&quot;: 30, &quot;data&quot;: &quot;a1 30&quot;, &quot;_class&quot;: &quot;bhu.tx.A&quot;}, &quot;upsert&quot;: true}]}&apos; with request id 119 to database bhu on connection &lt;span class=&quot;error&quot;&gt;&amp;#91;connectionId\{localValue:19, serverValue:68504}&amp;#93;&lt;/span&gt; to server maas-sw-d6-u0055.nam.nsroot.net:37017&lt;/p&gt;

&lt;p&gt;2021-07-13 15:22:33.479 DEBUG 10552 &amp;#8212; &lt;span class=&quot;error&quot;&gt;&amp;#91;andler-executor&amp;#93;&lt;/span&gt; org.mongodb.driver.protocol.command&#160;&#160;&#160;&#160;&#160; : Sending command &apos;{&quot;update&quot;: &quot;noSuchTransactionRecursive0&quot;, &quot;ordered&quot;: true, &quot;$db&quot;: &quot;bhu&quot;, &quot;$clusterTime&quot;: {&quot;clusterTime&quot;: {&quot;$timestamp&quot;: {&quot;t&quot;: 1626204153, &quot;i&quot;: 60}}, &quot;signature&quot;: {&quot;hash&quot;: {&quot;$binary&quot;: {&quot;base64&quot;: &quot;2MKqn5yo2V3q1dledt6XUNfzYyY=&quot;, &quot;subType&quot;: &quot;00&quot;}}, &quot;keyId&quot;: 6959228637484679170}}, &quot;lsid&quot;: {&quot;id&quot;: {&quot;$binary&quot;: &lt;/p&gt;
{&quot;base64&quot;: &quot;iH1VdrqKRv20ghDkmqkygg==&quot;, &quot;subType&quot;: &quot;04&quot;}
&lt;p&gt;}}, &quot;txnNumber&quot;: 4, &quot;autocommit&quot;: false, &quot;updates&quot;: [{&quot;q&quot;: &lt;/p&gt;
{&quot;_id&quot;: 31}
&lt;p&gt;, &quot;u&quot;: {&quot;_id&quot;: 31, &quot;data&quot;: &quot;a1 31&quot;, &quot;_class&quot;: &quot;bhu.tx.A&quot;}, &quot;upsert&quot;: true}]}&apos; with request id 120 to database bhu on connection &lt;span class=&quot;error&quot;&gt;&amp;#91;connectionId\{localValue:18, serverValue:68499}&amp;#93;&lt;/span&gt; to server maas-sw-d6-u0055.nam.nsroot.net:37017&lt;/p&gt;

&lt;p&gt;2021-07-13 15:22:33.531 DEBUG 10552 &amp;#8212; &lt;span class=&quot;error&quot;&gt;&amp;#91;andler-executor&amp;#93;&lt;/span&gt; org.mongodb.driver.protocol.command&#160;&#160;&#160;&#160;&#160; : Execution of command with request id 120 failed to complete successfully in 44.83 ms on connection &lt;span class=&quot;error&quot;&gt;&amp;#91;connectionId\{localValue:18, serverValue:68499}&amp;#93;&lt;/span&gt; to server maas-sw-d6-u0055.nam.nsroot.net:37017&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;com.mongodb.MongoCommandException: Command failed with error 251 (NoSuchTransaction): &apos;Given transaction number 4 does not match any in-progress transactions. The active transaction number is 3&apos; on server maas-sw-d6-u0055.nam.nsroot.net:37017. The full response is {&quot;errorLabels&quot;: &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;TransientTransactionError&amp;quot;&amp;#93;&lt;/span&gt;, &quot;operationTime&quot;: {&quot;$timestamp&quot;: {&quot;t&quot;: 1626204153, &quot;i&quot;: 41}}, &quot;ok&quot;: 0.0, &quot;errmsg&quot;: &quot;Given transaction number 4 does not match any in-progress transactions. The active transaction number is 3&quot;, &quot;code&quot;: 251, &quot;codeName&quot;: &quot;NoSuchTransaction&quot;, &quot;$clusterTime&quot;: {&quot;clusterTime&quot;: {&quot;$timestamp&quot;: {&quot;t&quot;: 1626204153, &quot;i&quot;: 60}}, &quot;signature&quot;: {&quot;hash&quot;: {&quot;$binary&quot;: {&quot;base64&quot;: &quot;2MKqn5yo2V3q1dledt6XUNfzYyY=&quot;, &quot;subType&quot;: &quot;00&quot;}}, &quot;keyId&quot;: 6959228637484679170}}}&lt;/p&gt;

&lt;p&gt;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; at com.mongodb.internal.connection.ProtocolHelper.getCommandFailureException(ProtocolHelper.java:175) ~&lt;span class=&quot;error&quot;&gt;&amp;#91;mongodb-driver-core-4.2.3.jar:na&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="1818657">JAVA-4231</key>
            <summary>NoSuchTransaction</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="10300" iconUrl="https://jira.mongodb.org/images/icons/priorities/medium.svg">Unknown</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="9">Done</resolution>
                                        <assignee username="jeff.yemin@mongodb.com">Jeffrey Yemin</assignee>
                                    <reporter username="yuanzhao.hu@gmail.com">el mir&#243;n N/A</reporter>
                        <labels>
                            <label>external-user</label>
                    </labels>
                <created>Wed, 14 Jul 2021 13:11:27 +0000</created>
                <updated>Wed, 4 May 2022 13:14:05 +0000</updated>
                            <resolved>Thu, 15 Jul 2021 20:39:57 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="3941576" author="jeff.yemin" created="Wed, 14 Jul 2021 17:12:23 +0000"  >&lt;p&gt;Hi there, thank you for reaching out. As this sounds like a support issue, I wanted to give you some resources to get this question answered more quickly:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Our MongoDB support portal, located at &lt;a href=&quot;https://support.mongodb.com/welcome&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;support.mongodb.com&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;Our MongoDB community portal, located &lt;a href=&quot;https://developer.mongodb.com/community/forums/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;If you are an Atlas customer, you can review your support options by clicking Support in the top menu bar of the Atlas UI&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Just in case you have already opened a support case and are not receiving sufficient help, please let me know and I can facilitate escalating your issue.&lt;/p&gt;

&lt;p&gt;Thank you!&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hzchfj:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>