<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:18:02 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-28402] Dropping collection not releasing diskspace on secondary</title>
                <link>https://jira.mongodb.org/browse/SERVER-28402</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;We&apos;re encountering some odd behaviour with an unsharded replica set. The primary is running 3.2.10, the secondary was originally also running 3.2.10, but is now running 3.2.12 (I upgraded to see if the issue went away).&lt;/p&gt;

&lt;p&gt;Our usage pattern is that every day we create a smallish number of collections (~13), each containing a few million documents. When we&apos;ve finished inserting the data for a collection, we drop the correspondind collection from 2 days ago (in theory we could drop all collections except for the ones just created, but we like to have the ability to rollback to the old data). Apart from one small collection with some bookkeeping data, all the collections in this database have this lifecycle of 2-3 days&lt;/p&gt;

&lt;p&gt;Occasionally some of these collection drops don&apos;t free up disk space on the secondary. Logically the data is the same on the primary and the secondary (ie show collections shows the same output, db.stats() shows very similar numbers), however there the free space on the secondary does not increase and I can observe more files in the mongodb data directory compared to the primary.&lt;/p&gt;

&lt;p&gt;Stopping mongodb consistently fixes the issue - the extra files are removed and disk space returns to the same level as the primary. This happens sporadically (sometimes not at all for several weeks, although it seems to be happening a lot at the moment), I have not yet identified what triggers this behaviour. It has never occurred on the primary.&lt;/p&gt;

&lt;p&gt;Assuming this isn&apos;t a known issue, what data can I provide to assist tracking down this issue. There is nothing that relevant looking in the mongodb log at the point of the mongod stop. I&apos;ve attached the last few minutes immediately before I stopped mongod - you can see it dropping two collections&lt;/p&gt;</description>
                <environment>amazon linux 2016.03</environment>
        <key id="366451">SERVER-28402</key>
            <summary>Dropping collection not releasing diskspace on secondary</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="kelsey.schubert@mongodb.com">Kelsey Schubert</assignee>
                                    <reporter username="fcheung">Frederick Cheung</reporter>
                        <labels>
                    </labels>
                <created>Mon, 20 Mar 2017 22:35:11 +0000</created>
                <updated>Wed, 31 May 2017 21:23:35 +0000</updated>
                            <resolved>Fri, 21 Apr 2017 20:56:56 +0000</resolved>
                                    <version>3.2.12</version>
                                                    <component>WiredTiger</component>
                                        <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="1555305" author="thomas.schubert" created="Fri, 21 Apr 2017 20:56:33 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=fcheung&quot; class=&quot;user-hover&quot; rel=&quot;fcheung&quot;&gt;fcheung&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Since we haven&apos;t heard back from you for some time, I&apos;m going to close this ticket as a duplicate of &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;. If the issue is not resolved by upgrading to MongoDB 3.4.3 or later, please let us know and we will reopen the ticket.&lt;/p&gt;

&lt;p&gt;Thank you,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                            <comment id="1532890" author="milkie" created="Sun, 26 Mar 2017 17:26:59 +0000"  >&lt;p&gt;To aid implementation, the fix for &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; utilized some of the code already written for the NoopWriter functionality.&lt;/p&gt;</comment>
                            <comment id="1532793" author="fcheung" created="Sat, 25 Mar 2017 21:59:54 +0000"  >&lt;p&gt;OK, I&apos;ll see what I can do. Still fuzzy on how a fix to something that doesn&apos;t exist in 3.2 (NoopWriter) could fix a problem in 3.2 though.&lt;/p&gt;</comment>
                            <comment id="1532746" author="thomas.schubert" created="Sat, 25 Mar 2017 15:07:15 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=fcheung&quot; class=&quot;user-hover&quot; rel=&quot;fcheung&quot;&gt;fcheung&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Unfortunately, this fix was built on the &lt;tt&gt;NoopWriter&lt;/tt&gt; (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-23892&quot; title=&quot;Do periodic replicated writes every 10 seconds while idle (for maxStalenessMS)&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-23892&quot;&gt;&lt;del&gt;SERVER-23892&lt;/del&gt;&lt;/a&gt;), which does not exist in v3.2. Therefore, we cannot backport it to MongoDB 3.2. Please note that a MongoDB 3.4.3 release candidate is currently available for download, and we currently anticipate the production release of MongoDB 3.4.3 next week. &lt;/p&gt;

&lt;p&gt;I understand your concerns about a major version upgrade. However, given your responses, I expect &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; to correct this behavior, and I do not see a way to progress this investigation without confirming this fix resolves your issue.&lt;/p&gt;

&lt;p&gt;Thank you,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                            <comment id="1532709" author="fcheung" created="Sat, 25 Mar 2017 08:41:10 +0000"  >&lt;p&gt;Thanks, that sounds promising &amp;amp; explains the random nature of it. I&apos;m slightly reticent to do a major version upgrade just to test this out - are there any plans to backport what appears to be a very small change?&lt;/p&gt;</comment>
                            <comment id="1532536" author="thomas.schubert" created="Fri, 24 Mar 2017 20:43:21 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=fcheung&quot; class=&quot;user-hover&quot; rel=&quot;fcheung&quot;&gt;fcheung&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thanks for reporting this behavior. This appears to be a duplicate of &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;. Would you please upgrade to latest version of MongoDB 3.4 and confirm that the issue is resolved?&lt;/p&gt;

&lt;p&gt;Kind regards,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="328627">SERVER-26870</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="151991" name="mongod.log" size="9851" author="fcheung" created="Mon, 20 Mar 2017 22:34:29 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>6.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 20 Mar 2017 22:50:47 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 42 weeks, 5 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>backlog-server-pm</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 42 weeks, 5 days 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>fcheung</customfieldvalue>
            <customfieldvalue>kelsey.schubert@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|ht4j1j:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hswz3j:</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>
                                    <customfieldvalue><![CDATA[kelsey.schubert@mongodb.com]]></customfieldvalue>
    

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hs4duv:</customfieldvalue>

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