<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:21:53 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-9947] Shell is stuck when primary node stopped (Ctrl-z)</title>
                <link>https://jira.mongodb.org/browse/SERVER-9947</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I didn&apos;t see a separate project for the shell, so continuing to send this to core server. Please reroute as needed.&lt;/p&gt;

&lt;p&gt;I believe this is the shell getting stuck, but could potentially be mongos too.&lt;/p&gt;

&lt;p&gt;Bug: When primary node stops (Ctrl-Z) during a query, client (the shell) will wait forever.&lt;/p&gt;

&lt;p&gt;Proposed fix: Client should timeout and error out.&lt;/p&gt;</description>
                <environment>Ubuntu 12.04 and Dell XPS13 laptop</environment>
        <key id="79293">SERVER-9947</key>
            <summary>Shell is stuck when primary node stopped (Ctrl-z)</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="12300">Won&apos;t Do</resolution>
                                        <assignee username="backlog-server-platform">DO NOT USE - Backlog - Platform Team</assignee>
                                    <reporter username="henrik.ingo@mongodb.com">Henrik Ingo</reporter>
                        <labels>
                            <label>nc</label>
                    </labels>
                <created>Mon, 17 Jun 2013 13:06:55 +0000</created>
                <updated>Wed, 27 Oct 2021 21:37:45 +0000</updated>
                            <resolved>Wed, 27 Oct 2021 17:25:23 +0000</resolved>
                                    <version>2.4.4</version>
                                                    <component>Shell</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="361718" author="scotthernandez" created="Mon, 17 Jun 2013 13:14:55 +0000"  >&lt;p&gt;The project is correct and the component should be &quot;Shell&quot;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="16268">SERVER-2986</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="27975" name="rstest.sh" size="230" author="henrik.ingo@mongodb.com" created="Mon, 17 Jun 2013 13:06:55 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 17 Jun 2013 13:14:55 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            10 years, 35 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="10020"><![CDATA[Linux]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-server-platform</customfieldvalue>
            <customfieldvalue>henrik.ingo@mongodb.com</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmq0n:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7174</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_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;1) Setup a config server, a mongos and 3 replicaset members.&lt;/p&gt;

&lt;p&gt;2) Run the primary node in a shell and in foreground (without --fork).&lt;/p&gt;

&lt;p&gt;3) Run attached &lt;b&gt;rstest.sh&lt;/b&gt; to create an insert load via mongos to the primary.&lt;/p&gt;

&lt;p&gt;4) Stop the primary node with Ctrl-Z.&lt;/p&gt;

&lt;p&gt;5) Wait forever&lt;/p&gt;

&lt;p&gt;6) Notice that rstest.sh is stuck and not inserting anything anymore, even if a new primary is available and known to mongos.&lt;/p&gt;

&lt;p&gt;7) press Ctrl-C in the rstest.sh shell. (twice)&lt;/p&gt;

&lt;p&gt;hingo@hingo-sputnik:~/hacking/rstests$ ./rstest.sh &lt;br/&gt;
Mon Jun 17 10:43:18 EEST 2013&lt;br/&gt;
MongoDB shell version: 2.4.4&lt;br/&gt;
connecting to: hingo-sputnik:27000/rstest&lt;br/&gt;
bye&lt;br/&gt;
Mon Jun 17 10:43:19 EEST 2013&lt;br/&gt;
*****************************************************&lt;br/&gt;
Mon Jun 17 10:43:20 EEST 2013&lt;br/&gt;
MongoDB shell version: 2.4.4&lt;br/&gt;
connecting to: hingo-sputnik:27000/rstest&lt;/p&gt;


&lt;p&gt;--&amp;gt; Notice many minutes pass by:&lt;/p&gt;

&lt;p&gt;^CMon Jun 17 10:46:03.942 Assertion: 13111:field not found, expected type 2&lt;br/&gt;
0x7495d1 0x71189b 0x711ddc 0x5f3c76 0x5dc554 0x7f514e48d4a0 0x7f514f23f14a 0x738aa3 0x738ab9 0x73cd05 0x73566c 0x7375db 0x737a94 0x64ce0f 0x67ab37 0x63dd4a 0x657b11 0x705efc 0x6e8a70 0x82ef62 &lt;br/&gt;
 mongo(_ZN5mongo15printStackTraceERSo+0x21) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7495d1&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo11msgassertedEiPKc+0x9b) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x71189b&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x711ddc&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZNK5mongo11shell_utils18ConnectionRegistry30killOperationsOnAllConnectionsEb+0x1526) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5f3c76&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_Z10quitNicelyi+0x24) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5dc554&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/x86_64-linux-gnu/libc.so.6(+0x364a0) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f514e48d4a0&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/x86_64-linux-gnu/libpthread.so.0(recv+0x6a) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f514f23f14a&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo6Socket5_recvEPci+0x13) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x738aa3&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo6Socket11unsafe_recvEPci+0x9) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x738ab9&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo6Socket4recvEPci+0x75) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x73cd05&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo13MessagingPort4recvERNS_7MessageE+0x8c) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x73566c&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;0x7375db&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;0x737a94&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo18DBClientConnection4callERNS_7MessageES2_bPSs+0x4f) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x64ce0f&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo14DBClientCursor4initEv+0xb7) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x67ab37&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo12DBClientBase5queryERKSsNS_5QueryEiiPKNS_7BSONObjEii+0xea) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x63dd4a&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo18DBClientConnection5queryERKSsNS_5QueryEiiPKNS_7BSONObjEii+0xa1) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x657b11&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo9mongoFindEPNS_7V8ScopeERKN2v89ArgumentsE+0x42c) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x705efc&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo7V8Scope10v8CallbackERKN2v89ArgumentsE+0xb0) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6e8a70&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x82ef62&amp;#93;&lt;/span&gt;&lt;br/&gt;
Mon Jun 17 10:46:03.958 JavaScript execution failed: Error: field not found, expected type 2 at src/mongo/shell/query.js:L78&lt;/p&gt;

&lt;p&gt;^CMon Jun 17 10:46:14.853 Assertion: 13111:field not found, expected type 2&lt;br/&gt;
0x7495d1 0x71189b 0x711ddc 0x5f3c76 0x5dc554 0x7f514e48d4a0 0x7f514f23bd82 0x6ff469 0x792b79 0x7f514f237e9a 0x7f514e54accd &lt;br/&gt;
 mongo(_ZN5mongo15printStackTraceERSo+0x21) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7495d1&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo11msgassertedEiPKc+0x9b) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x71189b&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x711ddc&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZNK5mongo11shell_utils18ConnectionRegistry30killOperationsOnAllConnectionsEb+0x1526) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5f3c76&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_Z10quitNicelyi+0x24) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5dc554&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/x86_64-linux-gnu/libc.so.6(+0x364a0) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f514e48d4a0&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;0x7f514f23bd82&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo15DeadlineMonitorINS_7V8ScopeEE21deadlineMonitorThreadEv+0x3b9) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6ff469&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x792b79&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f514f237e9a&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;0x7f514e54accd&amp;#93;&lt;/span&gt;&lt;br/&gt;
Mon Jun 17 10:46:14.858 terminate() called in shell, printing stack:&lt;br/&gt;
0x7495d1 0x5dc36e 0x7f514eddd846 0x7f514eddd873 0x7f514eddd96e 0x711941 0x711ddc 0x5f3c76 0x5dc554 0x7f514e48d4a0 0x7f514f23bd82 0x6ff469 0x792b79 0x7f514f237e9a 0x7f514e54accd &lt;br/&gt;
 mongo(_ZN5mongo15printStackTraceERSo+0x21) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7495d1&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_Z11myterminatev+0x3e) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5dc36e&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0xb5846) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f514eddd846&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0xb5873) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f514eddd873&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/lib/x86_64-linux-gnu/libstdc++.so.6(+0xb596e) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f514eddd96e&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo11msgassertedEiPKc+0x141) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x711941&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x711ddc&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZNK5mongo11shell_utils18ConnectionRegistry30killOperationsOnAllConnectionsEb+0x1526) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5f3c76&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_Z10quitNicelyi+0x24) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5dc554&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/x86_64-linux-gnu/libc.so.6(+0x364a0) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f514e48d4a0&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;0x7f514f23bd82&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo(_ZN5mongo15DeadlineMonitorINS_7V8ScopeEE21deadlineMonitorThreadEv+0x3b9) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6ff469&amp;#93;&lt;/span&gt;&lt;br/&gt;
 mongo() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x792b79&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f514f237e9a&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;0x7f514e54accd&amp;#93;&lt;/span&gt;&lt;br/&gt;
Mon Jun 17 10:46:14 EEST 2013&lt;br/&gt;
*****************************************************&lt;br/&gt;
Mon Jun 17 10:46:15 EEST 2013&lt;br/&gt;
MongoDB shell version: 2.4.4&lt;br/&gt;
connecting to: hingo-sputnik:27000/rstest&lt;br/&gt;
bye&lt;br/&gt;
Mon Jun 17 10:46:15 EEST 2013&lt;br/&gt;
*****************************************************&lt;br/&gt;
Mon Jun 17 10:46:16 EEST 2013&lt;br/&gt;
MongoDB shell version: 2.4.4&lt;br/&gt;
connecting to: hingo-sputnik:27000/rstest&lt;br/&gt;
bye&lt;br/&gt;
Mon Jun 17 10:46:17 EEST 2013&lt;/p&gt;
</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrlgzz:</customfieldvalue>

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