<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:05:00 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-23975] migrating chunks from one shard to another which is also set to be removed</title>
                <link>https://jira.mongodb.org/browse/SERVER-23975</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;We are migrating data from a legacy set of shards to a new set.  Looking at the logs I see that it is moving chunks from one shard to another which is also in the set of shards to be removed.  Of course this means that the contents of that chunk are going to be migrated more than 1 time, making the already painfully slow balancing process even worse.&lt;/p&gt;

&lt;p&gt;Here&apos;s an excerpt from the log showing that it is moving a chunk from Shard_18 to Shard_83:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;Apr 28 12:33:48 chron-queryb ip-10-43-48-90:  docker/mongowt[5237]:  2016-04-28T19:33:48.295+0000 I NETWORK  [conn1822] end connection 172.17.0.1:41782 (3 connections now open)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;Apr 28 12:34:01 chron-queryb ip-10-43-48-90:  docker/shardstrap[5237]:  [INFO] - Shard(s) to remove: set([u&apos;Shard_26&apos;, u&apos;Shard_73&apos;, u&apos;Shard_52&apos;, u&apos;Shard_77&apos;, u&apos;Shard_89&apos;, u&apos;Shard_88&apos;, u&apos;Shard_87&apos;, u&apos;Shard_86&apos;, u&apos;Shard_85&apos;, u&apos;Shard_84&apos;, u&apos;Shard_83&apos;, u&apos;Shard_82&apos;, u&apos;Shard_81&apos;, u&apos;Shard_80&apos;, u&apos;Shard_29&apos;, u&apos;Shard_28&apos;, u&apos;Shard_25&apos;, u&apos;Shard_24&apos;, u&apos;Shard_27&apos;, u&apos;Shard_53&apos;, u&apos;Shard_21&apos;, u&apos;Shard_20&apos;, u&apos;Shard_23&apos;, u&apos;Shard_22&apos;, u&apos;Shard_61&apos;, u&apos;Shard_60&apos;, u&apos;Shard_63&apos;, u&apos;Shard_62&apos;, u&apos;Shard_65&apos;, u&apos;Shard_64&apos;, u&apos;Shard_67&apos;, u&apos;Shard_66&apos;, u&apos;Shard_69&apos;, u&apos;Shard_68&apos;, u&apos;Shard_41&apos;, u&apos;Shard_40&apos;, u&apos;Shard_47&apos;, u&apos;Shard_46&apos;, u&apos;Shard_45&apos;, u&apos;Shard_44&apos;, u&apos;Shard_48&apos;, u&apos;Shard_71&apos;, u&apos;Shard_54&apos;, u&apos;Shard_79&apos;, u&apos;Shard_100&apos;, u&apos;Shard_50&apos;, u&apos;Shard_98&apos;, u&apos;Shard_99&apos;, u&apos;Shard_49&apos;, u&apos;Shard_42&apos;, u&apos;Shard_94&apos;, u&apos;Shard_95&apos;, u&apos;Shard_96&apos;, u&apos;Shard_97&apos;, u&apos;Shard_90&apos;, u&apos;Shard_91&apos;, u&apos;Shard_92&apos;, u&apos;Shard_93&apos;, u&apos;Shard_38&apos;, u&apos;Shard_39&apos;, u&apos;Shard_43&apos;, u&apos;Shard_55&apos;, u&apos;Shard_32&apos;, u&apos;Shard_72&apos;, u&apos;Shard_30&apos;, u&apos;Shard_31&apos;, u&apos;Shard_36&apos;, u&apos;Shard_37&apos;, u&apos;Shard_34&apos;, u&apos;Shard_35&apos;, u&apos;Shard_58&apos;, u&apos;Shard_59&apos;, u&apos;Shard_70&apos;, u&apos;Shard_78&apos;, u&apos;Shard_33&apos;, u&apos;Shard_76&apos;, u&apos;Shard_51&apos;, u&apos;Shard_74&apos;, u&apos;Shard_75&apos;, u&apos;Shard_18&apos;, u&apos;Shard_19&apos;, u&apos;Shard_56&apos;, u&apos;Shard_57&apos;])&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;Apr 28 12:34:01 chron-queryb ip-10-43-48-90:  docker/shardstrap[5237]:  [ERROR] - Manual shard removal needed/in progress -OR- Critical error is occuring&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;Apr 28 12:34:01 chron-queryb ip-10-43-48-90:  docker/shardstrap[5237]:  [INFO] - Sleeping for 600&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;Apr 28 12:34:04 chron-queryb ip-10-43-48-90:  docker/mongowt[5237]:  2016-04-28T19:34:04.005+0000 I SHARDING [Balancer] ChunkManager: time to load chunks for google_us.review: 22ms sequenceNumber: 60 version: 8598|1||557fc21623a54038a6930db5 based on: 8597|1||557fc21623a54038a6930db5&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;Apr 28 12:34:04 chron-queryb ip-10-43-48-90:  docker/mongowt[5237]:  2016-04-28T19:34:04.025+0000 I SHARDING [Balancer] moving chunk ns: google_us.recommended moving ( ns: google_us.recommended, shard: Shard_18:Shard_18/10.37.28.238:27018,10.37.41.191:27018,10.43.26.234:27018, lastmod: 12|0||000000000000000000000000, min: { app_id: &quot;com.amazesoft.collage.mania&quot; }, max: { app_id: &quot;com.anip.wallpaper.live.moonlight&quot; }) Shard_18:Shard_18/10.37.28.238:27018,10.37.41.191:27018,10.43.26.234:27018 -&amp;gt; Shard_83:Shard_83/10.37.24.79:27018,10.37.44.232:27018,10.43.31.196:27018&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;</description>
                <environment></environment>
        <key id="283184">SERVER-23975</key>
            <summary>migrating chunks from one shard to another which is also set to be removed</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="-1">Unassigned</assignee>
                                    <reporter username="robreid">Rob Reid</reporter>
                        <labels>
                    </labels>
                <created>Thu, 28 Apr 2016 19:42:32 +0000</created>
                <updated>Wed, 4 May 2016 05:37:15 +0000</updated>
                            <resolved>Fri, 29 Apr 2016 17:00:22 +0000</resolved>
                                    <version>3.0.6</version>
                                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="1254455" author="kevin.pulo@10gen.com" created="Wed, 4 May 2016 05:36:52 +0000"  >&lt;p&gt;As explained on &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-11328&quot; title=&quot;Allow concurrent draining shards&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-11328&quot;&gt;&lt;del&gt;SERVER-11328&lt;/del&gt;&lt;/a&gt;, a workaround is to use the &quot;maxSize&quot; option to prevent chunks from being migrated onto shards that you know are also going to be removed soon.&lt;/p&gt;</comment>
                            <comment id="1254009" author="robreid" created="Tue, 3 May 2016 19:38:03 +0000"  >&lt;p&gt;FYI, I&apos;ve now come to understand that the source of my confusion was the intermingling of log data from 2 different sources.  The output indicating that a set of shards is set to be removed was from a script by our OPS team.&lt;/p&gt;</comment>
                            <comment id="1252891" author="ramon.fernandez" created="Tue, 3 May 2016 00:27:48 +0000"  >&lt;p&gt;Please see also &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-24006&quot; title=&quot;Allow multiple shards to be marked as &amp;#39;draining&amp;#39; at the same time&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-24006&quot;&gt;&lt;del&gt;SERVER-24006&lt;/del&gt;&lt;/a&gt;, which is open to add support for multiple draining shards when using &lt;a href=&quot;https://docs.mongodb.org/manual/core/sharded-cluster-config-servers/#replica-set-config-servers&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Replica Set Config Servers&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="1250815" author="ramon.fernandez" created="Fri, 29 Apr 2016 19:38:06 +0000"  >&lt;p&gt;I&apos;ve opened &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-7777&quot; title=&quot;removeShard docs should note that only one shard can be in draining state&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-7777&quot;&gt;&lt;del&gt;DOCS-7777&lt;/del&gt;&lt;/a&gt; to enhance the docs about draining state. If you feel there should be a feature to mark multiple shards for removal feel free to open a new ticket &amp;#8211; but if I understand your use case correctly, the best way to do what you need to do is not by removing multiple shards but by upgrading them with the new hardware via the replication subsystem (which will be much faster).&lt;/p&gt;</comment>
                            <comment id="1250571" author="robreid" created="Fri, 29 Apr 2016 17:10:28 +0000"  >&lt;p&gt;I understand that only one shard can be in draining state at once.  I was surprised that multiple shards could be marked for removal.  I haven&apos;t seen that documented.&lt;/p&gt;</comment>
                            <comment id="1250559" author="ramon.fernandez" created="Fri, 29 Apr 2016 16:59:20 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=robreid&quot; class=&quot;user-hover&quot; rel=&quot;robreid&quot;&gt;robreid&lt;/a&gt;, in a sharded cluster only one shard can be in &lt;tt&gt;draining&lt;/tt&gt; state. Here&apos;s an example on a local setup:&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;mongos&amp;gt; db.runCommand({removeShard: &quot;shard01&quot;})&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;{&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;        &quot;msg&quot; : &quot;draining started successfully&quot;,&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;        &quot;state&quot; : &quot;started&quot;,&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;        &quot;shard&quot; : &quot;shard01&quot;,&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;        &quot;note&quot; : &quot;you need to drop or movePrimary these databases&quot;,&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;        &quot;dbsToMove&quot; : [&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;                &quot;test&quot;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;        ],&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;        &quot;ok&quot; : 1&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;mongos&amp;gt; db.runCommand({removeShard: &quot;shard02&quot;})&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;{&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;        &quot;ok&quot; : 0,&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;        &quot;errmsg&quot; : &quot;Can&apos;t have more than one draining shard at a time&quot;,&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;        &quot;code&quot; : 117&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;}&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;Other than the corner case described in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-18352&quot; title=&quot;Prevent shards that are in the process of being removed from accepting new chunks&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-18352&quot;&gt;&lt;del&gt;SERVER-18352&lt;/del&gt;&lt;/a&gt; (which is not what you&apos;re observing) this is expected behavior, so I&apos;m going to resolve this ticket.&lt;/p&gt;

&lt;p&gt;Please take a look at the &lt;a href=&quot;https://docs.mongodb.org/manual/tutorial/migrate-sharded-cluster-to-new-hardware/#migrate-a-sharded-cluster-to-different-hardware&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;documentation to migrate a sharded cluster to new hardware&lt;/a&gt;. Assuming your shards are replica set, the preferred approach is to replace replica set members, not complete shards; this will accomplish the upgrade via initial syncs as opposed to chunk migrations.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Ram&#243;n.&lt;/p&gt;</comment>
                            <comment id="1249687" author="robreid" created="Thu, 28 Apr 2016 20:51:16 +0000"  >&lt;p&gt;These are from a PaperTrail presentation which includes log entries for many hosts.  I don&apos;t believe I can access the logs directly.&lt;/p&gt;

&lt;p&gt;My understanding is that the OPS team executed a loop to make removeShard calls for each of the specific shards.    It was supposed to only submit one shard at a time, and block on submitting further shards until that one shard was removed.  The config.shards collection shows only one shard in &quot;draining&quot; state.  But the set in the log, &quot;Shard(s) to remove&quot;, suggests that they were all submitted.&lt;/p&gt;</comment>
                            <comment id="1249652" author="ramon.fernandez" created="Thu, 28 Apr 2016 20:32:35 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=robreid&quot; class=&quot;user-hover&quot; rel=&quot;robreid&quot;&gt;robreid&lt;/a&gt;, can you please elaborate on how are you removing the old shards and how are the non-mongod log lines above being generated? Are you running the balancer or manually moving chunks?&lt;/p&gt;

&lt;p&gt;It is possible you&apos;re running into &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-18352&quot; title=&quot;Prevent shards that are in the process of being removed from accepting new chunks&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-18352&quot;&gt;&lt;del&gt;SERVER-18352&lt;/del&gt;&lt;/a&gt;, which can happen when the balancer has chosen a receiver shard before that shard has been marked as &quot;draining&quot;, or on a manual chunk move. If you could provide full logs for this cluster we could take a look to make sure you haven&apos;t found a novel bug in chunk migration.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Ram&#243;n.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="95395">SERVER-11328</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="283819">SERVER-24006</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>8.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 Apr 2016 20:32:35 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        7 years, 41 weeks 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>kevin.pulo@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            7 years, 41 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>kevin.pulo@mongodb.com</customfieldvalue>
            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>
            <customfieldvalue>robreid</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrk8yv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hskwzr:</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_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|hsezfr:</customfieldvalue>

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