<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:13:46 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-69551] Shard Merge recipient should retry opening the backup cursor if backupCursorCheckpointTimestamp is &lt; startMigrationDonorTimestamp</title>
                <link>https://jira.mongodb.org/browse/SERVER-69551</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Currently, there are ways we make best effort to ensure the backup cursor opened satisfies backupCursorCheckpointTimestamp &amp;gt;= startMigrationDonorTimestamp (see &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-69364&quot; title=&quot;Shard Merge should only run in read preference primary&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-69364&quot;&gt;&lt;del&gt;SERVER-69364&lt;/del&gt;&lt;/a&gt; &amp;amp; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-65084&quot; title=&quot;Ensure backup cursor is opened at time &amp;gt; startMigrationDonorTimestamp&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-65084&quot;&gt;&lt;del&gt;SERVER-65084&lt;/del&gt;&lt;/a&gt;). But, there is another scenario where we transiently may not satisfy backupCursorCheckpointTimestamp &amp;gt;= startMigrationDonorTimestamp. For such transient cases, we shouldn&apos;t fail the entire migration, instead we should close the backup cursor retry opening a new backup cursor until we satisfy backupCursorCheckpointTimestamp &amp;gt;= startMigrationDonorTimestamp. And the retry step should be able to be interrupted by stepdown, shutdown and forgetMigration.&lt;/p&gt;

&lt;p&gt;Transient failure scenario:&lt;br/&gt;
1) Donor primary, N1,  sends recipientSyncData cmd (Before sending recipient sync data cmd, we &lt;a href=&quot;https://github.com/10gen/mongo/blob/bd8a8d4d880577302c777ff961f359b03435126a/src/mongo/db/repl/tenant_migration_donor_service.cpp#L1240&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;ensure&lt;/a&gt; that any new backup cursor opened on that node will have checkpoint Ts &amp;gt;= startMigrationDonorTimestamp).&lt;br/&gt;
2) Recipient starts the migration process. But before establishing the &lt;a href=&quot;https://github.com/10gen/mongo/blob/bd8a8d4d880577302c777ff961f359b03435126a/src/mongo/db/repl/tenant_migration_recipient_service.cpp#L2814&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;connection to donor primary&lt;/a&gt;, N1 fails over and new primary on Donor (N2) is elected.&lt;br/&gt;
3) N2&apos;s POS wait for the lastopTime to be majority committed before starting the tenant migration donor instances on that node.&lt;br/&gt;
4) Recipient tries to establish connection to donor primary (N2) as the read preference for shard merge is &quot;primaryOnly&quot;&lt;br/&gt;
5) So, now there are chances when the recipient opens backup cursor on donor primary(N2), we may not satisfy the checkpoint Ts &amp;gt;= startMigrationDonorTimestamp for a brief period until the donor instance  completes &lt;a href=&quot;https://github.com/10gen/mongo/blob/bd8a8d4d880577302c777ff961f359b03435126a/src/mongo/db/repl/tenant_migration_donor_service.cpp#L124&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this&lt;/a&gt; step. After &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-69299&quot; title=&quot;Shard Merge to enforce backupCursorCheckpointTimestamp to be superior or equal to the startMigrationDonorTimestamp&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-69299&quot;&gt;&lt;del&gt;SERVER-69299&lt;/del&gt;&lt;/a&gt;, we throw error.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2132648">SERVER-69551</key>
            <summary>Shard Merge recipient should retry opening the backup cursor if backupCursorCheckpointTimestamp is &lt; startMigrationDonorTimestamp</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="13201">Fixed</resolution>
                                        <assignee username="mathis.bessa@mongodb.com">Mathis Bessa</assignee>
                                    <reporter username="suganthi.mani@mongodb.com">Suganthi Mani</reporter>
                        <labels>
                    </labels>
                <created>Fri, 9 Sep 2022 03:47:23 +0000</created>
                <updated>Sun, 29 Oct 2023 21:33:27 +0000</updated>
                            <resolved>Tue, 1 Nov 2022 19:42:42 +0000</resolved>
                                                    <fixVersion>6.2.0-rc0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="4945703" author="xgen-internal-githook" created="Tue, 1 Nov 2022 19:42:34 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;mathisbessamdb&apos;, &apos;email&apos;: &apos;mathis.bessa@mongodb.com&apos;, &apos;username&apos;: &apos;mathisbessamdb&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-69551&quot; title=&quot;Shard Merge recipient should retry opening the backup cursor if backupCursorCheckpointTimestamp is &amp;lt; startMigrationDonorTimestamp&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-69551&quot;&gt;&lt;del&gt;SERVER-69551&lt;/del&gt;&lt;/a&gt; Shard Merge recipient should retry opening the backup cursor if backupCursorCheckpointTimestamp is &amp;lt; startMigrationDonorTimestamp&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/6f8af2868adc224f762555b8132992cd421ee6fb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/6f8af2868adc224f762555b8132992cd421ee6fb&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4901142" author="xgen-internal-githook" created="Thu, 13 Oct 2022 15:09:46 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;mathisbessamdb&apos;, &apos;email&apos;: &apos;mathis.bessa@mongodb.com&apos;, &apos;username&apos;: &apos;mathisbessamdb&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-69551&quot; title=&quot;Shard Merge recipient should retry opening the backup cursor if backupCursorCheckpointTimestamp is &amp;lt; startMigrationDonorTimestamp&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-69551&quot;&gt;&lt;del&gt;SERVER-69551&lt;/del&gt;&lt;/a&gt; Shard Merge recipient should retry opening the backup cursor if backupCursorCheckpointTimestamp is &amp;lt; startMigrationDonorTimestamp&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit 14c95154f87f06dc36471591b1006ccf9eadb45c.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/3ac37f174e6ab1df054ec5425d17f7a723526142&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/3ac37f174e6ab1df054ec5425d17f7a723526142&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4891601" author="xgen-internal-githook" created="Mon, 10 Oct 2022 17:49:05 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;mathisbessamdb&apos;, &apos;email&apos;: &apos;mathis.bessa@mongodb.com&apos;, &apos;username&apos;: &apos;mathisbessamdb&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-69551&quot; title=&quot;Shard Merge recipient should retry opening the backup cursor if backupCursorCheckpointTimestamp is &amp;lt; startMigrationDonorTimestamp&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-69551&quot;&gt;&lt;del&gt;SERVER-69551&lt;/del&gt;&lt;/a&gt; Shard Merge recipient should retry opening the backup cursor if backupCursorCheckpointTimestamp is &amp;lt; startMigrationDonorTimestamp&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/14c95154f87f06dc36471591b1006ccf9eadb45c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/14c95154f87f06dc36471591b1006ccf9eadb45c&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                                        </outwardlinks>
                                                        </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_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 3 Oct 2022 16:16:02 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 14 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_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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-2353</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>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, 14 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>155.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>mathis.bessa@mongodb.com</customfieldvalue>
            <customfieldvalue>suganthi.mani@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i19jlz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i0s9vs:</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="6467">Server Serverless 2022-09-19</customfieldvalue>
    <customfieldvalue id="6468">Server Serverless 2022-10-03</customfieldvalue>
    <customfieldvalue id="6597">Server Serverless 2022-10-17</customfieldvalue>
    <customfieldvalue id="6598">Server Serverless 2022-10-31</customfieldvalue>
    <customfieldvalue id="6599">Server Serverless 2022-11-14</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|i195rb:</customfieldvalue>

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