<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:17:29 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-70913] Investigate changes needed to ShardSplit code in order to use TenantId/DatabaseName objects</title>
                <link>https://jira.mongodb.org/browse/SERVER-70913</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Currently, ShardSplit passes around tenantIds and dbNames as strings. This ticket is to investigate where we&apos;ll need to make changes and track all of these changes (i.e. the commitShardSplit command, state doc, access blockers, inject_tenant_prefix.js override), and then propose a plan for how we should approach making these changes.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2168855">SERVER-70913</key>
            <summary>Investigate changes needed to ShardSplit code in order to use TenantId/DatabaseName objects</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="janna.golden@mongodb.com">Janna Golden</reporter>
                        <labels>
                    </labels>
                <created>Thu, 27 Oct 2022 18:38:52 +0000</created>
                <updated>Sun, 29 Oct 2023 21:31:22 +0000</updated>
                            <resolved>Tue, 8 Nov 2022 21:12:34 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4964914" author="JIRAUSER1262621" created="Tue, 8 Nov 2022 21:12:35 +0000"  >&lt;p&gt;There was no code change for this ticket.&lt;/p&gt;</comment>
                            <comment id="4964058" author="JIRAUSER1262621" created="Tue, 8 Nov 2022 17:06:11 +0000"  >&lt;p&gt;As part of the NTDI changes to affect the Shard Split we should make the following changes in any order (and / or in parallel) :&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Change the Shard Split Commands (&lt;a href=&quot;https://github.com/10gen/mongo/blob/master/src/mongo/db/serverless/shard_split_commands.cpp&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;commitShardSplit&lt;/a&gt;) to use a vector&amp;lt;tenant_id&amp;gt; instead of &lt;a href=&quot;https://github.com/10gen/mongo/blob/ccffa2062f09352f6c064e64090bdda42b829e73/src/mongo/db/serverless/shard_split_commands.idl#L70&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;vector&amp;lt;string&amp;gt;&lt;/a&gt;. Part of the change could include a couple helper methods to convert a vector&amp;lt;tenant_id&amp;gt; to a vector&amp;lt;string&amp;gt; (StringData) and vector&amp;lt;string&amp;gt; to a vector&amp;lt;tenant_id&amp;gt;. We should also change the &lt;a href=&quot;https://github.com/10gen/mongo/blob/f906c9b49d589616a9bc8147cf62e6092fed600b/jstests/serverless/shard_split_basic_test.js#L11&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;javascript&lt;/a&gt; code to support the change in the parameter. Also making necessary changes at the &lt;a href=&quot;https://github.com/10gen/mongo/blob/master/jstests/serverless/libs/shard_split_test.js&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;shard_split_test&lt;/a&gt; api. We should also make changes to the &lt;a href=&quot;https://github.com/10gen/mongo/blob/67b565edf1a1ae3157a427ea0488037deb479c03/buildscripts/resmokelib/testing/hooks/shard_split.py#L413&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;shard split passthrough&lt;/a&gt; to also support the proper object if necessary.&lt;/li&gt;
	&lt;li&gt;Change the Shard Split State Document to use a vector&amp;lt;tenant_id&amp;gt; instead of &lt;a href=&quot;https://github.com/10gen/mongo/blob/master/src/mongo/db/serverless/shard_split_state_machine.idl#L72&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;vector&amp;lt;string&amp;gt;&lt;/a&gt;. This should contain the changes for the &lt;a href=&quot;https://github.com/10gen/mongo/blob/master/src/mongo/db/serverless/shard_split_donor_service.cpp&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;shard_split_donor_service&lt;/a&gt;, &lt;a href=&quot;https://github.com/10gen/mongo/blob/master/src/mongo/db/serverless/shard_split_donor_op_observer.cpp&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;shard_split_donor_op_observer&lt;/a&gt;. There might be some conflicts with the tenant_migration_access_blocker_registry which should be addressed in a different ticket, in the meantime we can have a temporary conversion from tenant_id to StringData. We should also make changes to all the &lt;a href=&quot;https://github.com/10gen/mongo/blob/master/src/mongo/db/serverless/shard_split_donor_service_test.cpp#L404&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;unit tests&lt;/a&gt; and jstests if necessary (we do not seem to access the tenantIds from the state doc in our jstests).&lt;/li&gt;
	&lt;li&gt;Change the &lt;a href=&quot;https://github.com/10gen/mongo/blob/master/src/mongo/db/repl/tenant_migration_access_blocker_util.cpp#L77&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;tenant_migration_access_blocker_util&lt;/a&gt; and the &lt;a href=&quot;https://github.com/10gen/mongo/blob/master/src/mongo/db/repl/tenant_migration_access_blocker_registry.h#L121&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;tenant_migration_access_blocker_registry&lt;/a&gt; to use a vector&amp;lt;tenant_id&amp;gt; instead of the vector&amp;lt;string&amp;gt; and all other places where we use StringData instead of a TenantId object. The &lt;a href=&quot;https://github.com/10gen/mongo/blob/master/src/mongo/db/repl/tenant_migration_access_blocker_util_test.cpp#L39&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;unit tests&lt;/a&gt; should also be changed. In case of this ticket done asynchronously we should have support for both TenantId object and StringData until the other tickets are done. We can either mark the change blocked + depend on; or we can create a TODO ticket to delete the old api still using StringData over TenantId.&lt;/li&gt;
	&lt;li&gt;Changes to the &lt;a href=&quot;https://github.com/10gen/mongo/blob/master/src/mongo/db/index_builds_coordinator.cpp#L803&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;index_build_coordinator&lt;/a&gt; will be necessary. It seems the work within has already been done since we are using the TenantId object however we do not use it in the header and this change should address that.&lt;/li&gt;
&lt;/ul&gt;
</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="2178513">SERVER-71179</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2178583">SERVER-71184</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2178587">SERVER-71186</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2178589">SERVER-71187</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>1.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, 8 Nov 2022 17:06:11 +0000</customfieldvalue>

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

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

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