<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:01:13 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>[DOCS-10720] Clarify &quot;bytes available for reuse&quot; with WT following large deletes </title>
                <link>https://jira.mongodb.org/browse/DOCS-10720</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;Hi Team,&lt;/p&gt;

&lt;p&gt;We have seen a number of questions around the behaviour of WT block mgmt, checkpoints and fragmentation. &lt;/p&gt;

&lt;p&gt;From the WiredTiger documentation:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;By default, when file blocks are being reused, WiredTiger attempts to avoid file fragmentation by selecting the smallest available block rather than splitting a larger available block into two. The block_allocation configuration string to WT_SESSION::create can be set to first to change the algorithm to first-fit, that is, take the first available block in the file. Applications where file size is more of an issue than file fragmentation (for example, applications with fixed-size blocks) might want to configure this way.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;What is not clear from our documentation is that when massive deletes occur, the space may not be available from the operating system perspective as the WiredTiger blocks need to be relocated (ie the customer will still need to run &lt;a href=&quot;https://docs.mongodb.com/manual/reference/command/compact/index.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;compact&lt;/a&gt;) in order to have enough space at the end of the file for the truncation (making the operating system know the space is available). Until then, the space is available internally and reflected in the bytes available for reuse field within the collection stats.&lt;/p&gt;

&lt;p&gt;This causing confusion among customers. It would be helpful if a clarification on this could be added to the &lt;a href=&quot;https://docs.mongodb.com/manual/faq/storage/#wiredtiger-storage-engine&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;WT Storage FAQ&lt;/a&gt;, it may also be beneficial to link to this information from the &lt;a href=&quot;https://docs.mongodb.com/manual/core/wiredtiger/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;WT Storage Engine page&lt;/a&gt; and the &lt;a href=&quot;https://docs.mongodb.com/manual/tutorial/add-shards-to-shard-cluster/index.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;add shard page&lt;/a&gt; as the behaviour is similar following a large scale chunk migration.&lt;/p&gt;

&lt;p&gt;Thanks&lt;br/&gt;
Barry&lt;/p&gt;</description>
                <environment></environment>
        <key id="420215">DOCS-10720</key>
            <summary>Clarify &quot;bytes available for reuse&quot; with WT following large deletes </summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="kevin.adistambha@mongodb.com">Kevin Adistambha</assignee>
                                    <reporter username="barry.mcconville@mongodb.com">Barry McConville</reporter>
                        <labels>
                    </labels>
                <created>Fri, 25 Aug 2017 08:40:59 +0000</created>
                <updated>Mon, 30 Oct 2023 21:07:19 +0000</updated>
                            <resolved>Wed, 8 Nov 2017 00:51:36 +0000</resolved>
                                                    <fixVersion>Server_Docs_20231030</fixVersion>
                                    <component>manual</component>
                    <component>Server</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="1719982" author="kay.kim@10gen.com" created="Wed, 8 Nov 2017 00:51:36 +0000"  >&lt;p&gt;Accidentally got reopened via a script when I forgot to commit my work for another ticket for a code review.&lt;/p&gt;</comment>
                            <comment id="1719719" author="xgen-internal-githook" created="Tue, 7 Nov 2017 20:24:12 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kevin Adistambha&apos;, &apos;username&apos;: &apos;kevinadi&apos;, &apos;email&apos;: &apos;kevinadi@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-10720&quot; title=&quot;Clarify &amp;quot;bytes available for reuse&amp;quot; with WT following large deletes &quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-10720&quot;&gt;&lt;del&gt;DOCS-10720&lt;/del&gt;&lt;/a&gt; Clarify &apos;file bytes available for reuse&apos; in  WT FAQ&lt;br/&gt;
Branch: v3.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/4c3e9fb4cc54faf9747941dc70a5e131334695cb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/4c3e9fb4cc54faf9747941dc70a5e131334695cb&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1719717" author="xgen-internal-githook" created="Tue, 7 Nov 2017 20:23:41 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Kevin Adistambha&apos;, &apos;username&apos;: &apos;kevinadi&apos;, &apos;email&apos;: &apos;kevinadi@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-10720&quot; title=&quot;Clarify &amp;quot;bytes available for reuse&amp;quot; with WT following large deletes &quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-10720&quot;&gt;&lt;del&gt;DOCS-10720&lt;/del&gt;&lt;/a&gt; Clarify &apos;file bytes available for reuse&apos; in  WT FAQ&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/0afeaccd1371ce7c85afa5248d82f600336bc036&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/0afeaccd1371ce7c85afa5248d82f600336bc036&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 11 Oct 2017 01:31:33 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 14 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>barry.mcconville@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>kay.kim@mongodb.com</customfieldvalue>
            <customfieldvalue>kevin.adistambha@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htdmmv:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|ht5fnb:</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_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htd8pr:</customfieldvalue>

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