<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:39:54 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>[CSHARP-1536] Cursor do not get closed</title>
                <link>https://jira.mongodb.org/browse/CSHARP-1536</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;Hi everyone&lt;/p&gt;

&lt;p&gt;Last week I have installed 2.1.1.5 (we used old legacy driver before) and noticed following serious problem:&lt;br/&gt;
cursors do not get closed but getting iddle being stuck in RAM. &lt;br/&gt;
Just to compare: in mms monitoring before upgrade we had 500 cursors in the air and now we 13.5K  and the number is growing. After it reaches the cursors limit all system crashes. &lt;br/&gt;
There are similar tickets:&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-19061&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-19061&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-17364&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-17364&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;but they speak about mongo version problem. I do not think that this is the problem by us since we have 3.05 for half a year already and we did not have it before. Anyway i decreased cursors timeout but it does not seem to help because the cursors number is constantly growing.&lt;/p&gt;</description>
                <environment>Windows Server 2012, Mongodb 3.0.5 on Centos 7</environment>
        <key id="259068">CSHARP-1536</key>
            <summary>Cursor do not get closed</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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="moshe@imonlinegroup.com">Moshe Shperling</reporter>
                        <labels>
                    </labels>
                <created>Sun, 17 Jan 2016 17:14:28 +0000</created>
                <updated>Wed, 13 Apr 2016 20:59:18 +0000</updated>
                            <resolved>Wed, 13 Apr 2016 20:59:18 +0000</resolved>
                                    <version>2.0.2</version>
                    <version>2.1.1</version>
                    <version>2.2.1</version>
                                                    <component>Connectivity</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1146212" author="rstam" created="Mon, 18 Jan 2016 04:43:49 +0000"  >&lt;p&gt;The underlying issue that was fixed in &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-1515&quot; title=&quot;Queries using the Legacy API can leak connections resulting in  TimeoutExceptions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-1515&quot;&gt;&lt;del&gt;CSHARP-1515&lt;/del&gt;&lt;/a&gt; was that the client side cursor enumerator was not being properly Disposed (whether the cursor was enumerated all the way to the end or not).&lt;/p&gt;

&lt;p&gt;I&apos;m pretty sure what you are seeing is just a different manifestation of the same problem. In your case it would appear that you are only partially consuming the results of the cursor. Since the client side cursor is not being properly disposed, the symptom is that the cursor continues to live on the server side.&lt;/p&gt;

&lt;p&gt;I have high confidence that the fix for &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-1515&quot; title=&quot;Queries using the Legacy API can leak connections resulting in  TimeoutExceptions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-1515&quot;&gt;&lt;del&gt;CSHARP-1515&lt;/del&gt;&lt;/a&gt; will also fix your issue. If you continue to see this issue with 2.2.2 please let us know.&lt;/p&gt;

&lt;p&gt;The &quot;timeout after 0ms&quot; issue was actually a separate issue. The error message was incorrectly reporting &quot;0ms&quot; instead of the actual timeout value.&lt;/p&gt;</comment>
                            <comment id="1146196" author="moshe@imonlinegroup.com" created="Mon, 18 Jan 2016 04:04:13 +0000"  >&lt;p&gt;Hi Craig&lt;br/&gt;
Just want to be sure. We get different exception here not like 1515. In this case it seems like driver does not kill idle cursors. Did you fix it in new version? Did you also fix timeout 0ms issue there as well?&lt;/p&gt;</comment>
                            <comment id="1146143" author="craiggwilson" created="Sun, 17 Jan 2016 22:19:23 +0000"  >&lt;p&gt;Hi Moshe,&lt;/p&gt;

&lt;p&gt;The cursor problem is related to the issue in &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-1515&quot; title=&quot;Queries using the Legacy API can leak connections resulting in  TimeoutExceptions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-1515&quot;&gt;&lt;del&gt;CSHARP-1515&lt;/del&gt;&lt;/a&gt;. We have fixed this issue and released driver version 2.2.2.  You should upgrade to this version for the fix.&lt;/p&gt;

&lt;p&gt;Craig&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="244490">CSHARP-1515</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hshgjb:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>