<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:17:52 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-8598] Add command to cleanup orphaned data created by failed chunk migrations</title>
                <link>https://jira.mongodb.org/browse/SERVER-8598</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Provide a built in function to clean up orphaned data in a collection.&lt;/p&gt;</description>
                <environment></environment>
        <key id="65506">SERVER-8598</key>
            <summary>Add command to cleanup orphaned data created by failed chunk migrations</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="9">Done</resolution>
                                        <assignee username="greg_10gen">Greg Studer</assignee>
                                    <reporter username="dan@mongodb.com">Daniel Pasette</reporter>
                        <labels>
                            <label>cleanup</label>
                            <label>commands</label>
                            <label>sharding</label>
                    </labels>
                <created>Fri, 15 Feb 2013 23:16:11 +0000</created>
                <updated>Tue, 18 Feb 2014 19:44:47 +0000</updated>
                            <resolved>Mon, 12 Aug 2013 20:35:05 +0000</resolved>
                                                    <fixVersion>2.5.2</fixVersion>
                                    <component>Admin</component>
                    <component>Sharding</component>
                    <component>Tools</component>
                                        <votes>6</votes>
                                    <watches>16</watches>
                                                                                                                <comments>
                            <comment id="500942" author="tubededentifrice" created="Tue, 18 Feb 2014 19:44:47 +0000"  >&lt;p&gt;What is the correct way to achieve the same as this command in 2.4.x?&lt;br/&gt;
In fact I don&apos;t know how to perform an operation (delete) on a specific shard from a mongos, or accessing the chunk list from the shell of a shard.&lt;/p&gt;</comment>
                            <comment id="439047" author="auto" created="Thu, 10 Oct 2013 17:59:43 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;ajdavis&apos;, u&apos;name&apos;: u&apos;A. Jesse Jiryu Davis&apos;, u&apos;email&apos;: u&apos;jesse@mongodb.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt; Failpoints for testing moveChunk&lt;/p&gt;

&lt;p&gt;Aids testing cleanupOrphaned and mergeChunks.&lt;/p&gt;

&lt;p&gt;Signed-off-by: Matt Kangas &amp;lt;matt.kangas@mongodb.com&amp;gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/dbae94b4a6a83ad32817038259f1d2d6ac5314f1&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/dbae94b4a6a83ad32817038259f1d2d6ac5314f1&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="408335" author="auto" created="Wed, 21 Aug 2013 17:28:09 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;gregstuder&apos;, u&apos;name&apos;: u&apos;Greg Studer&apos;, u&apos;email&apos;: u&apos;greg@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt; cleanup_orphaned_cmd_hashed.js minor test improvement&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/5f86ad54f492a352c589dd949706c0e820c2a453&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/5f86ad54f492a352c589dd949706c0e820c2a453&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="408321" author="auto" created="Wed, 21 Aug 2013 17:18:10 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;gregstuder&apos;, u&apos;name&apos;: u&apos;Greg Studer&apos;, u&apos;email&apos;: u&apos;greg@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt; test cleanup of orphaned data in hashed sharded collection&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/252f42781db4b1019433968b7293287d18b2ec40&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/252f42781db4b1019433968b7293287d18b2ec40&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="402036" author="auto" created="Tue, 13 Aug 2013 16:26:03 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;gregstuder&apos;, u&apos;name&apos;: u&apos;Greg Studer&apos;, u&apos;email&apos;: u&apos;greg@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt; correct auth settings for new cleanupOrphaned command&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/5c94494146e1f38c81a497ac7300b65d85456cc7&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/5c94494146e1f38c81a497ac7300b65d85456cc7&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="399493" author="auto" created="Fri, 9 Aug 2013 15:29:42 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;gregstuder&apos;, u&apos;name&apos;: u&apos;Greg Studer&apos;, u&apos;email&apos;: u&apos;greg@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt; minor test and logging fixes for orphaned data cleanup&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/98117924c40a32d2f7be8f446c39a4b46268d537&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/98117924c40a32d2f7be8f446c39a4b46268d537&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="397116" author="justanyone" created="Tue, 6 Aug 2013 17:33:43 +0000"  >&lt;p&gt;Also needs documentation change to describe how to call this function, whether it locks the collection on that shard, etc.&lt;/p&gt;</comment>
                            <comment id="396968" author="auto" created="Tue, 6 Aug 2013 15:15:05 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;tadmarshall&apos;, u&apos;name&apos;: u&apos;Tad Marshall&apos;, u&apos;email&apos;: u&apos;tad@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt; Visual Studio &amp;#8211; add db/commands/cleanup_orphaned_cmd.cpp&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/cee23aa7958874aca663d7de4c83804b9c80468d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/cee23aa7958874aca663d7de4c83804b9c80468d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="396840" author="auto" created="Tue, 6 Aug 2013 13:03:20 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;gregstuder&apos;, u&apos;name&apos;: u&apos;Greg Studer&apos;, u&apos;email&apos;: u&apos;greg@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt; only unprotect pending range on unsuccessful TO migration&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/58d68a95c050daceee6c0122a72b8e43c5157261&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/58d68a95c050daceee6c0122a72b8e43c5157261&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="396839" author="auto" created="Tue, 6 Aug 2013 13:03:18 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;gregstuder&apos;, u&apos;name&apos;: u&apos;Greg Studer&apos;, u&apos;email&apos;: u&apos;greg@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt; merge newest pending chunks from stored metadata with newest chunks on reload&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/25e934ac1a262e90ad555235bf5b2de6ddb246a0&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/25e934ac1a262e90ad555235bf5b2de6ddb246a0&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="396838" author="auto" created="Tue, 6 Aug 2013 13:03:16 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;gregstuder&apos;, u&apos;name&apos;: u&apos;Greg Studer&apos;, u&apos;email&apos;: u&apos;greg@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt; command to iteratively cleanup orphaned data&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/3bbe57a1e825a98a0c6e2601ac87978f02faecd6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/3bbe57a1e825a98a0c6e2601ac87978f02faecd6&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="390488" author="auto" created="Sun, 28 Jul 2013 18:51:23 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;gregstuder&apos;, u&apos;name&apos;: u&apos;Greg Studer&apos;, u&apos;email&apos;: u&apos;greg@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt; on drop of chunks call GLE to ensure chunks actually dropped&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/1a072fc6cce47088804db327d98d4c56d5416450&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/1a072fc6cce47088804db327d98d4c56d5416450&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="390204" author="greg_10gen" created="Sun, 28 Jul 2013 01:53:06 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;gregstuder&apos;, u&apos;name&apos;: u&apos;Greg Studer&apos;, u&apos;email&apos;: u&apos;greg@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8958&quot; title=&quot;Replace strtod/strtol/atoi/atol/etc calls with parseNumberFromString&amp;lt;T&amp;gt;.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8958&quot;&gt;&lt;del&gt;SERVER-8958&lt;/del&gt;&lt;/a&gt; better logging for mongos_validate_writes.js&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/10602c474190fdbbfc15ec2028b1b0b105b6aa9d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/10602c474190fdbbfc15ec2028b1b0b105b6aa9d&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Note transposed 8958/8598&lt;/p&gt;</comment>
                            <comment id="389838" author="auto" created="Sat, 27 Jul 2013 03:46:00 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;gregstuder&apos;, u&apos;name&apos;: u&apos;Greg Studer&apos;, u&apos;email&apos;: u&apos;greg@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt; buildbot collection_metadata_test epoch validation now required for clonePlus/Minus chunk&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/edeab0376dc35946fe1b5fd0c505af20fb91c8bb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/edeab0376dc35946fe1b5fd0c505af20fb91c8bb&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="389744" author="auto" created="Fri, 26 Jul 2013 22:33:30 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;gregstuder&apos;, u&apos;name&apos;: u&apos;Greg Studer&apos;, u&apos;email&apos;: u&apos;greg@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt; replace trySetVersion with epoch-safe refresh behavior&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/01296c1617fa8b003967c63dbbc1af911d6cd223&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/01296c1617fa8b003967c63dbbc1af911d6cd223&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="384816" author="auto" created="Fri, 19 Jul 2013 16:26:46 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;gregstuder&apos;, u&apos;name&apos;: u&apos;Greg Studer&apos;, u&apos;email&apos;: u&apos;greg@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt; no global lock in SSV&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/1cb08f64a9e9087712b57197911d182a0220a9b9&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/1cb08f64a9e9087712b57197911d182a0220a9b9&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="384815" author="auto" created="Fri, 19 Jul 2013 16:26:44 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;gregstuder&apos;, u&apos;name&apos;: u&apos;Greg Studer&apos;, u&apos;email&apos;: u&apos;greg@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt; minor fixes for metadata reload at zero version&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c04a24af25d1dac21eab524bd3ee146bddc303d3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c04a24af25d1dac21eab524bd3ee146bddc303d3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="384813" author="auto" created="Fri, 19 Jul 2013 16:26:41 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;gregstuder&apos;, u&apos;name&apos;: u&apos;Greg Studer&apos;, u&apos;email&apos;: u&apos;greg@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt; register pending chunks with chunk manager&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/fe0cfee0effbf9fbb8200ecfac332d8b52c165c2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/fe0cfee0effbf9fbb8200ecfac332d8b52c165c2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="378312" author="auto" created="Wed, 10 Jul 2013 19:25:48 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;gregstuder&apos;, u&apos;name&apos;: u&apos;Greg Studer&apos;, u&apos;email&apos;: u&apos;greg@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt; fix compile duplicate it in d_state.cpp&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/1556be30b24b7a00038182e233a52e6c20385c26&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/1556be30b24b7a00038182e233a52e6c20385c26&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="378293" author="auto" created="Wed, 10 Jul 2013 19:03:10 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;gregstuder&apos;, u&apos;name&apos;: u&apos;Greg Studer&apos;, u&apos;email&apos;: u&apos;greg@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt; link pending to ShardingState and RangeDeleter&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c293028c1516b170e0fc5218f9e25c89f290daa5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c293028c1516b170e0fc5218f9e25c89f290daa5&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="378292" author="auto" created="Wed, 10 Jul 2013 19:03:08 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;gregstuder&apos;, u&apos;name&apos;: u&apos;Greg Studer&apos;, u&apos;email&apos;: u&apos;greg@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt; allow CollectionManager to track pending chunks&lt;/p&gt;

&lt;p&gt;Also includes fixes for MetadataLoader&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/01b912eb0897f490159f27be3142bd82d8806206&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/01b912eb0897f490159f27be3142bd82d8806206&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="361900" author="auto" created="Mon, 17 Jun 2013 16:36:05 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;gregstuder&apos;, u&apos;name&apos;: u&apos;Greg Studer&apos;, u&apos;email&apos;: u&apos;greg@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt; minor fixup from review&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c676251944be837ebe285e12ff701e1594c2f70b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c676251944be837ebe285e12ff701e1594c2f70b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="361899" author="auto" created="Mon, 17 Jun 2013 16:36:02 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;gregstuder&apos;, u&apos;name&apos;: u&apos;Greg Studer&apos;, u&apos;email&apos;: u&apos;greg@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt; preserve semantics of exception-on-conn-failure in trySetVersion&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/88b7299f433e6b7bcae6df68a021fee91dc21dd3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/88b7299f433e6b7bcae6df68a021fee91dc21dd3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="361898" author="auto" created="Mon, 17 Jun 2013 16:35:59 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;gregstuder&apos;, u&apos;name&apos;: u&apos;Greg Studer&apos;, u&apos;email&apos;: u&apos;greg@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt; CollectionManager -&amp;gt; CollectionMetadata refactor, no behavior change&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/432d1c9546340633dd5f0ef07259708a75f4a87e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/432d1c9546340633dd5f0ef07259708a75f4a87e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="361897" author="auto" created="Mon, 17 Jun 2013 16:35:57 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;gregstuder&apos;, u&apos;name&apos;: u&apos;Greg Studer&apos;, u&apos;email&apos;: u&apos;greg@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt; hook up CollectionManager in place of ShardChunkManager&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/1459353f995228932bf5077aa4da52d8d68a6871&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/1459353f995228932bf5077aa4da52d8d68a6871&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="353040" author="auto" created="Tue, 4 Jun 2013 21:58:10 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;gregstuder&apos;, u&apos;name&apos;: u&apos;Greg Studer&apos;, u&apos;email&apos;: u&apos;greg@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt; minor CollectionManager refactor cleanup pre-integration&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/ecc9f99bf487191c628c8c36fb9606304a790d31&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/ecc9f99bf487191c628c8c36fb9606304a790d31&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="353038" author="auto" created="Tue, 4 Jun 2013 21:58:08 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;gregstuder&apos;, u&apos;name&apos;: u&apos;Greg Studer&apos;, u&apos;email&apos;: u&apos;greg@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt; ConfigVersion is &lt;b&gt;not&lt;/b&gt; the same as ChunkVersion, cleanup&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/34f701faec271c454612a8b992efbae7f9070a96&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/34f701faec271c454612a8b992efbae7f9070a96&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="352954" author="auto" created="Tue, 4 Jun 2013 20:56:24 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;gregstuder&apos;, u&apos;name&apos;: u&apos;Greg Studer&apos;, u&apos;email&apos;: u&apos;greg@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt; push key expression evaluation out of ShardChunkManager&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/4cb7655e3da3466265ace5d6cf44c55b931f3d15&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/4cb7655e3da3466265ace5d6cf44c55b931f3d15&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="343123" author="auto" created="Wed, 22 May 2013 21:13:00 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;renctan&apos;, u&apos;name&apos;: u&apos;Randolph Tan&apos;, u&apos;email&apos;: u&apos;randolph@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt; Add command to cleanup orphaned data created by failed chunk migrations&lt;/p&gt;

&lt;p&gt;Moved range deleter files from s/ to db/&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/9d11c79f61a09496b50ee7e1eee34221b61ea842&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/9d11c79f61a09496b50ee7e1eee34221b61ea842&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="343122" author="auto" created="Wed, 22 May 2013 21:12:58 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;renctan&apos;, u&apos;name&apos;: u&apos;Randolph Tan&apos;, u&apos;email&apos;: u&apos;randolph@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt; Add command to cleanup orphaned data created by failed chunk migrations&lt;/p&gt;

&lt;p&gt;Step 4: Delete documents when migration failed or was aborted at destination shard.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/9e29cae9a0293d8aaa31dda4b74e19cbc0ec112a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/9e29cae9a0293d8aaa31dda4b74e19cbc0ec112a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="343121" author="auto" created="Wed, 22 May 2013 21:12:55 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;renctan&apos;, u&apos;name&apos;: u&apos;Randolph Tan&apos;, u&apos;email&apos;: u&apos;randolph@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt; Add command to cleanup orphaned data created by failed chunk migrations&lt;/p&gt;

&lt;p&gt;Step 3: Replace OldDataCleanup with RangeDeleter&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/52e081c9bc5268dddcc3bf7e1df87266d7ea2ec3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/52e081c9bc5268dddcc3bf7e1df87266d7ea2ec3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="337502" author="auto" created="Thu, 16 May 2013 22:19:45 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-05-16T20:00:07Z&apos;, u&apos;name&apos;: u&apos;Greg Studer&apos;, u&apos;email&apos;: u&apos;greg@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8836&quot; title=&quot;sharding/remove2.js failing on Windows with &amp;quot;local database &amp;#39;test&amp;#39; exists&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8836&quot;&gt;&lt;del&gt;SERVER-8836&lt;/del&gt;&lt;/a&gt; remove2.js wait for deletion on migration until the resolution of &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/fe027497e73ea04b82077b9650876c40ea85b6ce&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/fe027497e73ea04b82077b9650876c40ea85b6ce&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="316490" author="auto" created="Thu, 18 Apr 2013 19:06:12 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-04-11T21:05:08Z&apos;, u&apos;name&apos;: u&apos;Randolph Tan&apos;, u&apos;email&apos;: u&apos;randolph@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt; Add command to cleanup orphaned data created by failed chunk migrations&lt;/p&gt;

&lt;p&gt;Added a way to pass index specs for deletion.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/e8129b807c8ac31b34c9c0cb9b5f4d76052453f3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/e8129b807c8ac31b34c9c0cb9b5f4d76052453f3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="316479" author="renctan" created="Thu, 18 Apr 2013 18:55:00 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-04-18T15:46:45Z&apos;, u&apos;name&apos;: u&apos;Randolph Tan&apos;, u&apos;email&apos;: u&apos;randolph@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8589&quot; title=&quot;drop2.js failing under auth&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8589&quot;&gt;&lt;del&gt;SERVER-8589&lt;/del&gt;&lt;/a&gt; Fixed race in range_deleter_test&lt;/p&gt;

&lt;p&gt;Made sure to increment the counter after the event happened, not before.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/8720e07600694c4390faab186ad5da8bdbe49a3a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/8720e07600694c4390faab186ad5da8bdbe49a3a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="316123" author="auto" created="Thu, 18 Apr 2013 10:06:43 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-04-18T10:06:24Z&apos;, u&apos;name&apos;: u&apos;Tad Marshall&apos;, u&apos;email&apos;: u&apos;tad@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt; Visual Studio &amp;#8211; add new files&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/7a24fedbb3cdd55b2d204143a0cc605e391aa884&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/7a24fedbb3cdd55b2d204143a0cc605e391aa884&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="316100" author="auto" created="Thu, 18 Apr 2013 09:17:59 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-04-18T09:17:42Z&apos;, u&apos;name&apos;: u&apos;Tad Marshall&apos;, u&apos;email&apos;: u&apos;tad@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt; Fix Windows compile&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/957dda895f9bc4d481b1e40add92db9a33b46233&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/957dda895f9bc4d481b1e40add92db9a33b46233&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="315838" author="auto" created="Wed, 17 Apr 2013 23:30:12 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-04-01T17:52:58Z&apos;, u&apos;name&apos;: u&apos;Randolph Tan&apos;, u&apos;email&apos;: u&apos;randolph@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt; Add command to cleanup orphaned data created by failed chunk migrations&lt;/p&gt;

&lt;p&gt;Step 2: Implement range deleter.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/61158f0c43993c321176fc0ecf47eb90c6c35dfe&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/61158f0c43993c321176fc0ecf47eb90c6c35dfe&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="315837" author="auto" created="Wed, 17 Apr 2013 23:30:10 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2013-03-29T14:26:07Z&apos;, u&apos;name&apos;: u&apos;Randolph Tan&apos;, u&apos;email&apos;: u&apos;randolph@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8598&quot; title=&quot;Add command to cleanup orphaned data created by failed chunk migrations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8598&quot;&gt;&lt;del&gt;SERVER-8598&lt;/del&gt;&lt;/a&gt; Add command to cleanup orphaned data created by failed chunk migrations&lt;/p&gt;

&lt;p&gt;Step 1: Refactor bson range helpers.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/2e3f2b38accbaf7ba47d39c04dc77caf9d9ed611&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/2e3f2b38accbaf7ba47d39c04dc77caf9d9ed611&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="277586" author="renctan" created="Wed, 27 Feb 2013 23:19:33 +0000"  >&lt;p&gt;Pseudo code in mongos:&lt;/p&gt;

&lt;p&gt;SHARDED-&amp;gt;commandOp(&lt;/p&gt;
{ cleanupOrphanData: &amp;lt;ns&amp;gt; }
&lt;p&gt;)&lt;/p&gt;

&lt;p&gt;Pseudo code in mongod:&lt;/p&gt;

&lt;p&gt;if (isMigrationToHereActive) return false;&lt;/p&gt;

&lt;p&gt;migrateStatus.prepare(); // so no chunks can be sent to this shard&lt;/p&gt;

&lt;p&gt;for (chunk in ChunksIDontOwn) do&lt;br/&gt;
  cleanUpOldData(chunk);&lt;br/&gt;
end&lt;/p&gt;

&lt;p&gt;migrateStatus.setActive(false); // allow chunk migrations to this shard again&lt;/p&gt;

&lt;p&gt;Notes:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;ShardChunkManager only contains information about chunks the shard owns, so we need to manually query for the chunks.&lt;/li&gt;
	&lt;li&gt;I&apos;m not too comfortable about reusing migrateStatus for locking. Should we create a new one?&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Some things to consider:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;secondary throttle?&lt;/li&gt;
&lt;/ul&gt;
</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="67197">SERVER-8838</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="86659">DOCS-1838</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="66408">SERVER-8724</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="93519">SERVER-11104</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="94917">SERVER-11277</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="95770">SERVER-11376</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="39607">SERVER-5931</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="42490">SERVER-6210</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="67165">SERVER-8836</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="94539">SERVER-11227</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="39607">SERVER-5931</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>39.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>Wed, 27 Feb 2013 23:19:33 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 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>true</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>
                            10 years, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></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>auto</customfieldvalue>
            <customfieldvalue>dan@mongodb.com</customfieldvalue>
            <customfieldvalue>greg_10gen</customfieldvalue>
            <customfieldvalue>justanyone</customfieldvalue>
            <customfieldvalue>randolph@mongodb.com</customfieldvalue>
            <customfieldvalue>tubededentifrice</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrn64f:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>43125</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_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|hri45j:</customfieldvalue>

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