<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:14: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>[SERVER-27345] reclaim inactive WT sessions on calling closeAllCursors</title>
                <link>https://jira.mongodb.org/browse/SERVER-27345</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;There is a problem in the way we&apos;re caching &lt;tt&gt;WiredTigerCursor&lt;/tt&gt; and &lt;tt&gt;WiredTigerSession&lt;/tt&gt; objects. We cache cursors in each session, and also cache sessions globally. Most operations are short-lived in MongoDB, so that tends not to be a big problem: when we get a &lt;tt&gt;WT_BUSY&lt;/tt&gt;, we go through the cached &lt;tt&gt;WiredTigerSession&lt;/tt&gt; objects and close cached cursors. We also increment the cursor epoch, so that sessions returned subsequently also have their cursors closed. However, we have some internal clients that have very long-running operations: they could run forever. That way, they may have cached cursors that they never give back to the cache, and that will not be freed. This is especially an issue if the session it gets has been used by a client, such as &quot;initandlisten&quot;, that may have cursors for thousands of tables. See &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-26870&quot; title=&quot;Sometimes collection data file is not removed even though collection is dropped&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-26870&quot;&gt;&lt;del&gt;SERVER-26870&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;This problem is exacerbated by the interruptible sleep improvements (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-21004&quot; title=&quot;Implement wait objects that support operation interruption/expiration&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-21004&quot;&gt;&lt;del&gt;SERVER-21004&lt;/del&gt;&lt;/a&gt;), as those result in more &lt;tt&gt;OperationContext&lt;/tt&gt; objects, each a possible &lt;tt&gt;WiredTigerSession&lt;/tt&gt; object, in use while sleeping.&lt;/p&gt;

&lt;p&gt;So, implement a way for the &lt;tt&gt;WiredTigerSessionCache&lt;/tt&gt; to reclaim cursors from inactive sessions still owned by a &lt;tt&gt;WiredTigerRecoveryUnit&lt;/tt&gt;. Locally cached &lt;tt&gt;MODE_IX&lt;/tt&gt; and &lt;tt&gt;MODE_IS&lt;/tt&gt; locks have a similar issue, so we may be able to use the same solution.&lt;/p&gt;</description>
                <environment></environment>
        <key id="337394">SERVER-27345</key>
            <summary>reclaim inactive WT sessions on calling closeAllCursors</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="geert.bosch@mongodb.com">Geert Bosch</assignee>
                                    <reporter username="geert.bosch@mongodb.com">Geert Bosch</reporter>
                        <labels>
                    </labels>
                <created>Thu, 8 Dec 2016 19:32:29 +0000</created>
                <updated>Mon, 6 Feb 2017 19:36:04 +0000</updated>
                            <resolved>Tue, 17 Jan 2017 14:54:09 +0000</resolved>
                                    <version>3.4.0</version>
                                                    <component>Storage</component>
                                        <votes>0</votes>
                                    <watches>9</watches>
                                                                                                                <comments>
                            <comment id="1477936" author="geert.bosch" created="Tue, 17 Jan 2017 14:52:34 +0000"  >&lt;p&gt;The motivating issue for this ticket, avoiding holding on to cursors that may interfere with drop and verify operations, will likely be resolved more completely by &lt;a href=&quot;https://jira.mongodb.org/browse/WT-1228&quot; title=&quot;Improve performance of WT_SESSION::open_cursor&quot; class=&quot;issue-link&quot; data-issue-key=&quot;WT-1228&quot;&gt;&lt;del&gt;WT-1228&lt;/del&gt;&lt;/a&gt;. So closing this as duplicate.&lt;/p&gt;</comment>
                            <comment id="1475476" author="milkie" created="Thu, 12 Jan 2017 13:51:40 +0000"  >&lt;p&gt;Note that validate() would particularly benefit from improvements here (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-23131&quot; title=&quot;validate() can return EBUSY on WiredTiger&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-23131&quot;&gt;&lt;del&gt;SERVER-23131&lt;/del&gt;&lt;/a&gt;).  Right now, our testing doesn&apos;t necessarily check all data in some tests, due to this.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="272378">SERVER-23131</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="337404">SERVER-27347</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="197566">WT-1228</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="234975">SERVER-21004</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</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>Thu, 12 Jan 2017 13:51:40 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            7 years, 4 weeks, 1 day 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>milkie@mongodb.com</customfieldvalue>
            <customfieldvalue>geert.bosch@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrjp27:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrbysf:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="1411">Storage 2017-01-23</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|hs4mg7:</customfieldvalue>

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