<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:19: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-71461] Must preserve the contract that &quot;R updates the state doc as kDone and set the expiryAt field only on receiving RecipientForgetMigrationCmd from Donor &quot;</title>
                <link>https://jira.mongodb.org/browse/SERVER-71461</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;&lt;b&gt;UPDATE:&lt;/b&gt; The assumption mentioned &lt;a href=&quot;https://github.com/10gen/mongo/blob/d0a7b4e6b3c4ae2d356ce23996ecf3f7ed56ad9b/src/mongo/db/repl/tenant_migration_donor_service.cpp#L1531-L1532&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;&#160; is slightly dangerous. In future, if recipient throws `ConflictingServerlessOperation` error after the state doc is persisted, donor could miss sending the recipientForgetMigration which is results in failure to garbage collect state document forever.&lt;/p&gt;

&lt;p&gt;&#160;I would propose to remove this premature optimization on donor side. &lt;br/&gt;
========================&lt;/p&gt;

&lt;p&gt;As part of&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-65315&quot; title=&quot;Prevent split concurrent with tenant migration or merge&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-65315&quot;&gt;&lt;del&gt;SERVER-65315&lt;/del&gt;&lt;/a&gt;, we have done some changes to recipient Service.&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;The contract is that only on receiving RecipientForgetMigrationCmd from Donor, we would update the recipient state doc as kDone and set the expiryAt field. But, after&#160;&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-65315&quot; title=&quot;Prevent split concurrent with tenant migration or merge&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-65315&quot;&gt;&lt;del&gt;SERVER-65315&lt;/del&gt;&lt;/a&gt;,&#160;&lt;a href=&quot;https://github.com/10gen/mongo/blob/397f5973dce8b4ea065e829eae7d14054187f6bf/src/mongo/db/repl/tenant_migration_recipient_service.cpp#L3032&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;it seems the contract is broken&lt;/a&gt;.&#160;&lt;/li&gt;
	&lt;li&gt;&#160;Reading &lt;a href=&quot;https://github.com/10gen/mongo/blob/397f5973dce8b4ea065e829eae7d14054187f6bf/src/mongo/db/repl/tenant_migration_recipient_service.cpp#L3090-L3096&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this&lt;/a&gt; piece of code, it gives indication that recipient can inform donor that it has garbage collected without doing it. Technically it&apos;s not possible as we can&apos;t get error code after &lt;a href=&quot;https://github.com/10gen/mongo/blob/397f5973dce8b4ea065e829eae7d14054187f6bf/src/mongo/db/repl/tenant_migration_recipient_service.cpp#L3038&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this&lt;/a&gt; point, but it not really clear to readers. So, I propose to remove &lt;a href=&quot;https://github.com/10gen/mongo/blob/397f5973dce8b4ea065e829eae7d14054187f6bf/src/mongo/db/repl/tenant_migration_recipient_service.cpp#L3090-L3096&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this&lt;/a&gt; piece of code for more readers clarity.&lt;/li&gt;
&lt;/ol&gt;

</description>
                <environment></environment>
        <key id="2189048">SERVER-71461</key>
            <summary>Must preserve the contract that &quot;R updates the state doc as kDone and set the expiryAt field only on receiving RecipientForgetMigrationCmd from Donor &quot;</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="1" iconUrl="https://jira.mongodb.org/images/icons/statuses/open.png" description="">Open</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="suganthi.mani@mongodb.com">Suganthi Mani</assignee>
                                    <reporter username="suganthi.mani@mongodb.com">Suganthi Mani</reporter>
                        <labels>
                    </labels>
                <created>Thu, 17 Nov 2022 19:40:01 +0000</created>
                <updated>Mon, 27 Mar 2023 15:13:09 +0000</updated>
                                                                                                <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="5267912" author="steven.vannelli" created="Mon, 13 Mar 2023 15:28:25 +0000"  >&lt;p&gt;Leaving this in triage until &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=suganthi.mani%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;suganthi.mani@mongodb.com&quot;&gt;suganthi.mani@mongodb.com&lt;/a&gt; and &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=didier.nadeau%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;didier.nadeau@mongodb.com&quot;&gt;didier.nadeau@mongodb.com&lt;/a&gt; sync up on how we should proceed.&#160;&lt;/p&gt;</comment>
                            <comment id="4998167" author="steven.vannelli" created="Mon, 21 Nov 2022 19:14:48 +0000"  >&lt;p&gt;Putting this toward the top of the backlog until Shard Merge Milestone 3 design is approved. We can start this after that. &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <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>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25131"><![CDATA[Serverless]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 21 Nov 2022 19:14:48 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        47 weeks, 2 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_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>suganthi.mani@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            47 weeks, 2 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>steven.vannelli@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|i1j2hr:</customfieldvalue>

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

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