<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:37:09 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-15166] Cursors should never be timed-out but should be closed at disconnection</title>
                <link>https://jira.mongodb.org/browse/SERVER-15166</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The current behavior of cursors regarding timeouts has these three problems:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;If a cursor is created without NoCursorTimeout option, it can suddenly disappear if the client is running slowly. And there is no way to change its TTL (10 minutes).&lt;/li&gt;
	&lt;li&gt;If a cursor is created with NoCursorTimeout option, and the client crashes before closing it, the cursor lasts forever because no one knows its cursorID at this point.&lt;/li&gt;
	&lt;li&gt;Any cursors can be killed with OP_KILL_CURSORS request, even if the cursors to be killed weren&apos;t created by the requestor. This can be a security issue.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;So I propose these changes:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Do not time-out cursors on server side. Make NoCursorTimeout option deprecated.&lt;/li&gt;
	&lt;li&gt;Make cursorID be local to connections, and automatically close them when the connection is closed. OP_KILL_CURSORS should ignore any cursorIDs that were not created on the connection requested it.&lt;/li&gt;
	&lt;li&gt;Introduce a new server command 
{killAllCursors: 1}
&lt;p&gt; that closes any cursors created on the connection that issued the command. Drivers can use it to clean up cursors without disconnecting.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
        <key id="156818">SERVER-15166</key>
            <summary>Cursors should never be timed-out but should be closed at disconnection</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="backlog-server-platform">DO NOT USE - Backlog - Platform Team</assignee>
                                    <reporter username="pho">PHO</reporter>
                        <labels>
                    </labels>
                <created>Mon, 8 Sep 2014 04:02:49 +0000</created>
                <updated>Tue, 24 Dec 2019 01:09:01 +0000</updated>
                            <resolved>Tue, 24 Dec 2019 01:09:01 +0000</resolved>
                                                                    <component>Networking</component>
                    <component>Querying</component>
                                        <votes>2</votes>
                                    <watches>16</watches>
                                                                                                                <comments>
                            <comment id="2662371" author="spencer.jackson@10gen.com" created="Tue, 24 Dec 2019 01:09:01 +0000"  >&lt;p&gt;Logical sessions does solve most of this request, and I believe changes to the authorization system makes it possible to kill your own cursors resolving the rest.&lt;/p&gt;</comment>
                            <comment id="2084324" author="shane.harvey" created="Fri, 7 Dec 2018 19:41:06 +0000"  >&lt;blockquote&gt;
&lt;ul&gt;
	&lt;li&gt;If a cursor is created without NoCursorTimeout option, it can suddenly disappear if the client is running slowly. And there is no way to change its TTL (10 minutes).&lt;/li&gt;
	&lt;li&gt;If a cursor is created with NoCursorTimeout option, and the client crashes before closing it, the cursor lasts forever because no one knows its cursorID at this point.&lt;/li&gt;
&lt;/ul&gt;
&lt;/blockquote&gt;

&lt;p&gt;These two problems have been fixed by the introduction of sessions in  MongoDB 3.6 server and drivers. You can now write client side code that keeps a cursors alive as long as you want and the server will automatically clean up the cursor 30 minutes after the client crashes. See &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-11255&quot; title=&quot;Document that 3.6 implicit sessions may cause noTimeout cursors to close while in use.&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-11255&quot;&gt;&lt;del&gt;DOCS-11255&lt;/del&gt;&lt;/a&gt; for an explanation. &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_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 8 Sep 2014 14:50:29 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            4 years, 7 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-server-platform</customfieldvalue>
            <customfieldvalue>pho</customfieldvalue>
            <customfieldvalue>shane.harvey@mongodb.com</customfieldvalue>
            <customfieldvalue>spencer.jackson@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrjg9r:</customfieldvalue>

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

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

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