<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:09: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-25673] Remove ChunkManager use in the MigrationManager</title>
                <link>https://jira.mongodb.org/browse/SERVER-25673</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;We load+refresh the ChunkManager when the Balancer finds chunks to balance. And then we do it again in the MigrationManager to get collection version information to send with the moveChunk command&lt;/p&gt;

&lt;p&gt;1) &lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Add a chunkVersion and collectionVersion field in MigrateInfo.&lt;/li&gt;
	&lt;li&gt;The balancer chunk selection policy represents chunks it selects to be balanced as MigrateInfo objects, which are sent to the Balancer to schedule.&lt;/li&gt;
	&lt;li&gt;Then update MigrationType to serialize/parse for chunkVersion and collectionVersion, so config.migrations documents include them and MigrationManager recovery can build correct MigrateInfo objects to reschedule. (go look at type_migration.h/cpp on github for this &amp;#8211; the class was checked in with version serialization/parsing, but it had to be removed later, so the code&apos;s already there in the file histories. Same for scoped_migration_request.h/cpp).&lt;/li&gt;
	&lt;li&gt;Then, instead of loading up the ChunkManager again, just get the collection version from the MigrateInfo that&apos;s used to schedule a specific migration.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;2)&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Pull out the ChunkManager code from the MigrationManager, as it is no longer needed if the MigrateInfo has both the chunk and collection versions.&lt;/li&gt;
	&lt;li&gt;This looks like it will require some changes to manual moveChunk commands coming through from the mongos. Either the Balancer::rebalanceSingleChunk and Balancer::moveSingleChunk must load the ChunkManager now, or (I think better) the mongos should send chunkVersion and collectionVersion in the _configsvrMoveChunk command through to these balancer functions.&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="309852">SERVER-25673</key>
            <summary>Remove ChunkManager use in the MigrationManager</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="9">Done</resolution>
                                        <assignee username="dianna.hohensee@mongodb.com">Dianna Hohensee</assignee>
                                    <reporter username="dianna.hohensee@mongodb.com">Dianna Hohensee</reporter>
                        <labels>
                            <label>ds-neweng-2016</label>
                            <label>neweng</label>
                    </labels>
                <created>Wed, 17 Aug 2016 21:38:28 +0000</created>
                <updated>Wed, 5 Apr 2017 11:43:36 +0000</updated>
                            <resolved>Tue, 17 Jan 2017 20:14:50 +0000</resolved>
                                                    <fixVersion>3.5.2</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="1478412" author="dianna.hohensee" created="Tue, 17 Jan 2017 20:12:57 +0000"  >&lt;p&gt;Recommitted after removing shard_does_not_hang_on_bad_config_server.js as part of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-27625&quot; title=&quot;Remove dead ANSA and setShardVersion code&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-27625&quot;&gt;&lt;del&gt;SERVER-27625&lt;/del&gt;&lt;/a&gt;, which is in progress. The test is no longer significant because shard servers are started up sharding aware now and do not become sharding aware from commands. So the test was deleted, rather than fixing it for this commit and then deleting it shortly with the main &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-27625&quot; title=&quot;Remove dead ANSA and setShardVersion code&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-27625&quot;&gt;&lt;del&gt;SERVER-27625&lt;/del&gt;&lt;/a&gt; commit.&lt;/p&gt;</comment>
                            <comment id="1478354" author="xgen-internal-githook" created="Tue, 17 Jan 2017 19:40:01 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;DiannaHohensee&apos;, u&apos;name&apos;: u&apos;Dianna Hohensee&apos;, u&apos;email&apos;: u&apos;dianna.hohensee@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-25673&quot; title=&quot;Remove ChunkManager use in the MigrationManager&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-25673&quot;&gt;&lt;del&gt;SERVER-25673&lt;/del&gt;&lt;/a&gt; Remove redundant ChunkManager access in MigrationManager&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/fdec6ed545c0045646c7cca33eb4094385bc9429&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/fdec6ed545c0045646c7cca33eb4094385bc9429&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1475130" author="xgen-internal-githook" created="Wed, 11 Jan 2017 23:17:12 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;RedBeard0531&apos;, u&apos;name&apos;: u&apos;Mathias Stearn&apos;, u&apos;email&apos;: u&apos;mathias@10gen.com&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-25673&quot; title=&quot;Remove ChunkManager use in the MigrationManager&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-25673&quot;&gt;&lt;del&gt;SERVER-25673&lt;/del&gt;&lt;/a&gt; Remove redundant ChunkManager access in MigrationManager&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit d779870e5d4744cbcc402cba2a77f8d892bed0ef.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c920eb38186c6122fed326ba341e05d7e02ffe37&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c920eb38186c6122fed326ba341e05d7e02ffe37&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1475121" author="redbeard0531" created="Wed, 11 Jan 2017 23:03:01 +0000"  >&lt;p&gt;Broke noPassthrough/shard_does_not_hang_on_bad_config_server.js: &lt;a href=&quot;https://evergreen.mongodb.com/task/mongodb_mongo_master_enterprise_rhel_62_64_bit_noPassthrough_d779870e5d4744cbcc402cba2a77f8d892bed0ef_17_01_11_21_52_35&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://evergreen.mongodb.com/task/mongodb_mongo_master_enterprise_rhel_62_64_bit_noPassthrough_d779870e5d4744cbcc402cba2a77f8d892bed0ef_17_01_11_21_52_35&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1475057" author="xgen-internal-githook" created="Wed, 11 Jan 2017 21:50:15 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;DiannaHohensee&apos;, u&apos;name&apos;: u&apos;Dianna Hohensee&apos;, u&apos;email&apos;: u&apos;dianna.hohensee@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-25673&quot; title=&quot;Remove ChunkManager use in the MigrationManager&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-25673&quot;&gt;&lt;del&gt;SERVER-25673&lt;/del&gt;&lt;/a&gt; Remove redundant ChunkManager access in MigrationManager&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/d779870e5d4744cbcc402cba2a77f8d892bed0ef&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/d779870e5d4744cbcc402cba2a77f8d892bed0ef&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1471664" author="dianna.hohensee" created="Fri, 6 Jan 2017 22:17:42 +0000"  >&lt;p&gt;As tangential cleanup: &lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;will remove &apos;shardVersion&apos; field sent in shard moveChunk &amp;#8211; we only use the epoch, and we send an &apos;epoch&apos; field already.&lt;/li&gt;
	&lt;li&gt;will remove &apos;chunkVersion&apos;, which isn&apos;t needed. moveChunk already includes a &apos;shardVersion&apos; field, from which the epoch can be obtained. &amp;#8211; this depends on &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-27510&quot; title=&quot;Compare only epochs instead of full chunk versions in CollectionMetadata::checkChunkIsValid()&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-27510&quot;&gt;&lt;del&gt;SERVER-27510&lt;/del&gt;&lt;/a&gt;, to change the moveChunk command check to epoch only, rather than specific ChunkVersion.&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="1471598" author="dianna.hohensee" created="Fri, 6 Jan 2017 21:21:58 +0000"  >&lt;p&gt;Already incidentally completed since this was created:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;MigrateInfo has ChunkVersion&lt;/li&gt;
	&lt;li&gt;The balancer chunk selection policy returns MigrateInfo objects.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Still outstanding:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;MigrateInfo must include the chunk&apos;s shard&apos;s expected collectionVersion (currently passed in &apos;shardVersion&apos; field of moveChunk). This can come from the balancer chunk selection policy when it accesses the ChunkManager anyway.&lt;/li&gt;
	&lt;li&gt;MigrationManager should use MigrateInfo.version (ChunkVersion), rather than getting the chunk from ChunkManager and then getting the version from that Chunk object.&lt;/li&gt;
	&lt;li&gt;Clean up manual moveChunk commands. Mongos does not need to send the chunk&apos;s ChunkVersion or expected shardVersion. The config server will acquire this information, given the chunk range.&lt;/li&gt;
&lt;/ul&gt;
</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="340726">SERVER-27510</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="344423">SERVER-27632</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="307931">SERVER-25527</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>7.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>Wed, 11 Jan 2017 21:50:15 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        7 years, 4 weeks, 1 day ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<s><a href='https://jira.mongodb.org/browse/SERVER-27510'>SERVER-27510</a></s>]]></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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            7 years, 4 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>dianna.hohensee@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>mathias@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrjynj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsotzz:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1316">Sharding 2017-01-02</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|hsen8v:</customfieldvalue>

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