<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:12:42 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-46882] MongoDB keeps deleted log files open after rotation</title>
                <link>https://jira.mongodb.org/browse/SERVER-46882</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I made a script to rotate the logs every day, but my log files remain open after the rotation (see attachment).&lt;/p&gt;

&lt;p&gt;Even if I restart the mongod processes, this problem will appear in the next few days.&lt;/p&gt;

&lt;p&gt;Is there a problem with my script?&#160;Or the &quot;kill -SIGUSR1 &amp;lt;pid&amp;gt;&quot; command cannot be used when MongoDB is balancing?&#160;&lt;/p&gt;

&lt;p&gt;Any suggestions or root cause guessing?&lt;/p&gt;

&lt;p&gt;Thanks~&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;$ crontab -l&lt;br/&gt;
==========================&lt;br/&gt;
05 00 * * * /opt/log_bk.sh&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&#160;&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;$ cat /opt/log_bk.sh&lt;br/&gt;
==========================&lt;br/&gt;
#!/bin/sh&lt;br/&gt;
&lt;font color=&quot;#FF0000&quot;&gt;/bin/kill -SIGUSR1&lt;/font&gt; `cat /opt/foo/conf/SB/SB11.pid 2&amp;gt; /dev/null` 2&amp;gt; /dev/null || true&lt;br/&gt;
mv /opt/foo/logs/SB/SB11.log.* /opt/foo/logsbk/SB&lt;br/&gt;
compress /opt/foo/logsbk/SB/SB11.log.*&lt;/p&gt;

&lt;p&gt;&lt;font color=&quot;#FF0000&quot;&gt;/bin/kill -SIGUSR1&lt;/font&gt; `cat /opt/foo/conf/SB/SB31.pid 2&amp;gt; /dev/null` 2&amp;gt; /dev/null || true&lt;br/&gt;
mv /opt/foo/logs/SB/SB31.log.* /opt/foo/logsbk/SB&lt;br/&gt;
compress /opt/foo/logsbk/SB/SB31.log.*&lt;/p&gt;

&lt;p&gt;find /opt/foo/logsbk/SB/ -type f -name &quot;*.Z&quot; -mtime +7 -exec rm -rf {} \;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;</description>
                <environment>RHEL 7.x Linux x64,  MongoDB 3.6.5 Community, Sharded Cluster</environment>
        <key id="1274899">SERVER-46882</key>
            <summary>MongoDB keeps deleted log files open after rotation</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</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="-1">Unassigned</assignee>
                                    <reporter username="seth.chuang@thinkpower-info.com">&#33288;&#26106; &#33674;</reporter>
                        <labels>
                            <label>question</label>
                    </labels>
                <created>Mon, 16 Mar 2020 08:14:34 +0000</created>
                <updated>Tue, 2 Jun 2020 14:47:07 +0000</updated>
                            <resolved>Tue, 17 Mar 2020 18:34:18 +0000</resolved>
                                    <version>3.6.5</version>
                                                    <component>Logging</component>
                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="3179835" author="xgen-internal-githook" created="Tue, 2 Jun 2020 14:47:07 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;vrachev&apos;, &apos;email&apos;: &apos;vlad.rachev@mongodb.com&apos;, &apos;username&apos;: &apos;vrachev&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-46882&quot; title=&quot;MongoDB keeps deleted log files open after rotation&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-46882&quot;&gt;&lt;del&gt;SERVER-46882&lt;/del&gt;&lt;/a&gt; Reuse debugger process for processes of same type in hang_analyzer.py&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/9fcca8acb9a8995e007b5c4c06e5349a57e274e6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/9fcca8acb9a8995e007b5c4c06e5349a57e274e6&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2983772" author="carl.champain" created="Tue, 17 Mar 2020 18:34:11 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=seth.chuang%40thinkpower-info.com&quot; class=&quot;user-hover&quot; rel=&quot;seth.chuang@thinkpower-info.com&quot;&gt;seth.chuang@thinkpower-info.com&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;The SERVER project is for bugs and feature suggestions for the MongoDB server. As this ticket does not appear to be a bug, I will now close it. If you need assistance troubleshooting, I encourage you to ask our community by posting on the &lt;a href=&quot;http://community.mongodb.com/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;MongoDB Community Forums&lt;/a&gt; or on &lt;a href=&quot;https://stackoverflow.com/questions/tagged/mongodb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Stack Overflow with the &lt;tt&gt;mongodb&lt;/tt&gt; tag&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Kind regards,&lt;br/&gt;
 Carl&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="252293" name="lsof deleted 1.png" size="674491" author="seth.chuang@thinkpower-info.com" created="Mon, 16 Mar 2020 07:50:29 +0000"/>
                            <attachment id="252292" name="lsof deleted 2.png" size="1118273" author="seth.chuang@thinkpower-info.com" created="Mon, 16 Mar 2020 07:50:30 +0000"/>
                    </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>Tue, 17 Mar 2020 18:34:11 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 36 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>xgen-internal-githook</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            3 years, 36 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>carl.champain@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>seth.chuang@thinkpower-info.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hx8m93:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hwwe67:</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_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|hx88if:</customfieldvalue>

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