<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:57:15 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-63243] Range deleter must not clean up orphan ranges in a round-robin fashion</title>
                <link>https://jira.mongodb.org/browse/SERVER-63243</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;In presence of more than one ready range deletion referring ranges containing more than &lt;a href=&quot;https://docs.mongodb.com/manual/reference/parameters/#mongodb-parameter-param.rangeDeleterBatchSize&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;rangeDeleterBatchSize&lt;/a&gt; documents, the range-deleter is currently working in a round-robin fashion. &lt;/p&gt;

&lt;p&gt;Example with ready range deletions task documents A and B:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Pick &lt;tt&gt;A&lt;/tt&gt;&apos;s range, delete batch according to &lt;tt&gt;rangeDeleterBatchSize&lt;/tt&gt;, re-enqueue for deletion&lt;/li&gt;
	&lt;li&gt;Pick &lt;tt&gt;B&lt;/tt&gt;&apos;s range, delete batch according to &lt;tt&gt;rangeDeleterBatchSize&lt;/tt&gt;, re-enqueue for deletion&lt;/li&gt;
	&lt;li&gt;Pick &lt;tt&gt;A&lt;/tt&gt;&apos;s range, delete batch according to &lt;tt&gt;rangeDeleterBatchSize&lt;/tt&gt;, re-enqueue for deletion&lt;/li&gt;
	&lt;li&gt;...continue until orphan documents in ranges have to be cleared up...&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;As a result, users may incur into some issues such as:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;The balancer may get blocked trying to move back some range on the old donor.&lt;/li&gt;
	&lt;li&gt;With sufficiently fast migrations, the time for a range deletion task to complete increases exponentially. (The more ranges get enqueued, the less is probable for a range to be chosen for deletion).&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-61637&quot; title=&quot;Review range deleter batching policy&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-61637&quot;&gt;&lt;del&gt;SERVER-61637&lt;/del&gt;&lt;/a&gt; increased the batch default size to &lt;tt&gt;MAX_INT&lt;/tt&gt; in order to work around this issue, but the problem still stands in case the parameter is set to a lower value. &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47699&quot; title=&quot;Change yield type used by range deleter from YIELD_MANUAL to YIELD_AUTO&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47699&quot;&gt;&lt;del&gt;SERVER-47699&lt;/del&gt;&lt;/a&gt; pretty much removed the need for batching, but there are some scenarios in which it may still be needed to decrease the batch size (e.g. if a machine is under very intense user CRUD load).&lt;/p&gt;

&lt;p&gt;Objective of this ticket is making sure that once a batch from a range has been deleted, the next round will keep on deleting the same range.&lt;/p&gt;

&lt;p&gt;One solution could be to loop &lt;a href=&quot;https://github.com/mongodb/mongo/blob/ca8259ffef3ec2947ce6a5761f6c433e0e0c4663/src/mongo/db/s/range_deletion_util.cpp#L301-L349&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;within the deletion task&lt;/a&gt; as long as the number of deleted documents for the range is greater than zero.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1976558">SERVER-63243</key>
            <summary>Range deleter must not clean up orphan ranges in a round-robin fashion</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="allison.easton@mongodb.com">Allison Easton</assignee>
                                    <reporter username="pierlauro.sciarelli@mongodb.com">Pierlauro Sciarelli</reporter>
                        <labels>
                    </labels>
                <created>Thu, 3 Feb 2022 11:53:29 +0000</created>
                <updated>Sun, 29 Oct 2023 21:43:11 +0000</updated>
                            <resolved>Tue, 7 Jun 2022 10:27:06 +0000</resolved>
                                                    <fixVersion>5.0.10</fixVersion>
                    <fixVersion>4.4.16</fixVersion>
                    <fixVersion>6.0.0-rc10</fixVersion>
                    <fixVersion>6.1.0-rc0</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="4649780" author="xgen-internal-githook" created="Thu, 30 Jun 2022 08:35:46 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Allison Easton&apos;, &apos;email&apos;: &apos;allison.easton@mongodb.com&apos;, &apos;username&apos;: &apos;allisoneaston&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63243&quot; title=&quot;Range deleter must not clean up orphan ranges in a round-robin fashion&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-63243&quot;&gt;&lt;del&gt;SERVER-63243&lt;/del&gt;&lt;/a&gt; Range deleter must not clean up orphan ranges in a round-robin fashion&lt;/p&gt;

&lt;p&gt;(cherry picked from commit f44581d5bfe275a3b9f0454dd7843c04ccfd1f2d)&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/d151213391fddc1e0a7056bed7853ba955001e1b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/d151213391fddc1e0a7056bed7853ba955001e1b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4644490" author="xgen-internal-githook" created="Tue, 28 Jun 2022 12:34:59 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Allison Easton&apos;, &apos;email&apos;: &apos;allison.easton@mongodb.com&apos;, &apos;username&apos;: &apos;allisoneaston&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63243&quot; title=&quot;Range deleter must not clean up orphan ranges in a round-robin fashion&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-63243&quot;&gt;&lt;del&gt;SERVER-63243&lt;/del&gt;&lt;/a&gt; Range deleter must not clean up orphan ranges in a round-robin fashion&lt;/p&gt;

&lt;p&gt;(cherry picked from commit f44581d5bfe275a3b9f0454dd7843c04ccfd1f2d)&lt;br/&gt;
Branch: v5.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/a1c118ad5c2ac78c8751b65ec8a4f5e27fc719fa&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/a1c118ad5c2ac78c8751b65ec8a4f5e27fc719fa&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4606990" author="xgen-internal-githook" created="Fri, 10 Jun 2022 13:59:42 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Allison Easton&apos;, &apos;email&apos;: &apos;allison.easton@mongodb.com&apos;, &apos;username&apos;: &apos;allisoneaston&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63243&quot; title=&quot;Range deleter must not clean up orphan ranges in a round-robin fashion&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-63243&quot;&gt;&lt;del&gt;SERVER-63243&lt;/del&gt;&lt;/a&gt; Range deleter must not clean up orphan ranges in a round-robin fashion&lt;/p&gt;

&lt;p&gt;(cherry picked from commit f44581d5bfe275a3b9f0454dd7843c04ccfd1f2d&lt;br/&gt;
Branch: v6.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/119a34c2e06680d35c089effa2c9c809e1bd1102&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/119a34c2e06680d35c089effa2c9c809e1bd1102&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4599000" author="xgen-internal-githook" created="Tue, 7 Jun 2022 10:25:07 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Allison Easton&apos;, &apos;email&apos;: &apos;allison.easton@mongodb.com&apos;, &apos;username&apos;: &apos;allisoneaston&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-63243&quot; title=&quot;Range deleter must not clean up orphan ranges in a round-robin fashion&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-63243&quot;&gt;&lt;del&gt;SERVER-63243&lt;/del&gt;&lt;/a&gt; Range deleter must not clean up orphan ranges in a round-robin fashion&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/f44581d5bfe275a3b9f0454dd7843c04ccfd1f2d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/f44581d5bfe275a3b9f0454dd7843c04ccfd1f2d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4584018" author="pierlauro.sciarelli" created="Tue, 31 May 2022 17:55:54 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=kaloian.manassiev%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;kaloian.manassiev@mongodb.com&quot;&gt;kaloian.manassiev@mongodb.com&lt;/a&gt; observed that also without &lt;tt&gt;withDelayBetweenIterations&lt;/tt&gt; the range deletion gets rescheduled behind the others. Either we made a wrong assessment at the time of closing the ticket, either something has changed and the executor is now yielding.&lt;/p&gt;

&lt;p&gt;Reopening the ticket so that we don&apos;t forget to double-check.&lt;/p&gt;</comment>
                            <comment id="4437800" author="allison.easton" created="Mon, 28 Mar 2022 07:40:02 +0000"  >&lt;p&gt;This ticket was solved by &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-62368&quot; title=&quot;Range deleter must honor rangeDeleterBatchDelayMS&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-62368&quot;&gt;&lt;del&gt;SERVER-62368&lt;/del&gt;&lt;/a&gt;. By removing the withDelayBetweenIterations, the range deletions are processed fully before passing to the next range deletion task.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="23470"><![CDATA[v6.0]]></customfieldvalue>
    <customfieldvalue key="21777"><![CDATA[v5.0]]></customfieldvalue>
    <customfieldvalue key="18953"><![CDATA[v4.4]]></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_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[5002K00000zey5bQAA]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 28 Mar 2022 07:40:02 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 31 weeks, 6 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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-2323</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, 31 weeks, 6 days ago
                        </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>allison.easton@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</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|i0j0rz:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i0g2tr:z</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_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="5817">Sharding EMEA 2022-04-04</customfieldvalue>
    <customfieldvalue id="6122">Sharding EMEA 2022-06-13</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|i0imxb:</customfieldvalue>

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