<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:16:07 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-70415] Attach $tenant to dbStats command during initial sync</title>
                <link>https://jira.mongodb.org/browse/SERVER-70415</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When featureFlagRequireTenantID is enabled, we must send $tenant when sending dbStats for each database that we&apos;re cloning. The AllDatabasesCloner will send listDatabasesForAllTenants, but currently we&apos;ll just take the name portion of this command to put in the _databases map. &lt;/p&gt;

&lt;p&gt;As a part of this ticket, change &lt;a href=&quot;https://github.com/mongodb/mongo/blob/14c95154f87f06dc36471591b1006ccf9eadb45c/src/mongo/db/repl/all_database_cloner.h#L142&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;_databases&lt;/a&gt; to be a list of DatabaseName objects. We&apos;ll need to correctly &lt;a href=&quot;https://github.com/mongodb/mongo/blob/14c95154f87f06dc36471591b1006ccf9eadb45c/src/mongo/db/repl/all_database_cloner.cpp#L155&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;construct the DatabaseName object&lt;/a&gt; to put in the _databases vector - if &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-70053&quot; title=&quot;Serialize DatabaseName correctly when in multitenancy mode&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-70053&quot;&gt;&lt;del&gt;SERVER-70053&lt;/del&gt;&lt;/a&gt; is completed, we can use the deserializer added in this ticket. If not, we can use the NamespaceStringUtil::deserializer for now and just grab the dbName from it, then leave a TODO to change to this in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-70053&quot; title=&quot;Serialize DatabaseName correctly when in multitenancy mode&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-70053&quot;&gt;&lt;del&gt;SERVER-70053&lt;/del&gt;&lt;/a&gt;. Regardless, we&apos;ll need to grab the tenantId from the tenantId field in the listDatabasesForAllTenants response to construct it.&lt;/p&gt;

&lt;p&gt;Then, pass the tenantId to the dbStats command by sending $tenant in the &lt;a href=&quot;https://github.com/mongodb/mongo/blob/14c95154f87f06dc36471591b1006ccf9eadb45c/src/mongo/db/repl/all_database_cloner.cpp#L185&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;dbStats command body&lt;/a&gt;. &lt;/p&gt;

&lt;p&gt;We&apos;ll need to call toStringWithTenantId() on the dbName object in a few places where we construct/interact with DatabaseCloner objects because we haven&apos;t yet changed the DatabaseCloner to use a DatabaseName object (i.e. &lt;a href=&quot;https://github.com/mongodb/mongo/blob/14c95154f87f06dc36471591b1006ccf9eadb45c/src/mongo/db/repl/all_database_cloner.cpp#L182&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt; and &lt;a href=&quot;https://github.com/mongodb/mongo/blob/14c95154f87f06dc36471591b1006ccf9eadb45c/src/mongo/db/repl/all_database_cloner.cpp#L206&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;here&lt;/a&gt;, and likely a few other places in AllDatabaseCloner).&lt;/p&gt;

&lt;p&gt;Let&apos;s also add a unit test similar to &lt;a href=&quot;https://github.com/mongodb/mongo/blob/9d5bb60d991c246700db2dc1d619b7d72dcaf7e4/src/mongo/db/repl/all_database_cloner_test.cpp#L455&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;this one&lt;/a&gt; to check that this works when multitenancySupport and featureFlagRequireTenantID are enabled. Also, let&apos;s add tests with our flags that check that admin is still first, and local is removed properly like &lt;a href=&quot;https://github.com/mongodb/mongo/blob/9d5bb60d991c246700db2dc1d619b7d72dcaf7e4/src/mongo/db/repl/all_database_cloner_test.cpp#L407-L453&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;these two&lt;/a&gt; - currently, we don&apos;t use the system tenantId yet, but we will eventually and so it will be good to check that we still sort/filter correctly.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2155794">SERVER-70415</key>
            <summary>Attach $tenant to dbStats command during initial sync</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="janna.golden@mongodb.com">Janna Golden</assignee>
                                    <reporter username="janna.golden@mongodb.com">Janna Golden</reporter>
                        <labels>
                    </labels>
                <created>Mon, 10 Oct 2022 18:36:01 +0000</created>
                <updated>Sun, 29 Oct 2023 21:32:06 +0000</updated>
                            <resolved>Tue, 15 Nov 2022 19:17:24 +0000</resolved>
                                                    <fixVersion>6.2.0-rc0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4984512" author="xgen-internal-githook" created="Tue, 15 Nov 2022 19:13:47 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;jannaerin&apos;, &apos;email&apos;: &apos;golden.janna@gmail.com&apos;, &apos;username&apos;: &apos;jannaerin&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-70415&quot; title=&quot;Attach $tenant to dbStats command during initial sync&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-70415&quot;&gt;&lt;del&gt;SERVER-70415&lt;/del&gt;&lt;/a&gt; Attach tenantId to dbStats during initial sync&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/919b31026d9d3c629bfd5f29556e3a532395dc62&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/919b31026d9d3c629bfd5f29556e3a532395dc62&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4984511" author="xgen-internal-githook" created="Tue, 15 Nov 2022 19:13:43 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;jannaerin&apos;, &apos;email&apos;: &apos;golden.janna@gmail.com&apos;, &apos;username&apos;: &apos;jannaerin&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-70415&quot; title=&quot;Attach $tenant to dbStats command during initial sync&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-70415&quot;&gt;&lt;del&gt;SERVER-70415&lt;/del&gt;&lt;/a&gt; Attach tenantId to dbStats command during initial sync&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/mongo-enterprise-modules/commit/a661ecf7ee48c3be30842722b548370e9467bc2d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/mongo-enterprise-modules/commit/a661ecf7ee48c3be30842722b548370e9467bc2d&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="2155987">SERVER-70430</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>2.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_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>Tue, 11 Oct 2022 18:18:17 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 12 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-2346</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, 12 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>janna.golden@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i1di4v:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i0w6bc:</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="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>
    <customfieldvalue id="6650">Server Serverless 2022-11-28</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|i1d4a7:</customfieldvalue>

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