<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:23:04 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-72885] Are change events of a single transaction always grouped together?</title>
                <link>https://jira.mongodb.org/browse/SERVER-72885</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The change event associated with a transaction comes with a lsid and a txnNumber which helps to uniquely identify a transaction. When executing transactions from multiple clients concurrently, is it guaranteed that the change events of a transaction are always grouped together?&lt;/p&gt;</description>
                <environment></environment>
        <key id="2234398">SERVER-72885</key>
            <summary>Are change events of a single transaction always grouped together?</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</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="3">Duplicate</resolution>
                                        <assignee username="yuan.fang@mongodb.com">Yuan Fang</assignee>
                                    <reporter username="kirupha2000@gmail.com">Kiruphasankaran Nataraj</reporter>
                        <labels>
                    </labels>
                <created>Tue, 17 Jan 2023 05:38:48 +0000</created>
                <updated>Wed, 18 Jan 2023 15:05:45 +0000</updated>
                            <resolved>Wed, 18 Jan 2023 15:05:45 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="5120847" author="JIRAUSER1270794" created="Wed, 18 Jan 2023 15:04:26 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kirupha2000%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;kirupha2000@gmail.com&quot;&gt;kirupha2000@gmail.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thank you for bringing this to our attention and providing a detailed explanation. To quickly answer your question, change events of a single transaction in MongoDB are not guaranteed to always be grouped together. Thus, the second scenario in your comment is possible. &lt;/p&gt;

&lt;p&gt;For more information, please refer to &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-72718&quot; title=&quot;Not able to identify the transaction boundaries using ChangeStream&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-72718&quot;&gt;&lt;del&gt;SERVER-72718&lt;/del&gt;&lt;/a&gt;, as I have already addressed a similar question you posted there. I will be closing this ticket as it duplicates &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-72718&quot; title=&quot;Not able to identify the transaction boundaries using ChangeStream&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-72718&quot;&gt;&lt;del&gt;SERVER-72718&lt;/del&gt;&lt;/a&gt;. Thank you for your understanding.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Yuan&lt;/p&gt;</comment>
                            <comment id="5120347" author="JIRAUSER1269550" created="Wed, 18 Jan 2023 12:01:42 +0000"  >&lt;p&gt;This is in the context of Change Streams. While opening a Change Stream on a MongoDB deployment, is it guaranteed that the change events of a transaction always appear together without any interleaving operations even if multiple clients execute multiple transactions on the same deployment concurrently?&lt;/p&gt;

&lt;p&gt;For example, if two transactions are executed with 4 inserts, say Txn1 and Txn2, currently the change events as observed as follows (lsid and txnNumber values are assumed for simplicity):&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;lsid: 123&#160; &#160; &#160; &#160; &#160; txnNumber: 1&lt;/li&gt;
	&lt;li&gt;lsid: 123&#160; &#160; &#160; &#160; &#160; txnNumber: 1&lt;/li&gt;
	&lt;li&gt;lsid: 123&#160; &#160; &#160; &#160; &#160; txnNumber: 1&lt;/li&gt;
	&lt;li&gt;lsid: 123&#160; &#160; &#160; &#160; &#160; txnNumber: 1&lt;/li&gt;
	&lt;li&gt;lsid: 123&#160; &#160; &#160; &#160; &#160; txnNumber: 2&lt;/li&gt;
	&lt;li&gt;lsid: 123&#160; &#160; &#160; &#160; &#160; txnNumber: 2&lt;/li&gt;
	&lt;li&gt;lsid: 123&#160; &#160; &#160; &#160; &#160; txnNumber: 2&lt;/li&gt;
	&lt;li&gt;lsid: 123&#160; &#160; &#160; &#160; &#160; txnNumber: 2&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;For the change events associated with a single transaction, the lsid and txnNumber is the same and the above example shows the change events associated with each individual transaction being grouped together.&lt;/p&gt;

&lt;p&gt;Is there a possibility of the change events of a transaction appearing interleaved or mixed within the change events of another transaction? For example, is there a possibility of the change events appearing as follows:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;lsid: 123&#160; &#160; &#160; &#160; &#160; txnNumber: 1&lt;/li&gt;
	&lt;li&gt;lsid: 123&#160; &#160; &#160; &#160; &#160; txnNumber: 2&lt;/li&gt;
	&lt;li&gt;lsid: 123&#160; &#160; &#160; &#160; &#160; txnNumber: 1&lt;/li&gt;
	&lt;li&gt;lsid: 123&#160; &#160; &#160; &#160; &#160; txnNumber: 1&lt;/li&gt;
	&lt;li&gt;lsid: 123&#160; &#160; &#160; &#160; &#160; txnNumber: 2&lt;/li&gt;
	&lt;li&gt;lsid: 123&#160; &#160; &#160; &#160; &#160; txnNumber: 1&lt;/li&gt;
	&lt;li&gt;lsid: 123&#160; &#160; &#160; &#160; &#160; txnNumber: 2&lt;/li&gt;
	&lt;li&gt;lsid: 123&#160; &#160; &#160; &#160; &#160; txnNumber: 2&lt;/li&gt;
&lt;/ul&gt;
</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="2229963">SERVER-72718</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2229963">SERVER-72718</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>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 18 Jan 2023 15:04:26 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 3 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>yuan.fang@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            1 year, 3 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>kirupha2000@gmail.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|i1qtrj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i19ck0:</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[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|i1qfwv:</customfieldvalue>

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