<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:20:51 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-49789] Make tenant migration donor use a StreamableReplicaSetMonitor to monitor and send commands to the recipient</title>
                <link>https://jira.mongodb.org/browse/SERVER-49789</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The donor will receive the recipient&apos;s connection string in the donorStartMigration command and use it to send the recipientSyncData and recipientForgetMigration commands to the recipient primary.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Background on inter-replica set communication&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;To target a command to a remote replica set by read preference, a node can create a&#160; &lt;a href=&quot;https://github.com/mongodb/mongo/blob/11545c03ed7294b114613dfb168bc6bc42e99fe3/src/mongo/client/remote_command_targeter_rs.cpp#L48&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;RemoteCommandTargeterRS&lt;/a&gt; (see&#160;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/11545c03ed7294b114613dfb168bc6bc42e99fe3/src/mongo/client/remote_command_targeter_factory_impl.cpp#L56-L57&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;example&lt;/a&gt; of creating one from a connection string).&lt;/p&gt;

&lt;p&gt;The RemoteCommandTargeter constructor&#160;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/11545c03ed7294b114613dfb168bc6bc42e99fe3/src/mongo/client/remote_command_targeter_rs.cpp#L53&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;creates and registers&lt;/a&gt; a &lt;a href=&quot;https://github.com/mongodb/mongo/blob/045e804b3d95082ee54de055e38d142ee8b56953/src/mongo/client/replica_set_monitor.h#L53&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;ReplicaSetMonitor&lt;/a&gt; on the ReplicaSetMonitorManager, which &lt;a href=&quot;https://github.com/mongodb/mongo/blob/11545c03ed7294b114613dfb168bc6bc42e99fe3/src/mongo/client/replica_set_monitor_manager.cpp#L69-L70&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;is a decoration&lt;/a&gt; the ServiceContext. (A ReplicaSetMonitor should also be &lt;a href=&quot;https://github.com/mongodb/mongo/blob/11545c03ed7294b114613dfb168bc6bc42e99fe3/src/mongo/client/replica_set_monitor.cpp#L80-L86&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;removed&lt;/a&gt; from the ReplicaSetMonitorManager when it&apos;s no longer needed.)&lt;/p&gt;

&lt;p&gt;The RemoteCommandTargeter exposes&#160;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/11545c03ed7294b114613dfb168bc6bc42e99fe3/src/mongo/client/remote_command_targeter.h#L59-L81&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;methods&lt;/a&gt; to find a host in the replica set matching a particular read preference (these methods &lt;a href=&quot;https://github.com/mongodb/mongo/blob/11545c03ed7294b114613dfb168bc6bc42e99fe3/src/mongo/client/remote_command_targeter_rs.cpp#L67-L99&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;use&lt;/a&gt; the ReplicaSetMonitor under the hood).&lt;/p&gt;

&lt;p&gt;Code can use the RemoteCommandTargeter to find a host, then&#160;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/11545c03ed7294b114613dfb168bc6bc42e99fe3/src/mongo/db/s/config/sharding_catalog_manager_shard_operations.cpp#L140-L198&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;run a command&lt;/a&gt; against that host over a TaskExecutor.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;This ticket&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;This ticket is to have the donor send some command (since recipientSyncData doesn&apos;t exist yet) to the recipient&apos;s primary over the&#160;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/11545c03ed7294b114613dfb168bc6bc42e99fe3/src/mongo/db/repl/migrating_tenant_donor_util.h#L49&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;tenant migration executor&lt;/a&gt; and verify from a jstest that the command was sent. One option is to send a setFCV command, as is done &lt;a href=&quot;https://github.com/mongodb/mongo/blob/11545c03ed7294b114613dfb168bc6bc42e99fe3/src/mongo/db/s/config/sharding_catalog_manager_shard_operations.cpp#L665-L672&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;, and verify the recipient&apos;s FCV changed in the test. Another option is to send an insert and verify the document gets inserted.&lt;/p&gt;

&lt;p&gt;Note that there are currently two ReplicaSetMonitor implementations, and ReplicaSetMonitorManager&#160;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/11545c03ed7294b114613dfb168bc6bc42e99fe3/src/mongo/client/replica_set_monitor_manager.cpp#L191-L198&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;creates&lt;/a&gt; StreamableReplicaSetMonitors &lt;a href=&quot;https://github.com/mongodb/mongo/blob/11545c03ed7294b114613dfb168bc6bc42e99fe3/src/mongo/client/replica_set_monitor_server_parameters.cpp#L38&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;by default&lt;/a&gt;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1416291">SERVER-49789</key>
            <summary>Make tenant migration donor use a StreamableReplicaSetMonitor to monitor and send commands to the recipient</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="luis.osta@mongodb.com">Luis Osta</assignee>
                                    <reporter username="esha.maharishi@mongodb.com">Esha Maharishi</reporter>
                        <labels>
                            <label>pm-1791_milestone-A</label>
                    </labels>
                <created>Tue, 21 Jul 2020 21:43:51 +0000</created>
                <updated>Sun, 29 Oct 2023 22:05:26 +0000</updated>
                            <resolved>Tue, 4 Aug 2020 18:14:24 +0000</resolved>
                                                    <fixVersion>4.7.0</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="3320278" author="xgen-internal-githook" created="Tue, 4 Aug 2020 18:07:23 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Luis Osta&apos;, &apos;email&apos;: &apos;luis.osta@mongodb.com&apos;, &apos;username&apos;: &apos;LuisOsta&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-49789&quot; title=&quot;Make tenant migration donor use a StreamableReplicaSetMonitor to monitor and send commands to the recipient&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-49789&quot;&gt;&lt;del&gt;SERVER-49789&lt;/del&gt;&lt;/a&gt; Make tenant migration donor use a StreamableReplicaSetMonitor to monitor and send commands to the recipient&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/0e3bd22e59a51dcdfc7fdac6d96dcda22e2e6647&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/0e3bd22e59a51dcdfc7fdac6d96dcda22e2e6647&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1507395">SERVER-51440</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </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_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.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>Fri, 31 Jul 2020 16:42:30 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 27 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-1791</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>
                            3 years, 27 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>esha.maharishi@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>luis.osta@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hxvzdz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hxiudz:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="4135">Sharding 2020-07-27</customfieldvalue>
    <customfieldvalue id="4136">Sharding 2020-08-10</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|hxvlnb:</customfieldvalue>

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