<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:43:27 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-58051] Mongod.exe does not release file handles on rotated logs on windows 10</title>
                <link>https://jira.mongodb.org/browse/SERVER-58051</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I found that mongod.exe does not release file handles to rotated log files beginning with mongo version 4.4.0.&#160;&lt;/p&gt;

&lt;p&gt;This is a problem because I am not able to delete old rotated logs any more with nodejs or any other tool that aquires file handles with SHARED flags.&lt;/p&gt;</description>
                <environment>OS: Windows 10 20H2&lt;br/&gt;
&lt;br/&gt;
</environment>
        <key id="1796221">SERVER-58051</key>
            <summary>Mongod.exe does not release file handles on rotated logs on windows 10</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="13201">Fixed</resolution>
                                        <assignee username="sergey.galtsev@mongodb.com">Sergey Galtsev</assignee>
                                    <reporter username="patrick.soboljew@gmail.com">Patrick Dawson</reporter>
                        <labels>
                            <label>logging</label>
                    </labels>
                <created>Thu, 24 Jun 2021 11:20:38 +0000</created>
                <updated>Sun, 29 Oct 2023 21:51:40 +0000</updated>
                            <resolved>Fri, 30 Jul 2021 20:10:40 +0000</resolved>
                                    <version>4.4.5</version>
                    <version>4.4.6</version>
                                    <fixVersion>5.0.3</fixVersion>
                    <fixVersion>4.4.9</fixVersion>
                    <fixVersion>5.1.0-rc0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="4107079" author="JIRAUSER1259052" created="Wed, 6 Oct 2021 18:16:54 +0000"  >&lt;p&gt;Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it&#8217;s been triggered. For more active release information, please keep an eye on #server-release. Thank you!&lt;/p&gt;</comment>
                            <comment id="4001678" author="xgen-internal-githook" created="Mon, 16 Aug 2021 15:57:54 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;sergey.galtsev&apos;, &apos;email&apos;: &apos;sergey.galtsev@mongodb.com&apos;, &apos;username&apos;: &apos;brushless-glitch&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-58051&quot; title=&quot;Mongod.exe does not release file handles on rotated logs on windows 10&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-58051&quot;&gt;&lt;del&gt;SERVER-58051&lt;/del&gt;&lt;/a&gt; close the original log when rotating to new&lt;br/&gt;
Branch: v5.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/d423ad12e4d2d2b242c2cf1f8c84d389869b5e13&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/d423ad12e4d2d2b242c2cf1f8c84d389869b5e13&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4001666" author="xgen-internal-githook" created="Mon, 16 Aug 2021 15:52:24 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;sergey.galtsev&apos;, &apos;email&apos;: &apos;sergey.galtsev@mongodb.com&apos;, &apos;username&apos;: &apos;brushless-glitch&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-58051&quot; title=&quot;Mongod.exe does not release file handles on rotated logs on windows 10&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-58051&quot;&gt;&lt;del&gt;SERVER-58051&lt;/del&gt;&lt;/a&gt; close the original log when rotating to new&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/0195e030346fe2986320107cede904b54727930d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/0195e030346fe2986320107cede904b54727930d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3973754" author="xgen-internal-githook" created="Fri, 30 Jul 2021 20:52:19 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;sergey.galtsev&apos;, &apos;email&apos;: &apos;sergey.galtsev@mongodb.com&apos;, &apos;username&apos;: &apos;brushless-glitch&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-58051&quot; title=&quot;Mongod.exe does not release file handles on rotated logs on windows 10&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-58051&quot;&gt;&lt;del&gt;SERVER-58051&lt;/del&gt;&lt;/a&gt; close the original log when rotating to new&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/c0b5fa0957205eba75360f2daecde1aa121e1090&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/c0b5fa0957205eba75360f2daecde1aa121e1090&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3971767" author="JIRAUSER1258160" created="Thu, 29 Jul 2021 21:35:50 +0000"  >&lt;p&gt;&lt;a href=&quot;https://mongodbcr.appspot.com/802830027/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://mongodbcr.appspot.com/802830027/&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3913351" author="eric.sedor" created="Thu, 1 Jul 2021 20:18:39 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=patrick.soboljew%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;patrick.soboljew@gmail.com&quot;&gt;patrick.soboljew@gmail.com&lt;/a&gt;, I wanted to let you know we can see the two screenshots you uploaded, and will take a look at this issue. Thanks!&lt;/p&gt;</comment>
                            <comment id="3909334" author="JIRAUSER1260827" created="Wed, 30 Jun 2021 06:24:59 +0000"  >&lt;p&gt;It seems that my screenshots always get broken after upload. They show that the mongodb process still has handles on rotated files with (with resmon.exe). I cannot figure out what the problem with the screenshot upload is.&lt;/p&gt;</comment>
                            <comment id="3896190" author="JIRAUSER1260827" created="Thu, 24 Jun 2021 11:45:01 +0000"  >&lt;p&gt;Just for clarification: this was not an issue in mongodb 3.6. I also tested 4.2.x an the handles were released on rotated logs in both versions. Only a file handle to file &quot;mongo.log&quot; was kept.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="322169" name="mongo-not-release-file-handle-logrotation-1.png" size="43868" author="patrick.soboljew@gmail.com" created="Mon, 28 Jun 2021 12:31:11 +0000"/>
                            <attachment id="322170" name="mongo-not-release-file-handle-logrotation.jpg" size="170560" author="patrick.soboljew@gmail.com" created="Mon, 28 Jun 2021 12:33:37 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_12450" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Backport Requested</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="21777"><![CDATA[v5.0]]></customfieldvalue>
    <customfieldvalue key="18953"><![CDATA[v4.4]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 28 Jun 2021 20:14:29 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 18 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_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16941"><![CDATA[Not Needed]]></customfieldvalue>

                        </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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            2 years, 18 weeks 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>eric.sedor@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>patrick.soboljew@gmail.com</customfieldvalue>
            <customfieldvalue>sergey.galtsev@mongodb.com</customfieldvalue>
            <customfieldvalue>vivian.ge@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hzof67:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hz8vxj:</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="5133">Security 2021-07-26</customfieldvalue>
    <customfieldvalue id="5134">Security 2021-08-09</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;ul&gt;
	&lt;li&gt;Install mongodb community server version 4.4.x (tested with 4.4.0, 4.4.5, 4.4.6).&lt;/li&gt;
	&lt;li&gt;Issue command: db.adminCommand({ logRotate: 1 })&lt;/li&gt;
	&lt;li&gt;Check file handles for mongod process with resmon.exe (see screenshot)&lt;/li&gt;
&lt;/ul&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|hzo1fb:</customfieldvalue>

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