<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:24:38 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-11012] Mongo - collection gets stuck after long running client connection </title>
                <link>https://jira.mongodb.org/browse/SERVER-11012</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Our application opens a long running transaction that pulls 100k records out of mongo.&lt;/p&gt;

&lt;p&gt;Generating the report out of the application can take many minutes depending on the size of the reports.&lt;/p&gt;

&lt;p&gt;If a user just exits the grails application without waiting for completion the collection being queried gets &quot;stuck&quot; and mongoDB experiences significant slowdown.&lt;/p&gt;

&lt;p&gt;There is no indication in the mongo log that anything is awry.&lt;/p&gt;</description>
                <environment>Linux, VMWARE, NAS&lt;br/&gt;
&lt;br/&gt;
Grails 1.3.5, gmongo 0.5.0, java-driver 2.11.1</environment>
        <key id="92481">SERVER-11012</key>
            <summary>Mongo - collection gets stuck after long running client connection </summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.mongodb.org/images/icons/priorities/blocker.svg">Blocker - P1</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="ilasic">igor lasic</reporter>
                        <labels>
                    </labels>
                <created>Wed, 2 Oct 2013 21:01:21 +0000</created>
                <updated>Wed, 10 Dec 2014 23:19:07 +0000</updated>
                            <resolved>Wed, 19 Mar 2014 08:32:14 +0000</resolved>
                                    <version>2.2.4</version>
                                                    <component>Stability</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="519035" author="stennie" created="Wed, 19 Mar 2014 08:32:14 +0000"  >&lt;p&gt;Hi Igor,&lt;/p&gt;

&lt;p&gt;Please be advised I&apos;m now closing this issue as we do not have enough details to investigate the problem.&lt;/p&gt;

&lt;p&gt;If you do have any further information that would help us reproduce this issue, please let us know.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Stephen&lt;/p&gt;</comment>
                            <comment id="439640" author="dan@10gen.com" created="Fri, 11 Oct 2013 15:57:27 +0000"  >&lt;p&gt;can you run an explain() on the query you sent and post the output?&lt;/p&gt;</comment>
                            <comment id="438017" author="ilasic" created="Wed, 9 Oct 2013 13:28:39 +0000"  >&lt;p&gt;I had a long running query that was sorting on &quot;_id&quot;.&lt;/p&gt;

&lt;p&gt;There is an index on reportSectionId and there are 170 million entries in the reportDetail collection (therefore 170M _id) entries.&lt;/p&gt;

&lt;p&gt;My question is why didn&apos;t the sorting happen only on the entries that are chosen by the reportSectionId? Why did the scan have to look at more data?&lt;/p&gt;

&lt;p&gt;&quot;$query&quot; :&lt;/p&gt;
{ &quot;reportSectionId&quot; : ObjectId(&quot;523c6698ad8dae84334b090a&quot;) }
&lt;p&gt;,&lt;br/&gt;
&quot;$orderby&quot; :&lt;/p&gt;
{ &quot;_id&quot; : 1 }</comment>
                            <comment id="437886" author="dan@10gen.com" created="Wed, 9 Oct 2013 03:37:41 +0000"  >&lt;p&gt;The currentOp output shows that the query is still running, and has taken 518 seconds.  I can&apos;t think what impact exiting the client application would have on the database.  Do you have any more information?&lt;/p&gt;</comment>
                            <comment id="435483" author="ilasic" created="Thu, 3 Oct 2013 21:46:06 +0000"  >&lt;p&gt;&amp;gt; db.currentOp()&lt;br/&gt;
{&lt;br/&gt;
        &quot;inprog&quot; : [&lt;br/&gt;
                {&lt;br/&gt;
                        &quot;opid&quot; : 107117,&lt;br/&gt;
                        &quot;active&quot; : true,&lt;br/&gt;
                        &quot;secs_running&quot; : 518,&lt;br/&gt;
                        &quot;op&quot; : &quot;query&quot;,&lt;br/&gt;
                        &quot;ns&quot; : &quot;ihm.reportDetail&quot;,&lt;br/&gt;
                        &quot;query&quot; : {&lt;br/&gt;
                                &quot;$query&quot; : &lt;/p&gt;
{
                                        &quot;reportSectionId&quot; : ObjectId(&quot;523c6698ad8dae84334b090a&quot;)
                                }
&lt;p&gt;,&lt;br/&gt;
                                &quot;$orderby&quot; : &lt;/p&gt;
{
                                        &quot;_id&quot; : 1
                                }
&lt;p&gt;,&lt;br/&gt;
                                &quot;$readPreference&quot; : &lt;/p&gt;
{
                                        &quot;mode&quot; : &quot;primary&quot;
                                }
&lt;p&gt;                        },&lt;br/&gt;
                        &quot;client&quot; : &quot;10.84.150.155:57622&quot;,&lt;br/&gt;
                        &quot;desc&quot; : &quot;conn10&quot;,&lt;br/&gt;
                        &quot;threadId&quot; : &quot;0x7f4693e2d700&quot;,&lt;br/&gt;
                        &quot;connectionId&quot; : 10,&lt;br/&gt;
                        &quot;locks&quot; : &lt;/p&gt;
{
                                &quot;^&quot; : &quot;r&quot;,
                                &quot;^ihm&quot; : &quot;R&quot;
                        }
&lt;p&gt;,&lt;br/&gt;
                        &quot;waitingForLock&quot; : false,&lt;br/&gt;
                        &quot;numYields&quot; : 8638,&lt;br/&gt;
                        &quot;lockStats&quot; : {&lt;br/&gt;
                                &quot;timeLockedMicros&quot; : &lt;/p&gt;
{
                                        &quot;r&quot; : NumberLong(1016557841),
                                        &quot;w&quot; : NumberLong(0)
                                }
&lt;p&gt;,&lt;br/&gt;
                                &quot;timeAcquiringMicros&quot; : &lt;/p&gt;
{
                                        &quot;r&quot; : NumberLong(518868123),
                                        &quot;w&quot; : NumberLong(0)
                                }
&lt;p&gt;                        }&lt;br/&gt;
                },&lt;/p&gt;</comment>
                            <comment id="435020" author="dan@10gen.com" created="Thu, 3 Oct 2013 05:42:07 +0000"  >&lt;p&gt;Can you post &lt;tt&gt;db.currentOp()&lt;/tt&gt; during an incident?&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>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 3 Oct 2013 05:42:07 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            9 years, 48 weeks ago
                        </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>dan@mongodb.com</customfieldvalue>
            <customfieldvalue>ilasic</customfieldvalue>
            <customfieldvalue>stephen.steneker@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmdtb:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>84636</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;Start long running transaction and kill the web client.&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|hsp9uv:</customfieldvalue>

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