<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:13:21 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-26832] Add tests for shell commands</title>
                <link>https://jira.mongodb.org/browse/SERVER-26832</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Some of the shell utils are not tested&lt;br/&gt;
e.g. isBalancerRunning and getBalancerHost (defined in  src/mongo/shell/utils_sh.js ). Possibly other commands. &lt;br/&gt;
Need to find what commands are not covered and add those tests&lt;/p&gt;

&lt;p&gt;Current list from 3.4 docs of the sharding commands&lt;br/&gt;
Name	Description&lt;/p&gt;

&lt;p&gt;Balancer:&lt;br/&gt;
sh.getBalancerLockDetails()	Reports on the active balancer lock, if it exists.&lt;br/&gt;
sh.setBalancerState()	Enables or disables the balancer which migrates chunks between shards.&lt;br/&gt;
sh.getBalancerHost()	Returns the process that has the balancer lock.&lt;br/&gt;
sh.getBalancerState()	Returns a boolean to report if the balancer is currently enabled.&lt;br/&gt;
sh.startBalancer()	Enables the balancer and waits for balancing to start.&lt;br/&gt;
sh.stopBalancer()	Disables the balancer and waits for any in progress balancing rounds to complete.&lt;/p&gt;

&lt;p&gt;sh.waitForBalancer()	Internal. Waits for the balancer state to change.&lt;br/&gt;
sh.waitForBalancerOff()	Internal. Waits until the balancer stops running.&lt;br/&gt;
sh.waitForDLock()	Internal. Waits for a specified distributed sharded cluster lock.&lt;/p&gt;

&lt;p&gt;sh.waitForPingChange()	Internal. Waits for a change in ping state from one of the mongos in the sharded cluster.&lt;br/&gt;
sh.isBalancerRunning()	Returns a boolean to report if the balancer process is currently migrating chunks.&lt;br/&gt;
sh.disableBalancing()	Disable balancing on a single collection in a sharded database. Does not affect balancing of other collections in a sharded cluster.&lt;br/&gt;
sh.enableBalancing()	Activates the sharded collection balancer process if previously disabled using sh.disableBalancing().&lt;/p&gt;


&lt;p&gt;Tags/Zones:&lt;br/&gt;
sh.addShardTag()	In MongoDB 3.4, this method aliases to sh.addShardToZone().&lt;br/&gt;
sh.addShardToZone()	Associates a shard to a zone. Supports configuring zones in sharded clusters.&lt;/p&gt;

&lt;p&gt;sh.removeShardTag()	In MongoDB 3.4, this method aliases to sh.removeShardFromZone().&lt;br/&gt;
sh.removeShardFromZone()	Removes the association between a shard and a zone. Use to manage zone sharding.&lt;/p&gt;

&lt;p&gt;sh.addTagRange()	In MongoDB 3.4, this method aliases to sh.updateZoneKeyRange().&lt;br/&gt;
sh.updateZoneKeyRange()	Associates a range of shard keys to a zone. Supports configuring zones in sharded clusters.&lt;/p&gt;

&lt;p&gt;sh.removeTagRange()	In MongoDB 3.4, this method aliases to sh.removeRangeFromZone().&lt;br/&gt;
sh.removeRangeFromZone()	Removes an association between a range of shard keys and a zone. Supports configuring zones in sharded clusters.&lt;/p&gt;


&lt;p&gt;Chunks:&lt;br/&gt;
sh._lastMigration()	Reports on the last chunk migration.&lt;br/&gt;
sh.moveChunk()	Migrates a chunk in a sharded cluster.&lt;br/&gt;
sh.splitAt()	Divides an existing chunk into two chunks using a specific value of the shard key as the dividing point.&lt;br/&gt;
sh.splitFind()	Divides an existing chunk that contains a document matching a query into two approximately equal chunks.&lt;/p&gt;

&lt;p&gt;Misc:&lt;br/&gt;
sh._adminCommand()	Runs a database command against the admin database, like db.runCommand(), but can confirm that it is issued against a mongos.&lt;br/&gt;
sh._checkFullName()	Tests a namespace to determine if its well formed.&lt;br/&gt;
sh._checkMongos()	Tests to see if the mongo shell is connected to a mongos instance.&lt;br/&gt;
sh.addShard()	Adds a shard to a sharded cluster.&lt;br/&gt;
sh.enableSharding()	Enables sharding on a specific database.&lt;br/&gt;
sh.shardCollection()	Enables sharding for a collection.&lt;/p&gt;

&lt;p&gt;The  sh.status()	Reports on the status of a sharded cluster, as db.printShardingStatus().&lt;br/&gt;
uses several methods:&lt;br/&gt;
sh.getRecentFailedRounds&lt;br/&gt;
sh.getRecentMigrations&lt;br/&gt;
sh.getActiveMigrations&lt;br/&gt;
sh.getBalancerWindow&lt;br/&gt;
sh.getBalancerLockDetails&lt;/p&gt;
</description>
                <environment></environment>
        <key id="327754">SERVER-26832</key>
            <summary>Add tests for shell commands</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="9">Done</resolution>
                                        <assignee username="misha.tyulenev@mongodb.com">Misha Tyulenev</assignee>
                                    <reporter username="misha.tyulenev@mongodb.com">Misha Tyulenev</reporter>
                        <labels>
                    </labels>
                <created>Fri, 28 Oct 2016 20:38:47 +0000</created>
                <updated>Fri, 17 May 2019 13:44:04 +0000</updated>
                            <resolved>Tue, 6 Dec 2016 19:50:30 +0000</resolved>
                                                    <fixVersion>3.4.1</fixVersion>
                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="1450595" author="misha.tyulenev" created="Tue, 6 Dec 2016 19:50:30 +0000"  >&lt;p&gt;Test does not pass 3.2&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.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="10011"><![CDATA[Minor Change]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 18 Nov 2016 16:20:20 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        7 years, 10 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_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>false</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            7 years, 10 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>misha.tyulenev@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrjsa7:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsrcin:</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="1315">Sharding 2016-12-12</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|hseec7:</customfieldvalue>

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