<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:08:17 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>[DOCS-13619] Investigate changes in SERVER-46796: Specific errors during prepare should get propagated to the client</title>
                <link>https://jira.mongodb.org/browse/DOCS-13619</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;h2&gt;&lt;a name=&quot;Description&quot;&gt;&lt;/a&gt;Description&lt;/h2&gt;

    &lt;div class=&quot;panel&quot; style=&quot;background-color: #c2d2c2;border-width: 1px;&quot;&gt;&lt;div class=&quot;panelHeader&quot; style=&quot;border-bottom-width: 1px;background-color: #239eb0;&quot;&gt;&lt;b&gt;Downstream Change Summary&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;panelContent&quot; style=&quot;background-color: #c2d2c2;&quot;&gt;
&lt;p&gt;    Before this ticket, if a prepared transaction failed it would always fail with NoSuchTransaction. Now, the error reported by a failed prepared transaction can take other values which may indicate what caused a shard to vote to abort (for example OperationNotSupportedInTransaction as described in the ticket).&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;h2&gt;&lt;a name=&quot;DescriptionofLinkedTicket&quot;&gt;&lt;/a&gt;Description of Linked Ticket&lt;/h2&gt;
&lt;p&gt;    &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-44409&quot; title=&quot;Add FSM test for creating indexes/collections/databases in txns&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-44409&quot;&gt;&lt;del&gt;SERVER-44409&lt;/del&gt;&lt;/a&gt; adds a &lt;a href=&quot;https://github.com/mongodb/mongo/blob/fa945325938ada67a088e7dbe951404d092e8771/jstests/sharding/create_new_collections_prepared_transactions.js#L48-L54&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;test&lt;/a&gt; that attempts (and fails) to do a prepared transaction that creates a collection. The failure is expected, since we presently &lt;a href=&quot;https://github.com/mongodb/mongo/blob/874d70701afeb988bbc6a89b5d41a76ab2a8efc5/src/mongo/db/s/txn_two_phase_commit_cmds.cpp#L110&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;disallow&lt;/a&gt; collection creation inside prepared transactions.&lt;/p&gt;

&lt;p&gt;The test must presently check that commitTransaction_forTesting() fails with NoSuchTransaction, but the logs for the test confirm that the OperationNotSupportedInTransaction error does occur:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;[js_test:create_new_collections_prepared_transactions] 2020-03-11T12:45:54.642-0400 d20022| {&quot;t&quot;:{&quot;$date&quot;:&quot;2020-03-11T12:45:54.641-0400&quot;},&quot;s&quot;:&quot;I&quot;, &quot;c&quot;:&quot;TXN&quot;,     &quot;id&quot;:22483,&quot;ctx&quot;:&quot;conn28&quot;,&quot;msg&quot;:&quot;Participant shard received prepareTransaction for transaction with txnNumber {opCtx_getTxnNumber} on session {opCtx_getLogicalSessionId}&quot;,&quot;attr&quot;:{&quot;opCtx_getTxnNumber&quot;:0,&quot;opCtx_getLogicalSessionId&quot;:{&quot;id&quot;:{&quot;$uuid&quot;:&quot;8edc05c3-fc28-4e7d-9468-b353e9a6ac31&quot;},&quot;uid&quot;:{&quot;$binary&quot;:{&quot;base64&quot;:&quot;47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=&quot;,&quot;subType&quot;:&quot;0&quot;}}}}}&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;[js_test:create_new_collections_prepared_transactions] 2020-03-11T12:45:54.643-0400 d20022| {&quot;t&quot;:{&quot;$date&quot;:&quot;2020-03-11T12:45:54.642-0400&quot;},&quot;s&quot;:&quot;I&quot;, &quot;c&quot;:&quot;TXN&quot;,     &quot;id&quot;:51802,&quot;ctx&quot;:&quot;conn28&quot;,&quot;msg&quot;:&quot;transaction&quot;,&quot;attr&quot;:{&quot;parameters&quot;:{&quot;lsid&quot;:{&quot;id&quot;:{&quot;$uuid&quot;:&quot;8edc05c3-fc28-4e7d-9468-b353e9a6ac31&quot;},&quot;uid&quot;:{&quot;$binary&quot;:{&quot;base64&quot;:&quot;47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=&quot;,&quot;subType&quot;:&quot;0&quot;}}},&quot;txnNumber&quot;:0,&quot;autocommit&quot;:false,&quot;readConcern&quot;:{&quot;provenance&quot;:&quot;clientSupplied&quot;}},&quot;readTimestamp&quot;:&quot;Timestamp(0, 0)&quot;,&quot;terminationCause&quot;:&quot;aborted&quot;,&quot;timeActiveMicros&quot;:58189,&quot;timeInactiveMicros&quot;:121171,&quot;numYields&quot;:0,&quot;locks&quot;:{&quot;ReplicationStateTransition&quot;:{&quot;acquireCount&quot;:{&quot;w&quot;:3}},&quot;Global&quot;:{&quot;acquireCount&quot;:{&quot;w&quot;:2}},&quot;Database&quot;:{&quot;acquireCount&quot;:{&quot;w&quot;:2}},&quot;Collection&quot;:{&quot;acquireCount&quot;:{&quot;r&quot;:1,&quot;w&quot;:2}},&quot;Mutex&quot;:{&quot;acquireCount&quot;:{&quot;r&quot;:3}}},&quot;storage&quot;:{},&quot;wasPrepared&quot;:false,&quot;durationMillis&quot;:179}}&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;[js_test:create_new_collections_prepared_transactions] 2020-03-11T12:45:54.643-0400 d20020| {&quot;t&quot;:{&quot;$date&quot;:&quot;2020-03-11T12:45:54.643-0400&quot;},&quot;s&quot;:&quot;D3&quot;,&quot;c&quot;:&quot;TXN&quot;,     &quot;id&quot;:22479,&quot;ctx&quot;:&quot;TransactionCoordinator&quot;,&quot;msg&quot;:&quot;{txnIdToString_lsid_txnNumber} Coordinator shard received {status} from shard {shardId} for {commandObj}&quot;,&quot;attr&quot;:{&quot;txnIdToString_lsid_txnNumber&quot;:&quot;8edc05c3-fc28-4e7d-9468-b353e9a6ac31:0&quot;,&quot;status&quot;:{&quot;code&quot;:263,&quot;codeName&quot;:&quot;OperationNotSupportedInTransaction&quot;,&quot;errmsg&quot;:&quot;Cannot create new collections inside distributed transactions&quot;},&quot;shardId&quot;:&quot;create_new_collections_prepared_transactions-rs0&quot;,&quot;commandObj&quot;:{&quot;prepareTransaction&quot;:1,&quot;lsid&quot;:{&quot;id&quot;:{&quot;$uuid&quot;:&quot;8edc05c3-fc28-4e7d-9468-b353e9a6ac31&quot;},&quot;uid&quot;:{&quot;$binary&quot;:{&quot;base64&quot;:&quot;47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=&quot;,&quot;subType&quot;:&quot;0&quot;}}},&quot;txnNumber&quot;:0,&quot;autocommit&quot;:false,&quot;writeConcern&quot;:{&quot;w&quot;:&quot;majority&quot;}}}}&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;It seems that the coordinator shard does not propagate the &lt;tt&gt;OperationNotSupportedInTransaction&lt;/tt&gt; error to the caller. It would be nice to propagate  errors during prepare to more clearly communicate what caused the prepare to fail. &lt;/p&gt;


&lt;h2&gt;&lt;a name=&quot;Scopeofchanges&quot;&gt;&lt;/a&gt;Scope of changes&lt;/h2&gt;

&lt;h2&gt;&lt;a name=&quot;ImpacttoOtherDocs&quot;&gt;&lt;/a&gt;Impact to Other Docs&lt;/h2&gt;

&lt;h2&gt;&lt;a name=&quot;MVP%28WorkandDate%29&quot;&gt;&lt;/a&gt;MVP (Work and Date)&lt;/h2&gt;

&lt;h2&gt;&lt;a name=&quot;Resources%28ScopeorDesignDocs%2CInvision%2Cetc.%29&quot;&gt;&lt;/a&gt;Resources (Scope or Design Docs, Invision, etc.)&lt;/h2&gt;
</description>
                <environment></environment>
        <key id="1331901">DOCS-13619</key>
            <summary>Investigate changes in SERVER-46796: Specific errors during prepare should get propagated to the client</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="9">Done</resolution>
                                        <assignee username="kay.kim@mongodb.com">Kay Kim</assignee>
                                    <reporter username="backlog-server-pm">Backlog - Core Eng Program Management Team</reporter>
                        <labels>
                            <label>docs-transactions</label>
                    </labels>
                <created>Tue, 28 Apr 2020 19:46:20 +0000</created>
                <updated>Tue, 8 Sep 2020 23:50:55 +0000</updated>
                            <resolved>Tue, 19 May 2020 16:03:12 +0000</resolved>
                                                    <fixVersion>4.4.0-rc4</fixVersion>
                    <fixVersion>4.7.0</fixVersion>
                                        <due>Fri, 22 May 2020 00:00:00 +0000</due>
                            <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="3095370" author="kay.kim@10gen.com" created="Tue, 19 May 2020 16:03:12 +0000"  >&lt;p&gt;Tested that retryable error is not bubbled up.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                            <outwardlinks description="documents">
                                        <issuelink>
            <issuekey id="1264221">SERVER-46796</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>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 28 Apr 2020 20:04:06 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 38 weeks, 1 day 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>DOCS-12787</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>jess.mokrzecki@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            3 years, 38 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-server-pm</customfieldvalue>
            <customfieldvalue>kay.kim@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hxi66v:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hx5k47:</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="4000">ServerDocs: May18-May22</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_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hxhsg7:</customfieldvalue>

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