<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:24:14 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-10853] Shard collection commands hangs indefinitely</title>
                <link>https://jira.mongodb.org/browse/SERVER-10853</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;We have a simple sharded deployment 2 shards SH01 and SH02&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;We have relatively big collection video.plays&lt;/p&gt;

&lt;p&gt;mongos&amp;gt; db.video.plays.stats()&lt;br/&gt;
{&lt;br/&gt;
	&quot;sharded&quot; : false,&lt;br/&gt;
	&quot;primary&quot; : &quot;SH01&quot;,&lt;br/&gt;
	&quot;ns&quot; : &quot;reportsRaw.video.plays&quot;,&lt;br/&gt;
	&quot;count&quot; : 208594003,&lt;br/&gt;
	&quot;size&quot; : 34875392112,&lt;br/&gt;
	&quot;avgObjSize&quot; : 167.1926882385013,&lt;br/&gt;
	&quot;storageSize&quot; : 39355395856,&lt;br/&gt;
	&quot;numExtents&quot; : 39,&lt;br/&gt;
	&quot;nindexes&quot; : 2,&lt;br/&gt;
	&quot;lastExtentSize&quot; : 2146426864,&lt;br/&gt;
	&quot;paddingFactor&quot; : 1,&lt;br/&gt;
	&quot;systemFlags&quot; : 1,&lt;br/&gt;
	&quot;userFlags&quot; : 0,&lt;br/&gt;
	&quot;totalIndexSize&quot; : 27328222768,&lt;br/&gt;
	&quot;indexSizes&quot; : &lt;/p&gt;
{
		&quot;_id_&quot; : 6154320480,
		&quot;cid_1_bid_1_pid_1_date_1&quot; : 21173902288
	}
&lt;p&gt;,&lt;br/&gt;
	&quot;ok&quot; : 1&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;Notice that I added index &lt;/p&gt;
{ cid: 1, bid: 1, pid: 1, date: 1 }

&lt;p&gt;Now I am trying to shard this collection and issuing the following command from one of the mongos hosts in our cluster:&lt;/p&gt;

&lt;p&gt;db.runCommand({ shardCollection: &quot;reportsRaw.video.plays&quot;, key: { cid: 1, bid: 1, pid: 1, date: 1}})&lt;/p&gt;

&lt;p&gt;This command gets stuck and doesn&apos;t do anything:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;shard logs don&apos;t show anything&lt;/li&gt;
	&lt;li&gt;mongo shell hangs and nothing happens for really long time&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;When I Control-C from the shell I see the following output:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;mongos&amp;gt; db.runCommand({ shardCollection: &quot;reportsRaw.video.plays&quot;, key: { cid: 1, bid: 1, pid: 1, date: 1}})&lt;/p&gt;



&lt;p&gt;^CMon Sep 23 18:37:12.003 Assertion: 13111:field not found, expected type 2&lt;br/&gt;
0x74e711 0x71778b 0x717ccc 0x5f43e6 0x5dccb4 0x7fee481b40b0 0x7fee48f7a085 0x73da43 0x73da59 0x741e45 0x73a60c 0x73c57b 0x73ca34 0x64d6ef 0x67de37 0x63e62a 0x658411 0x70bd17 0x6ec53c 0x2c6cda94bcf7&lt;br/&gt;
 mongo(_ZN5mongo15printStackTraceERSo+0x21) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x74e711&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo11msgassertedEiPKc+0x9b) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x71778b&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x717ccc&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZNK5mongo11shell_utils18ConnectionRegistry30killOperationsOnAllConnectionsEb+0x1526) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5f43e6&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_Z10quitNicelyi+0x24) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5dccb4&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/x86_64-linux-gnu/libc.so.6(+0x370b0) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7fee481b40b0&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/x86_64-linux-gnu/libpthread.so.0(recv+0x75) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7fee48f7a085&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo6Socket5_recvEPci+0x13) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x73da43&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo6Socket11unsafe_recvEPci+0x9) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x73da59&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo6Socket4recvEPci+0x75) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x741e45&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo13MessagingPort4recvERNS_7MessageE+0x8c) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x73a60c&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(&lt;em&gt;ZN5mongo13MessagingPort4recvERKNS_7MessageERS1&lt;/em&gt;+0x1b) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x73c57b&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(&lt;em&gt;ZN5mongo13MessagingPort4callERNS_7MessageES2&lt;/em&gt;+0x34) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x73ca34&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo18DBClientConnection4callERNS_7MessageES2_bPSs+0x4f) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x64d6ef&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo14DBClientCursor4initEv+0xb7) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x67de37&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo12DBClientBase5queryERKSsNS_5QueryEiiPKNS_7BSONObjEii+0xea) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x63e62a&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo18DBClientConnection5queryERKSsNS_5QueryEiiPKNS_7BSONObjEii+0xa1) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x658411&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo9mongoFindEPNS_7V8ScopeERKN2v89ArgumentsE+0x387) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x70bd17&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo7V8Scope10v8CallbackERKN2v89ArgumentsE+0xdc) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6ec53c&amp;#93;&lt;/span&gt;&lt;br/&gt;
 &lt;span class=&quot;error&quot;&gt;&amp;#91;0x2c6cda94bcf7&amp;#93;&lt;/span&gt;&lt;br/&gt;
Mon Sep 23 18:37:12.056 Error: field not found, expected type 2 at src/mongo/shell/query.js:78&lt;br/&gt;
^CMon Sep 23 18:37:25.357 Assertion: 13111:field not found, expected type 2&lt;br/&gt;
0x74e711 0x71778b 0x717ccc 0x5f43e6 0x5dccb4 0x7fee481b40b0 0x7fee48f76ca2 0x7053da 0x797d99 0x7fee48f72f8e 0x7fee48276e1d&lt;br/&gt;
 mongo(_ZN5mongo15printStackTraceERSo+0x21) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x74e711&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo11msgassertedEiPKc+0x9b) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x71778b&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x717ccc&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZNK5mongo11shell_utils18ConnectionRegistry30killOperationsOnAllConnectionsEb+0x1526) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5f43e6&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_Z10quitNicelyi+0x24) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5dccb4&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/x86_64-linux-gnu/libc.so.6(+0x370b0) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7fee481b40b0&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/x86_64-linux-gnu/libpthread.so.0(pthread_cond_wait+0xc2) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7fee48f76ca2&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo15DeadlineMonitorINS_7V8ScopeEE21deadlineMonitorThreadEv+0x56a) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7053da&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x797d99&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/x86_64-linux-gnu/libpthread.so.0(+0x7f8e) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7fee48f72f8e&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7fee48276e1d&amp;#93;&lt;/span&gt;&lt;br/&gt;
Mon Sep 23 18:37:25.360 terminate() called in shell, printing stack:&lt;br/&gt;
0x74e711 0x5dcace 0x7fee48abef76 0x7fee48abefa3 0x7fee48abf1de 0x717831 0x717ccc 0x5f43e6 0x5dccb4 0x7fee481b40b0 0x7fee48f76ca2 0x7053da 0x797d99 0x7fee48f72f8e 0x7fee48276e1d&lt;br/&gt;
 mongo(_ZN5mongo15printStackTraceERSo+0x21) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x74e711&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_Z11myterminatev+0x3e) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5dcace&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x5ef76) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7fee48abef76&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x5efa3) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7fee48abefa3&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0x5f1de) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7fee48abf1de&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo11msgassertedEiPKc+0x141) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x717831&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x717ccc&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZNK5mongo11shell_utils18ConnectionRegistry30killOperationsOnAllConnectionsEb+0x1526) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5f43e6&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_Z10quitNicelyi+0x24) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5dccb4&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/x86_64-linux-gnu/libc.so.6(+0x370b0) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7fee481b40b0&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/x86_64-linux-gnu/libpthread.so.0(pthread_cond_wait+0xc2) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7fee48f76ca2&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo15DeadlineMonitorINS_7V8ScopeEE21deadlineMonitorThreadEv+0x56a) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7053da&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x797d99&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/x86_64-linux-gnu/libpthread.so.0(+0x7f8e) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7fee48f72f8e&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7fee48276e1d&amp;#93;&lt;/span&gt;&lt;/p&gt;&lt;/blockquote&gt;</description>
                <environment>Ubuntu, EC2</environment>
        <key id="91149">SERVER-10853</key>
            <summary>Shard collection commands hangs indefinitely</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="paulgpa">Pavlo Grinchenko</reporter>
                        <labels>
                    </labels>
                <created>Mon, 23 Sep 2013 18:46:23 +0000</created>
                <updated>Tue, 24 Sep 2013 16:15:24 +0000</updated>
                            <resolved>Tue, 24 Sep 2013 16:15:24 +0000</resolved>
                                    <version>2.4.6</version>
                                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="430072" author="paulgpa" created="Mon, 23 Sep 2013 22:17:21 +0000"  >&lt;p&gt;OK - apparently collection started to shard. But operational experience was less than stellar.&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;we initiated sharding&lt;/li&gt;
	&lt;li&gt;in 1.5 hour we got message that it will compute split vectors&lt;/li&gt;
	&lt;li&gt;after that it locked our database for 0.5 hour and we couldn&apos;t do anything with db&lt;/li&gt;
	&lt;li&gt;after that it started to move chunks and db unblocked&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;For the live system this behavior is slightly problematic. Please close this issue.&lt;/p&gt;</comment>
                            <comment id="429923" author="paulgpa" created="Mon, 23 Sep 2013 19:06:22 +0000"  >&lt;p&gt;Any ideas why this could be happening? Other than that our cluster functions properly, but we are stuck with not being able to shard our biggest collections.&lt;/p&gt;

&lt;p&gt;Usually when we initiate sharding we see split chunks messages in the shard server logs - now we don&apos;t see anything.&lt;/p&gt;

&lt;p&gt;Would appreciate your assistance&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 21 weeks, 2 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>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, 21 weeks, 2 days 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>paulgpa</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmfn3:</customfieldvalue>

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

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

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