<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:00:06 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-64340] Warn if balancer is disabled while draining shard</title>
                <link>https://jira.mongodb.org/browse/SERVER-64340</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;blockquote&gt;&lt;p&gt;We are constantly getting bit in Atlas by shard draining that is &quot;stuck&quot; because the customer has disabled the balancer. Inevitably, we spend time looking through the logs for a &quot;problem&quot; and finally realize the balancer is off. Draining a shard with the balancer off is not a normal configuration. Could we please log a message about this in the logs, periodically?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;One possible solution would be to make the balancer check if some shard needs to be drain even if balancing have been disabled and periodically log a warning.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1997453">SERVER-64340</key>
            <summary>Warn if balancer is disabled while draining shard</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="antonio.fuschetto@mongodb.com">Antonio Fuschetto</assignee>
                                    <reporter username="tommaso.tocci@mongodb.com">Tommaso Tocci</reporter>
                        <labels>
                            <label>shardingemea-qw</label>
                    </labels>
                <created>Wed, 9 Mar 2022 08:22:42 +0000</created>
                <updated>Sun, 29 Oct 2023 21:41:24 +0000</updated>
                            <resolved>Mon, 4 Jul 2022 14:20:48 +0000</resolved>
                                                    <fixVersion>6.0.1</fixVersion>
                    <fixVersion>5.0.11</fixVersion>
                    <fixVersion>6.1.0-rc0</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="4707417" author="xgen-internal-githook" created="Tue, 26 Jul 2022 23:21:28 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Antonio Fuschetto&apos;, &apos;email&apos;: &apos;antonio.fuschetto@mongodb.com&apos;, &apos;username&apos;: &apos;afuschetto&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-64340&quot; title=&quot;Warn if balancer is disabled while draining shard&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-64340&quot;&gt;&lt;del&gt;SERVER-64340&lt;/del&gt;&lt;/a&gt; Warn if balancer is disabled while draining shard&lt;br/&gt;
Branch: v6.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/943744bef3fb7de71790f95d2fdc8201ba52ba28&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/943744bef3fb7de71790f95d2fdc8201ba52ba28&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4657570" author="tommaso.tocci" created="Tue, 5 Jul 2022 15:03:47 +0000"  >&lt;blockquote&gt;&lt;p&gt;so we went with a log message saying &quot;Draining of removed shards cannot be completed because the balance is disabled&quot; correct?&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Yes correct.&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;and it sends that how often? Couldn&apos;t calculate that from the PR.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;the log is emitted every 10 min by the primary node of the config server replicaset.&lt;br/&gt;
We decided to emit this log message only if the balancer is disable. Thus in case the balancer is enabled but currently outside the balancing time window, the log won&apos;t be emitted.&lt;/p&gt;</comment>
                            <comment id="4657202" author="garaudy.etienne" created="Tue, 5 Jul 2022 13:43:20 +0000"  >&lt;p&gt;so we went with a log message saying &quot;Draining of removed shards cannot be completed because the balance is disabled&quot; correct?&lt;/p&gt;

&lt;p&gt;and it sends that how often? Couldn&apos;t calculate that from the PR.&lt;/p&gt;</comment>
                            <comment id="4655643" author="xgen-internal-githook" created="Mon, 4 Jul 2022 14:19:20 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Antonio Fuschetto&apos;, &apos;email&apos;: &apos;antonio.fuschetto@mongodb.com&apos;, &apos;username&apos;: &apos;afuschetto&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-64340&quot; title=&quot;Warn if balancer is disabled while draining shard&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-64340&quot;&gt;&lt;del&gt;SERVER-64340&lt;/del&gt;&lt;/a&gt; Warn if balancer is disabled while draining shard&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/11e760fff8b3daa929a4e25b1f750641907b9da6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/11e760fff8b3daa929a4e25b1f750641907b9da6&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4640988" author="JIRAUSER1259062" created="Mon, 27 Jun 2022 08:14:59 +0000"  >&lt;p&gt;The &lt;tt&gt;removeShard&lt;/tt&gt; operation returns with a message reporting the current status of the drainage, i.e., &lt;em&gt;started&lt;/em&gt;, &lt;em&gt;ongoing&lt;/em&gt;, or &lt;em&gt;completed&lt;/em&gt;. Ideally, when the balancer is disabled, this operation should return a status to inform the user that the operation is currently blocked due to the inability to migrate chunks to other shards. Contextually, a warning message should be triggered to inform the cluster operations team.&lt;/p&gt;

&lt;p&gt;An alternative is to simply trigger a periodic warning message when the balancer is disabled and one or more shards need to be drain, as described in the ticket&apos;s description.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=tommaso.tocci%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;tommaso.tocci@mongodb.com&quot;&gt;tommaso.tocci@mongodb.com&lt;/a&gt;, please let me know what&apos;s the better approach based on your view of the problem.&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>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.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>
    
                        </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>Thu, 10 Mar 2022 11:10:45 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 28 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_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, 28 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>antonio.fuschetto@mongodb.com</customfieldvalue>
            <customfieldvalue>garaudy.etienne@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>tommaso.tocci@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i0mjqf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i05l8c:</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="6073">Sharding EMEA 2022-05-02</customfieldvalue>
    <customfieldvalue id="6074">Sharding EMEA 2022-05-16</customfieldvalue>
    <customfieldvalue id="6075">Sharding EMEA 2022-05-30</customfieldvalue>
    <customfieldvalue id="6122">Sharding EMEA 2022-06-13</customfieldvalue>
    <customfieldvalue id="6284">Sharding EMEA 2022-06-27</customfieldvalue>
    <customfieldvalue id="6285">Sharding EMEA 2022-07-11</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10555" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.5</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|i0m5vr:</customfieldvalue>

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