<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:57:09 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-63203] Chunk splitter never splits if more than 8192 split points are found</title>
                <link>https://jira.mongodb.org/browse/SERVER-63203</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When splitting a chunk, if the shard keys are sufficiently small and the number of documents is really high, it may happen the following:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Chunk splitter &lt;a href=&quot;https://github.com/mongodb/mongo/blob/cb6654f0251852820a0c4af4901f31fe21597377/src/mongo/db/s/chunk_splitter.cpp#L346-L351&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;invokes autoSplitVector&lt;/a&gt; (or &lt;tt&gt;splitVector&lt;/tt&gt;, in older versions), getting more than 8192 split points.&lt;/li&gt;
	&lt;li&gt;The split points are &lt;a href=&quot;https://github.com/mongodb/mongo/blob/cb6654f0251852820a0c4af4901f31fe21597377/src/mongo/db/s/chunk_splitter.cpp#L396-L402&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;passed to splitChunkAtMultiplePoints&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/blob/cb6654f0251852820a0c4af4901f31fe21597377/src/mongo/db/s/chunk_splitter.cpp#L92-L96&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;This assert&lt;/a&gt; is triggered&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;As a result, huge chunks will never be split, unless some smaller chunk is manually created.&lt;/p&gt;

&lt;p&gt;This problem can also impact &lt;tt&gt;shardCollection:&lt;/tt&gt; when sharding an existing non-empty collection in presence of zones for such collection, the &lt;a href=&quot;https://github.com/mongodb/mongo/blob/d60f1bfaeebda0f48cbd5caa31e2047ce22ca0b6/src/mongo/db/s/config/initial_split_policy.cpp#L306&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;SingleChunkOnPrimarySplitPolicy&lt;/a&gt; is applied. There will only be one gigantic chunk on the primary shard that is then expected to be split by the chunk splitter.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1975685">SERVER-63203</key>
            <summary>Chunk splitter never splits if more than 8192 split points are found</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="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="paolo.polato@mongodb.com">Paolo Polato</assignee>
                                    <reporter username="pierlauro.sciarelli@mongodb.com">Pierlauro Sciarelli</reporter>
                        <labels>
                            <label>sharding-wfbf-day</label>
                    </labels>
                <created>Wed, 2 Feb 2022 10:26:14 +0000</created>
                <updated>Sun, 29 Oct 2023 21:43:15 +0000</updated>
                            <resolved>Thu, 10 Feb 2022 14:32:41 +0000</resolved>
                                                    <fixVersion>5.3.0</fixVersion>
                    <fixVersion>4.2.19</fixVersion>
                    <fixVersion>4.4.13</fixVersion>
                    <fixVersion>5.0.7</fixVersion>
                    <fixVersion>5.2.2</fixVersion>
                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="4367362" author="xgen-internal-githook" created="Mon, 21 Feb 2022 22:44:25 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Paolo Polato&apos;, &apos;email&apos;: &apos;paolo.polato@mongodb.com&apos;, &apos;username&apos;: &apos;ppolato&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63203&quot; title=&quot;Chunk splitter never splits if more than 8192 split points are found&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-63203&quot;&gt;&lt;del&gt;SERVER-63203&lt;/del&gt;&lt;/a&gt; fix checkMetadataForSuccessfulSplitChunk()&lt;br/&gt;
Branch: v5.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/899918e1f72e75fbdbd6266cffcbc87442abeb43&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/899918e1f72e75fbdbd6266cffcbc87442abeb43&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4367361" author="xgen-internal-githook" created="Mon, 21 Feb 2022 22:44:23 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Paolo Polato&apos;, &apos;email&apos;: &apos;paolo.polato@mongodb.com&apos;, &apos;username&apos;: &apos;ppolato&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63203&quot; title=&quot;Chunk splitter never splits if more than 8192 split points are found&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-63203&quot;&gt;&lt;del&gt;SERVER-63203&lt;/del&gt;&lt;/a&gt; Do not fail chunk split if more than 8192 points are requested&lt;/p&gt;

&lt;p&gt;(cherry picked from commit d018b7e964dafa5085152af03916bde0ac74f947)&lt;br/&gt;
(cherry picked from commit 125477c2b843bd02f387b4ec183bba9d641d349c)&lt;br/&gt;
Branch: v5.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c7699bb6bded2948ba33063c77ef3adb8fa78095&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c7699bb6bded2948ba33063c77ef3adb8fa78095&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4367308" author="xgen-internal-githook" created="Mon, 21 Feb 2022 21:30:38 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Paolo Polato&apos;, &apos;email&apos;: &apos;paolo.polato@mongodb.com&apos;, &apos;username&apos;: &apos;ppolato&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63203&quot; title=&quot;Chunk splitter never splits if more than 8192 split points are found&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-63203&quot;&gt;&lt;del&gt;SERVER-63203&lt;/del&gt;&lt;/a&gt; Do not fail chunk split if more than 8192 points are requested&lt;br/&gt;
Branch: v4.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/d08bae0fe6df2357ac9d26500e4e71954507b5a3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/d08bae0fe6df2357ac9d26500e4e71954507b5a3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4367302" author="xgen-internal-githook" created="Mon, 21 Feb 2022 21:24:49 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Paolo Polato&apos;, &apos;email&apos;: &apos;paolo.polato@mongodb.com&apos;, &apos;username&apos;: &apos;ppolato&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63203&quot; title=&quot;Chunk splitter never splits if more than 8192 split points are found&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-63203&quot;&gt;&lt;del&gt;SERVER-63203&lt;/del&gt;&lt;/a&gt; Do not fail chunk split if more than 8192 points are requested&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/db0c685310ef4d928bbfe513b669d8fab8b7bfac&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/db0c685310ef4d928bbfe513b669d8fab8b7bfac&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4367286" author="xgen-internal-githook" created="Mon, 21 Feb 2022 21:11:46 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Paolo Polato&apos;, &apos;email&apos;: &apos;paolo.polato@mongodb.com&apos;, &apos;username&apos;: &apos;ppolato&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63203&quot; title=&quot;Chunk splitter never splits if more than 8192 split points are found&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-63203&quot;&gt;&lt;del&gt;SERVER-63203&lt;/del&gt;&lt;/a&gt; fix checkMetadataForSuccessfulSplitChunk()&lt;br/&gt;
Branch: v5.3&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c6cf3ce83c7c9d30278cee43b2a7eb06ddd47816&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c6cf3ce83c7c9d30278cee43b2a7eb06ddd47816&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4367085" author="xgen-internal-githook" created="Mon, 21 Feb 2022 17:32:10 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Paolo Polato&apos;, &apos;email&apos;: &apos;paolo.polato@mongodb.com&apos;, &apos;username&apos;: &apos;ppolato&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63203&quot; title=&quot;Chunk splitter never splits if more than 8192 split points are found&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-63203&quot;&gt;&lt;del&gt;SERVER-63203&lt;/del&gt;&lt;/a&gt; fix checkMetadataForSuccessfulSplitChunk()&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/4cdd3f9439ba0eb8e6540465638d5cac3aca1fdf&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/4cdd3f9439ba0eb8e6540465638d5cac3aca1fdf&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4358766" author="xgen-internal-githook" created="Wed, 16 Feb 2022 15:18:59 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Paolo Polato&apos;, &apos;email&apos;: &apos;paolo.polato@mongodb.com&apos;, &apos;username&apos;: &apos;ppolato&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63203&quot; title=&quot;Chunk splitter never splits if more than 8192 split points are found&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-63203&quot;&gt;&lt;del&gt;SERVER-63203&lt;/del&gt;&lt;/a&gt; Do not fail chunk split if more than 8192 points are requested&lt;/p&gt;

&lt;p&gt;(cherry picked from commit d018b7e964dafa5085152af03916bde0ac74f947)&lt;br/&gt;
Branch: v5.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/125477c2b843bd02f387b4ec183bba9d641d349c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/125477c2b843bd02f387b4ec183bba9d641d349c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4347589" author="xgen-internal-githook" created="Thu, 10 Feb 2022 14:15:31 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Paolo Polato&apos;, &apos;email&apos;: &apos;paolo.polato@mongodb.com&apos;, &apos;username&apos;: &apos;ppolato&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63203&quot; title=&quot;Chunk splitter never splits if more than 8192 split points are found&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-63203&quot;&gt;&lt;del&gt;SERVER-63203&lt;/del&gt;&lt;/a&gt; Do not fail chunk split if more than 8192 points are requested&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/d018b7e964dafa5085152af03916bde0ac74f947&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/d018b7e964dafa5085152af03916bde0ac74f947&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8.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_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="22676"><![CDATA[v5.2]]></customfieldvalue>
    <customfieldvalue key="21777"><![CDATA[v5.0]]></customfieldvalue>
    <customfieldvalue key="18953"><![CDATA[v4.4]]></customfieldvalue>
    <customfieldvalue key="16775"><![CDATA[v4.2]]></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, 9 Feb 2022 09:49:35 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 50 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_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_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, 50 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>49.0</customfieldvalue>

                        </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>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>paolo.polato@mongodb.com</customfieldvalue>
            <customfieldvalue>pierlauro.sciarelli@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i0ivdz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i01ynz:</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="5749">Sharding EMEA 2022-02-21</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|i0ihjb:</customfieldvalue>

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