<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:46:06 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-81295] Cannot resume V2 changeStream pipelines with V1 resume tokens</title>
                <link>https://jira.mongodb.org/browse/SERVER-81295</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;With PM-2677 backported to v6.0, change stream pipelines containing the $changeStreamSplitLargeEvent stage generate V2 resume tokens by design.&lt;/p&gt;

&lt;p&gt;Customers should be able to add this new stage to their existing change stream pipelines and resume using the existing V1 resume tokens, which is v6.0&apos;s default. Currently, there is a bug in compareAgainstClientResumeToken() resulting in ChangeStreamFatalError: cannot resume stream; the resume token was not found.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2447869">SERVER-81295</key>
            <summary>Cannot resume V2 changeStream pipelines with V1 resume tokens</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="13201">Fixed</resolution>
                                        <assignee username="romans.kasperovics@mongodb.com">Romans Kasperovics</assignee>
                                    <reporter username="romans.kasperovics@mongodb.com">Romans Kasperovics</reporter>
                        <labels>
                    </labels>
                <created>Thu, 21 Sep 2023 11:32:18 +0000</created>
                <updated>Mon, 22 Jan 2024 12:37:12 +0000</updated>
                            <resolved>Mon, 30 Oct 2023 10:14:54 +0000</resolved>
                                    <version>6.0.10</version>
                    <version>7.0.2</version>
                    <version>7.1.0-rc4</version>
                                    <fixVersion>7.1.1</fixVersion>
                    <fixVersion>7.2.0-rc0</fixVersion>
                    <fixVersion>6.0.12</fixVersion>
                    <fixVersion>7.0.4</fixVersion>
                                                        <votes>0</votes>
                                    <watches>10</watches>
                                                                                                                <comments>
                            <comment id="5868859" author="xgen-internal-githook" created="Thu, 9 Nov 2023 19:16:26 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Romans Kasperovics&apos;, &apos;email&apos;: &apos;romans.kasperovics@mongodb.com&apos;, &apos;username&apos;: &apos;romanskas&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-81295&quot; title=&quot;Cannot resume V2 changeStream pipelines with V1 resume tokens&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-81295&quot;&gt;&lt;del&gt;SERVER-81295&lt;/del&gt;&lt;/a&gt; Fix v1/v2 change stream resume token transition&lt;/p&gt;

&lt;p&gt;Change stream implementation assumes change events are totally ordered by event &apos;_id&apos;, which also serves as a resume token. In server versions prior to v7.0 the default resume token version is v1. Starting from v7.0 the default resume token version is v2, but the server still supports clients supplying v1 resume tokens (e.g., after server upgrade).&lt;/p&gt;

&lt;p&gt;The token version is a part of a token and all v1 tokens sort before v2 tokens. To ensure the correct event ordering, the server from v7.0 generates v1 tokens to be compared with the client&apos;s v1 token until the referred event is either located or surpassed.&lt;/p&gt;

&lt;p&gt;In this commit we fix the following issues:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;When resuming from the event within a transaction we need to consider &apos;txnOpIndex&apos;, because the whole transaction gets the same timestamp.&lt;/li&gt;
	&lt;li&gt;Splitting large events is only supported with v2 tokens. If a resume token is a high-watermark v1 token, the next event sharing the same timestamp will have token version v1. If this event is over 16MB, splitting it will fail because of the token version. To fix this, we convert the client&apos;s high-watermark v1 token to v2.&lt;br/&gt;
Branch: v6.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/4cf365118b715bca6461d741d4c1edecf1341817&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/4cf365118b715bca6461d741d4c1edecf1341817&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="5860004" author="xgen-internal-githook" created="Tue, 7 Nov 2023 11:10:02 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Romans Kasperovics&apos;, &apos;email&apos;: &apos;romans.kasperovics@mongodb.com&apos;, &apos;username&apos;: &apos;romanskas&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-81295&quot; title=&quot;Cannot resume V2 changeStream pipelines with V1 resume tokens&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-81295&quot;&gt;&lt;del&gt;SERVER-81295&lt;/del&gt;&lt;/a&gt; Fix v1/v2 change stream resume token transition&lt;/p&gt;

&lt;p&gt;Change stream implementation assumes change events are totally ordered by event &apos;_id&apos;, which also serves as a resume token. In server versions prior to v7.0 the default resume token version is v1. Starting from v7.0 the default resume token version is v2, but the server still supports clients supplying v1 resume tokens (e.g., after server upgrade).&lt;/p&gt;

&lt;p&gt;The token version is a part of a token and all v1 tokens sort before v2 tokens. To ensure the correct event ordering, the server from v7.0 generates v1 tokens to be compared with the client&apos;s v1 token until the referred event is either located or surpassed.&lt;/p&gt;

&lt;p&gt;In this commit we fix the following issues:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;When resuming from the event within a transaction we need to consider &apos;txnOpIndex&apos;, because the whole transaction gets the same timestamp.&lt;/li&gt;
	&lt;li&gt;Splitting large events is only supported with v2 tokens. If a resume token is a high-watermark v1 token, the next event sharing the same timestamp will have token version v1. If this event is over 16MB, splitting it will fail because of the token version. To fix this, we convert the client&apos;s high-watermark v1 token to v2.&lt;br/&gt;
Branch: v7.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/0a9c07cfa5449fa21a84dd5730bff6427b52db0b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/0a9c07cfa5449fa21a84dd5730bff6427b52db0b&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="5851141" author="xgen-internal-githook" created="Fri, 3 Nov 2023 00:00:26 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Romans Kasperovics&apos;, &apos;email&apos;: &apos;romans.kasperovics@mongodb.com&apos;, &apos;username&apos;: &apos;romanskas&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-81295&quot; title=&quot;Cannot resume V2 changeStream pipelines with V1 resume tokens&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-81295&quot;&gt;&lt;del&gt;SERVER-81295&lt;/del&gt;&lt;/a&gt; Fix v1/v2 change stream resume token transition&lt;/p&gt;

&lt;p&gt;Change stream implementation assumes change events are totally ordered by event &apos;_id&apos;, which also serves as a resume token. In server versions prior to v7.0 the default resume token version is v1. Starting from v7.0 the default resume token version is v2, but the server still supports clients supplying v1 resume tokens (e.g., after server upgrade).&lt;/p&gt;

&lt;p&gt;The token version is a part of a token and all v1 tokens sort before v2 tokens. To ensure the correct event ordering, the server from v7.0 generates v1 tokens to be compared with the client&apos;s v1 token until the referred event is either located or surpassed.&lt;/p&gt;

&lt;p&gt;In this commit we fix the following issues:&lt;/p&gt;

&lt;p&gt;When resuming from the event within a transaction we need to consider &apos;txnOpIndex&apos;, because the whole transaction gets the same timestamp.&lt;br/&gt;
Splitting large events is only supported with v2 tokens. If a resume token is a high-watermark v1 token, the next event sharing the same timestamp will have token version v1. If this event is over 16MB, splitting it will fail because of the token version. To fix this, we convert the client&apos;s high-watermark v1 token to v2.&lt;br/&gt;
Branch: v7.1&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/7755281ad25f987d7cbc4e9feb5d09432796fe41&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/7755281ad25f987d7cbc4e9feb5d09432796fe41&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5827295" author="xgen-internal-githook" created="Sun, 29 Oct 2023 22:42:44 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Romans Kasperovics&apos;, &apos;email&apos;: &apos;romans.kasperovics@mongodb.com&apos;, &apos;username&apos;: &apos;romanskas&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-81295&quot; title=&quot;Cannot resume V2 changeStream pipelines with V1 resume tokens&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-81295&quot;&gt;&lt;del&gt;SERVER-81295&lt;/del&gt;&lt;/a&gt; Fix v1/v2 change stream resume token transition&lt;/p&gt;

&lt;p&gt;Change stream implementation assumes change events are totally&lt;br/&gt;
ordered by event &apos;_id&apos;, which also serves as a resume token.&lt;br/&gt;
In server versions prior to v7.0 the default resume token version&lt;br/&gt;
is v1. Starting from v7.0 the default resume token version is v2,&lt;br/&gt;
but the server still supports clients supplying v1 resume tokens&lt;br/&gt;
(e.g., after server upgrade).&lt;/p&gt;

&lt;p&gt;The token version is a part of a token and all v1 tokens sort before&lt;br/&gt;
v2 tokens. To ensure the correct event ordering, the server from v7.0&lt;br/&gt;
generates v1 tokens to be compared with the client&apos;s v1 token until&lt;br/&gt;
the referred event is either located or surpassed.&lt;/p&gt;

&lt;p&gt;In this commit we fix the following issues:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;When resuming from the event within a transaction we need to&lt;br/&gt;
consider &apos;txnOpIndex&apos;, because the whole transaction gets the same&lt;br/&gt;
timestamp.&lt;/li&gt;
	&lt;li&gt;Splitting large events is only supported with v2 tokens. If a&lt;br/&gt;
resume token is a high-watermark v1 token, the next event sharing&lt;br/&gt;
the same timestamp will have token version v1. If this event is&lt;br/&gt;
over 16MB, splitting it will fail because of the token version. To&lt;br/&gt;
fix this, we convert the client&apos;s high-watermark v1 token to v2.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/24bb8e2f5be1cf103f7e2c5da524186e738cab5d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/24bb8e2f5be1cf103f7e2c5da524186e738cab5d&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1644511">SERVER-55062</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.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_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="26243"><![CDATA[v7.1]]></customfieldvalue>
    <customfieldvalue key="25578"><![CDATA[v7.0]]></customfieldvalue>
    <customfieldvalue key="23470"><![CDATA[v6.0]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10011"><![CDATA[Minor Change]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[5006R00001wOBOSQA4, 5006R00001ve2NVQAY]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 21 Sep 2023 14:26:23 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 weeks, 6 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_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16941"><![CDATA[Not Needed]]></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>tyler.kaye@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 weeks, 6 days 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>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>romans.kasperovics@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i2rigv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i29go4:</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_22250" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Special Downgrade Instructions Required</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="23343"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="7251">QE 2023-10-02</customfieldvalue>
    <customfieldvalue id="7254">QE 2023-10-16</customfieldvalue>
    <customfieldvalue id="7255">QE 2023-10-30</customfieldvalue>
    <customfieldvalue id="7257">QE 2023-11-13</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|i2r4m7:</customfieldvalue>

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