<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:46:08 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-81305] Why is the MongoDB prompting to kill op? </title>
                <link>https://jira.mongodb.org/browse/SERVER-81305</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;&lt;font color=&quot;#505f79&quot;&gt;db.getCollection(&apos;dfm_nodeBatchStatus&apos;).remove( {&quot;action&quot;: &quot;SKIP&quot;, &quot;status&quot;: &quot;SKIPPED&quot;,date:{ $lt : new Date(ISODate().getTime() - 1000 * 86400 * 6)} } )&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;font color=&quot;#505f79&quot;&gt;When I run the above command I get prompted with the following:&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;&lt;font color=&quot;#505f79&quot;&gt;&quot;do you want to kill the current op(s) on the server? (y/n)&quot;&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;&lt;font color=&quot;#505f79&quot;&gt;Please can you advise on how this prompt is being triggered and how I can prevent it from happening?&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;&lt;font color=&quot;#505f79&quot;&gt;Here is the full script being executed. The previous commands run fine, I only get prompted for the last remove operation.&lt;br/&gt;
&lt;br/&gt;
use dfm&lt;br/&gt;
db.getCollection(&apos;dfm_nodeBatchStatus&apos;).remove( {&quot;action&quot;: &quot;SKIP&quot;, &quot;status&quot;: &quot;SKIPPED&quot;,date:{ $lt : new Date(ISODate().getTime() - 1000 * 86400 * 15)} } )&lt;br/&gt;
db.getCollection(&apos;dfm_nodeBatchStatus&apos;).remove( {&quot;action&quot;: &quot;SKIP&quot;, &quot;status&quot;: &quot;SKIPPED&quot;,date:{ $lt : new Date(ISODate().getTime() - 1000 * 86400 * 14)} } )&lt;br/&gt;
db.getCollection(&apos;dfm_nodeBatchStatus&apos;).remove( {&quot;action&quot;: &quot;SKIP&quot;, &quot;status&quot;: &quot;SKIPPED&quot;,date:{ $lt : new Date(ISODate().getTime() - 1000 * 86400 * 13)} } )&lt;br/&gt;
db.getCollection(&apos;dfm_nodeBatchStatus&apos;).remove( {&quot;action&quot;: &quot;SKIP&quot;, &quot;status&quot;: &quot;SKIPPED&quot;,date:{ $lt : new Date(ISODate().getTime() - 1000 * 86400 * 12)} } )&lt;br/&gt;
db.getCollection(&apos;dfm_nodeBatchStatus&apos;).remove( {&quot;action&quot;: &quot;SKIP&quot;, &quot;status&quot;: &quot;SKIPPED&quot;,date:{ $lt : new Date(ISODate().getTime() - 1000 * 86400 * 10)} } )&lt;br/&gt;
db.getCollection(&apos;dfm_nodeBatchStatus&apos;).remove( {&quot;action&quot;: &quot;SKIP&quot;, &quot;status&quot;: &quot;SKIPPED&quot;,date:{ $lt : new Date(ISODate().getTime() - 1000 * 86400 * 9)} } )&lt;br/&gt;
db.getCollection(&apos;dfm_nodeBatchStatus&apos;).remove( {&quot;action&quot;: &quot;SKIP&quot;, &quot;status&quot;: &quot;SKIPPED&quot;,date:{ $lt : new Date(ISODate().getTime() - 1000 * 86400 * 8)} } )&lt;br/&gt;
db.getCollection(&apos;dfm_nodeBatchStatus&apos;).remove( {&quot;action&quot;: &quot;SKIP&quot;, &quot;status&quot;: &quot;SKIPPED&quot;,date:{ $lt : new Date(ISODate().getTime() - 1000 * 86400 * 7)} } )&lt;br/&gt;
db.getCollection(&apos;dfm_nodeBatchStatus&apos;).remove( {&quot;action&quot;: &quot;SKIP&quot;, &quot;status&quot;: &quot;SKIPPED&quot;,date:{ $lt : new Date(ISODate().getTime() - 1000 * 86400 * 6)} } )&lt;br/&gt;
exit&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;This is the full output, as you can see it is running the other remove operations fine&lt;/p&gt;

&lt;p&gt;switched to db dfm&lt;br/&gt;
WriteResult({ &quot;nRemoved&quot; : 0 })&lt;br/&gt;
WriteResult({ &quot;nRemoved&quot; : 0 })&lt;br/&gt;
WriteResult({ &quot;nRemoved&quot; : 0 })&lt;br/&gt;
WriteResult({ &quot;nRemoved&quot; : 0 })&lt;br/&gt;
WriteResult({ &quot;nRemoved&quot; : 0 })&lt;br/&gt;
WriteResult({ &quot;nRemoved&quot; : 0 })&lt;br/&gt;
WriteResult({ &quot;nRemoved&quot; : 0 })&lt;br/&gt;
WriteResult({ &quot;nRemoved&quot; : 0 })&lt;/p&gt;

&lt;p&gt;do you want to kill the current op(s) on the server? (y/n): 2023-09-21T05:31:18.493-0700 I CONTROL &#160;&lt;span class=&quot;error&quot;&gt;&amp;#91;main&amp;#93;&lt;/span&gt;&#160;shutting down with code:0&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="2448170">SERVER-81305</key>
            <summary>Why is the MongoDB prompting to kill op? </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="rhea.thorne@mongodb.com">Alison Rhea Thorne</assignee>
                                    <reporter username="sanjay.sanghera@gmail.com">Sanjay Sanghera</reporter>
                        <labels>
                    </labels>
                <created>Thu, 21 Sep 2023 15:47:15 +0000</created>
                <updated>Mon, 2 Oct 2023 17:07:31 +0000</updated>
                            <resolved>Mon, 2 Oct 2023 17:07:31 +0000</resolved>
                                    <version>3.4.24</version>
                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="5745969" author="JIRAUSER1274755" created="Mon, 2 Oct 2023 17:07:31 +0000"  >&lt;p&gt;Thank you for the updated information. However, the version that you are reporting this behavior for has not been maintained for quite some time as noted on our &lt;a href=&quot;https://www.mongodb.com/support-policy/lifecycles&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;MongoDB Software Lifecycle Schedules&lt;/a&gt; page. We are unfortunately unable to help investigate in the SERVER project, which is for bugs and feature requests in current versions. For assistance troubleshooting end of life versions, please post on the &lt;a href=&quot;https://groups.google.com/group/mongodb-user&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;mongodb-user group&lt;/a&gt; or on &lt;a href=&quot;https://stackoverflow.com/questions/tagged/mongodb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Stack Overflow with the &lt;tt&gt;mongodb&lt;/tt&gt; tag&lt;/a&gt;. Alternatively, please open a ticket with a replication of your reported behavior on a maintained version of the MongoDB server (at this time of writing, MongoDB 4.4 and above).&lt;/p&gt;</comment>
                            <comment id="5741040" author="JIRAUSER1275196" created="Fri, 29 Sep 2023 15:25:05 +0000"  >&lt;p&gt;Hi Alison, the Mongo version is 3.4.24 and the collection is 8.9GB&lt;/p&gt;</comment>
                            <comment id="5738548" author="JIRAUSER1274755" created="Thu, 28 Sep 2023 18:00:41 +0000"  >&lt;p&gt;Hello &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=sanjay.sanghera%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;sanjay.sanghera@gmail.com&quot;&gt;sanjay.sanghera@gmail.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thank you for your report! Unfortunately, I seem to be unable to replicate the behavior that you are reporting on the current release of MongoDB (7.0.1 at the time of this writing). I would like to note that the prompt that you are receiving however, should only be encountered in cases where the shell is being requested to kill all ongoing operations (such as on ctrl-c, or exit). That said, I have a few questions regarding your report that should help us determine the cause of this issue:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;What are the current server and mongo shell versions that you are running?&lt;/li&gt;
	&lt;li&gt;How large is the collection in question?&lt;/li&gt;
&lt;/ul&gt;
</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.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 Sep 2023 17:58:18 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        18 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>rhea.thorne@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            18 weeks, 2 days 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>rhea.thorne@mongodb.com</customfieldvalue>
            <customfieldvalue>sanjay.sanghera@gmail.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i2rkbr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i29ihg:</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>
                                    <customfieldvalue><![CDATA[rhea.thorne@mongodb.com]]></customfieldvalue>
    

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

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