<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 07:46:53 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>[DOCS-3958] Comment on: &quot;manual/reference/command/repairDatabase.txt&quot;</title>
                <link>https://jira.mongodb.org/browse/DOCS-3958</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;What about sharding? Can db.repairDatabase() be run against a router (mongos)? Will mongos run the command for a sharded database on all shards and on all replicaSet members simultaneously? What happens if only one replicaSet member doesn&apos;t have enough free disk space? Will it cancel the command on all the other mongod instances as well? How is it possible to pass the repairpath parameter if running the command against mongos? If it&apos;s not possible, do we need to run the command against every mongod instance of the sharded system or &quot;only&quot; against the primary of every replicaSet/shard?&lt;/p&gt;</description>
                <environment>&lt;br/&gt;
&lt;br/&gt;
*Location*: &lt;a href=&quot;http://docs.mongodb.org/manual/reference/command/repairDatabase/&quot;&gt;http://docs.mongodb.org/manual/reference/command/repairDatabase/&lt;/a&gt;&lt;br/&gt;
*User-Agent*: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:30.0) Gecko/20100101 Firefox/30.0 IKDhPmJcdw&lt;br/&gt;
*Referrer*: &lt;a href=&quot;http://www.google.de/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=1&amp;ved=0CDMQFjAA&amp;url=http%3A%2F%2Fdocs.mongodb.org%2Fmanual%2Freference%2Fcommand%2FrepairDatabase&amp;ei=eyT_U-yEE4SrOrSggfgG&amp;usg=AFQjCNH9E9UapfuLSjysUJiivqNCPg5T2g&amp;bvm=bv.74035653,d.ZWU&amp;cad=rja&quot;&gt;http://www.google.de/url?sa=t&amp;amp;rct=j&amp;amp;q=&amp;amp;esrc=s&amp;amp;source=web&amp;amp;cd=1&amp;amp;ved=0CDMQFjAA&amp;amp;url=http%3A%2F%2Fdocs.mongodb.org%2Fmanual%2Freference%2Fcommand%2FrepairDatabase&amp;amp;ei=eyT_U-yEE4SrOrSggfgG&amp;amp;usg=AFQjCNH9E9UapfuLSjysUJiivqNCPg5T2g&amp;amp;bvm=bv.74035653,d.ZWU&amp;amp;cad=rja&lt;/a&gt;&lt;br/&gt;
*Screen Resolution*: 1680 x 1050&lt;br/&gt;
*repo*: docs&lt;br/&gt;
*source*: reference/command/repairDatabase&lt;br/&gt;
</environment>
        <key id="155300">DOCS-3958</key>
            <summary>Comment on: &quot;manual/reference/command/repairDatabase.txt&quot;</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="stephen.steneker@mongodb.com">Stennie Steneker</assignee>
                                    <reporter username="kay.agahd@idealo.de">Kay Agahd</reporter>
                        <labels>
                            <label>collector-298ba4e7</label>
                    </labels>
                <created>Thu, 28 Aug 2014 13:29:32 +0000</created>
                <updated>Fri, 3 Nov 2017 11:20:06 +0000</updated>
                            <resolved>Thu, 28 Aug 2014 20:51:42 +0000</resolved>
                                                    <fixVersion>01112017-cleanup</fixVersion>
                                        <due></due>
                            <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="707580" author="kay.agahd@idealo.de" created="Fri, 29 Aug 2014 12:40:09 +0000"  >&lt;p&gt;Thanks Stephen! The reason why we want to repairDatabase the whole sharded system is that the dbs is used for testing purposes for different teams who are using different databases. Once a test suite has been run, mongodb does not free up disk space even if the database has been emptied. If all databases grow continously without ever freeing up disk space, we would run out of disk space some day. That&apos;s why we want to run repairDatabase on some databases after some time.&lt;/p&gt;

&lt;p&gt;I&apos;ve posted a thread in mongodb&apos;s user forum:&lt;br/&gt;
&lt;a href=&quot;https://groups.google.com/forum/#!topic/mongodb-user/0jS_ckUk5jE&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://groups.google.com/forum/#!topic/mongodb-user/0jS_ckUk5jE&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="707183" author="stennie" created="Thu, 28 Aug 2014 20:51:31 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;The DOCS project is for feedback on the MongoDB documentation (&lt;a href=&quot;http://docs.mongodb.org&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.mongodb.org&lt;/a&gt;). For support questions, please post on the &lt;a href=&quot;https://groups.google.com/forum/#!forum/mongodb-user&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb-user discussion group&lt;/a&gt; or &lt;a href=&quot;http://stackoverflow.com/tags/mongodb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;StackOverflow&lt;/a&gt;. The mongodb-user group is better for open-ended or multiple questions, whereas StackOverflow is suited to specific single questions. MongoDB team members are active on both of these forums along with our large community of users.&lt;/p&gt;

&lt;p&gt;As far as `db.repairDatabase()` on a sharded cluster goes, I would post a follow-up question on what you are trying to achieve with the repair (eg. is this to reduce disk space usage, correct a suspected storage error, ...). You do not want to run repair on a sharded cluster as as whole and should consider the repair operations against each shard. The repair command is a blocking operation that rebuilds your entire database, and if you have a suspected storage error you should definitely ask for advice before running a repair. There are different approaches depending on what you are trying to resolve, your deployment configuration, and whether you are trying to minimise downtime during the repair/maintenance operations.&lt;/p&gt;

&lt;p&gt;I look forward to helping you on the appropriate forums.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Stephen&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>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 28 Aug 2014 20:16:17 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        9 years, 24 weeks, 5 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_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>jess.mokrzecki@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            9 years, 24 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>kay.agahd@idealo.de</customfieldvalue>
            <customfieldvalue>stephen.steneker@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrqu4n:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hs1rt3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>134959</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_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrznl3:</customfieldvalue>

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