<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:12:34 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-15313] Capped collection documentation is not correct</title>
                <link>https://jira.mongodb.org/browse/DOCS-15313</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;Capped collections documentation at &lt;a href=&quot;https://www.mongodb.com/docs/manual/core/capped-collections/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://www.mongodb.com/docs/manual/core/capped-collections/&lt;/a&gt; specifies that&lt;/p&gt;

&lt;p&gt;&quot;TTL indexes are not compatible with capped collections.&quot;&lt;/p&gt;

&lt;p&gt;However, the following tests with an empty database (i.e. no collections in the database when the test is done):&lt;/p&gt;

&lt;p&gt;{{&amp;gt; show collections&lt;br/&gt;
&amp;gt; db.createCollection( &quot;c&quot;,&lt;/p&gt;

{ capped: true, size: 100000 }

&lt;p&gt;)&lt;/p&gt;

{ &quot;ok&quot; : 1 }

&lt;p&gt;&amp;gt; db.c.isCapped()&lt;br/&gt;
true&lt;br/&gt;
&amp;gt; db.c.createIndex(&lt;/p&gt;

{ &quot;date&quot;: 1 }

&lt;p&gt;,&lt;/p&gt;

{ expireAfterSeconds: 3600 }

&lt;p&gt;)&lt;/p&gt;

{ &quot;numIndexesBefore&quot; : 1, &quot;numIndexesAfter&quot; : 2, &quot;createdCollectionAutomatically&quot; : false, &quot;ok&quot; : 1 }

&lt;p&gt;&amp;gt; db.c.getIndexes()&lt;br/&gt;
[&lt;br/&gt;
{&lt;br/&gt;
&quot;v&quot; : 2,&lt;br/&gt;
&quot;key&quot; :&lt;/p&gt;

{ &quot;_id&quot; : 1 }

&lt;p&gt;,&lt;br/&gt;
&quot;name&quot; : &quot;&lt;em&gt;id&lt;/em&gt;&quot;&lt;br/&gt;
},&lt;br/&gt;
{&lt;br/&gt;
&quot;v&quot; : 2,&lt;br/&gt;
&quot;key&quot; :&lt;/p&gt;

{ &quot;date&quot; : 1 }

&lt;p&gt;,&lt;br/&gt;
&quot;name&quot; : &quot;date_1&quot;,&lt;br/&gt;
&quot;expireAfterSeconds&quot; : 3600&lt;br/&gt;
}&lt;br/&gt;
]}}&lt;/p&gt;

&lt;p&gt;So, I understands the documentation is not correct or &quot;compatibility&quot; should be explained better (i.e. the index can be created but expiration on it is ignored).&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;
&lt;hr /&gt;
&lt;p&gt;&lt;b&gt;With MongoDB 7.0.0-rc4 and MongoDB 6.0.7&lt;/b&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;font color=&quot;#172b4d&quot;&gt;&lt;tt&gt;Enterprise replset &lt;span class=&quot;error&quot;&gt;&amp;#91;direct: primary&amp;#93;&lt;/span&gt; test&amp;gt; db.createCollection( &quot;c&quot;, {capped:true, size:100000})&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;{ ok: 1 }&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;Enterprise replset &lt;span class=&quot;error&quot;&gt;&amp;#91;direct: primary&amp;#93;&lt;/span&gt; test&amp;gt; db.c.isCapped()&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;true&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;Enterprise replset &lt;span class=&quot;error&quot;&gt;&amp;#91;direct: primary&amp;#93;&lt;/span&gt; test&amp;gt; db.c.createIndex({&quot;date&quot;:1},{expireAfterSeconds:3600})&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;MongoServerError: Cannot create TTL index on a capped collection&lt;/tt&gt;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;&lt;b&gt;With MongoDB 5.0.18:&lt;/b&gt;&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;&lt;font color=&quot;#172b4d&quot;&gt;&lt;tt&gt;test&amp;gt; db.createCollection( &quot;c&quot;, {capped:true, size:100000})&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;{ ok: 1 }&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;test&amp;gt; db.c.isCapped()&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;true&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;test&amp;gt; db.c.createIndex({&quot;date&quot;:1},{expireAfterSeconds:3600})&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;date_1&lt;/tt&gt;&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;Will update the 5.0 docs and backport to 4.4 and 4.2&lt;/p&gt;</description>
                <environment>MongoDB 5.0.6</environment>
        <key id="2039354">DOCS-15313</key>
            <summary>Capped collection documentation is not correct</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="nick.villahermosa@mongodb.com">Nick Villahermosa</assignee>
                                    <reporter username="fermin.galanmarquez@telefonica.com">Ferm&#237;n Gal&#225;n</reporter>
                        <labels>
                            <label>quick-win</label>
                            <label>server-docs-bug-bash</label>
                    </labels>
                <created>Wed, 4 May 2022 13:59:12 +0000</created>
                <updated>Mon, 30 Oct 2023 22:13:21 +0000</updated>
                            <resolved>Fri, 14 Jul 2023 14:12:43 +0000</resolved>
                                                    <fixVersion>Server_Docs_20231030</fixVersion>
                                    <component>manual</component>
                    <component>Server</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="5566820" author="JIRAUSER1270643" created="Fri, 14 Jul 2023 14:12:43 +0000"  >&lt;p&gt;Backports: v4.4&lt;/p&gt;</comment>
                            <comment id="4525749" author="jeffrey.allen" created="Wed, 4 May 2022 14:40:16 +0000"  >&lt;p&gt;I found some additional context &lt;a href=&quot;https://mongodb.slack.com/archives/C2RCHGB2L/p1623424035147300?thread_ts=1623423839.147100&amp;amp;cid=C2RCHGB2L&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;in Slack&lt;/a&gt; that I&apos;ll capture here in the ticket so we don&apos;t lose it due to retention policy:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=gregory.wlodarek%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;gregory.wlodarek@mongodb.com&quot;&gt;gregory.wlodarek@mongodb.com&lt;/a&gt; wrote:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;You can create a TTL index on a capped collection, but it won&apos;t do any TTL deletes.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;My understanding is that we should update the language on the capped collection page to not make a blanket statement that TTL indexes are incompatible, but that the TTL index won&apos;t perform deletes.&lt;/p&gt;</comment>
                            <comment id="4525570" author="JIRAUSER1269441" created="Wed, 4 May 2022 14:00:38 +0000"  >&lt;p&gt;Sorry the formatting of the code part... I&apos;m not used to JIRA syntax. I hope it is clear, but in negative case please tell me and I can provide more information.&lt;/p&gt;</comment>
                    </comments>
                    <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_14258" key="com.atlassian.jira.plugin.system.customfieldtypes:datepicker">
                        <customfieldname>Baseline start date</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 12 Jul 2023 00:00:00 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 4 May 2022 14:40:16 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        29 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_14876" key="com.atlassian.jira.plugin.system.customfieldtypes:userpicker">
                        <customfieldname>Docs Reviewer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>john.williams@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_14873" key="com.atlassian.jira.plugin.system.customfieldtypes:multiuserpicker">
                        <customfieldname>External Reviewer</customfieldname>
                        <customfieldvalues>
                                    <customfieldvalue><![CDATA[gregory.wlodarek@mongodb.com]]></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>emet.ozar@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            29 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>fermin.galanmarquez@telefonica.com</customfieldvalue>
            <customfieldvalue>jeffrey.allen@mongodb.com</customfieldvalue>
            <customfieldvalue>nick.villahermosa@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i0tmo7:</customfieldvalue>

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

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