<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:01:58 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-3064] do not allow _id scans on capped collections</title>
                <link>https://jira.mongodb.org/browse/SERVER-3064</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;_id indexes are not created on capped collections by default.&lt;br/&gt;
Very often people don&apos;t realize or forget and assume it&apos;s there, or use methods like save() which assume.&lt;/p&gt;

&lt;p&gt;We should assert on any table scan where the query is &lt;/p&gt;
{ _id : ... }
&lt;p&gt;.&lt;/p&gt;</description>
                <environment></environment>
        <key id="16784">SERVER-3064</key>
            <summary>do not allow _id scans on capped collections</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="10038" iconUrl="https://jira.mongodb.org/images/icons/subtask.gif" description="">Backlog</status>
                    <statusCategory id="2" key="new" colorName="default"/>
                                    <resolution id="-1">Unresolved</resolution>
                                        <assignee username="backlog-query-execution">Backlog - Query Execution</assignee>
                                    <reporter username="eliot">Eliot Horowitz</reporter>
                        <labels>
                            <label>query_triage</label>
                    </labels>
                <created>Mon, 9 May 2011 15:15:48 +0000</created>
                <updated>Tue, 6 Dec 2022 05:43:58 +0000</updated>
                                                                            <component>Querying</component>
                                        <votes>1</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="46755" author="auto" created="Sat, 6 Aug 2011 00:41:40 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;erh&apos;, u&apos;name&apos;: u&apos;Eliot Horowitz&apos;, u&apos;email&apos;: u&apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3064&quot; title=&quot;do not allow _id scans on capped collections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3064&quot;&gt;SERVER-3064&lt;/a&gt; out for now - too many issues with rollback&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/7cc114bbc0b5f8af2b7d891906b32bc85aed6fc9&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/7cc114bbc0b5f8af2b7d891906b32bc85aed6fc9&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="46754" author="eliot" created="Sat, 6 Aug 2011 00:34:55 +0000"  >&lt;p&gt;too pieces to do for 2.0&lt;br/&gt;
making it a warning for now&lt;/p&gt;</comment>
                            <comment id="46637" author="auto" created="Fri, 5 Aug 2011 15:43:48 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;erh&apos;, u&apos;name&apos;: u&apos;Eliot Horowitz&apos;, u&apos;email&apos;: u&apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: do not allow _id scans on capped collections &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3064&quot; title=&quot;do not allow _id scans on capped collections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3064&quot;&gt;SERVER-3064&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/72db2c419781158ece1e68302d753d49478ef1cd&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/72db2c419781158ece1e68302d753d49478ef1cd&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="36485" author="auto" created="Mon, 6 Jun 2011 23:57:54 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;dwight&apos;, u&apos;name&apos;: u&apos;dwight&apos;, u&apos;email&apos;: u&apos;dwight@10gen.com&apos;}
&lt;p&gt;Message: disable &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3064&quot; title=&quot;do not allow _id scans on capped collections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3064&quot;&gt;SERVER-3064&lt;/a&gt; temporarily it is breaking replica set rollback&lt;br/&gt;
replica sets can do queries by _id on capped collections when the rollback happens. so we can&apos;t do this til we figure out something there.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/4490b40bc6f36bb2abd047d16ad372310e9a22e5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/4490b40bc6f36bb2abd047d16ad372310e9a22e5&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="36088" author="auto" created="Fri, 3 Jun 2011 22:24:13 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;dwight&apos;, u&apos;name&apos;: u&apos;dwight&apos;, u&apos;email&apos;: u&apos;dwight@10gen.com&apos;}
&lt;p&gt;Message: fix test for new server behavior &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3064&quot; title=&quot;do not allow _id scans on capped collections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3064&quot;&gt;SERVER-3064&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/a0a0d98f39ed51716f4c6e353e4466cfb2307e65&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/a0a0d98f39ed51716f4c6e353e4466cfb2307e65&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="36023" author="eliot" created="Fri, 3 Jun 2011 20:00:43 +0000"  >&lt;p&gt;I added commented out tests in jstests/capped9.js&lt;br/&gt;
Once those work should be good&lt;/p&gt;</comment>
                            <comment id="36022" author="auto" created="Fri, 3 Jun 2011 20:00:24 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;erh&apos;, u&apos;name&apos;: u&apos;Eliot Horowitz&apos;, u&apos;email&apos;: u&apos;eliot@10gen.com&apos;}
&lt;p&gt;Message: notes and test for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3064&quot; title=&quot;do not allow _id scans on capped collections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3064&quot;&gt;SERVER-3064&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/8f6f0614bcf134352d3ff39fb136b9a9075efc21&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/8f6f0614bcf134352d3ff39fb136b9a9075efc21&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="36019" author="dwight_10gen" created="Fri, 3 Jun 2011 19:48:43 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo/commit/3ea739ba8d3cafade93b03a42eabda335159cbcb&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/3ea739ba8d3cafade93b03a42eabda335159cbcb&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="36017" author="dwight_10gen" created="Fri, 3 Jun 2011 19:32:23 +0000"  >&lt;p&gt;we will need to check on both queries and updates&lt;/p&gt;</comment>
                            <comment id="36008" author="auto" created="Fri, 3 Jun 2011 18:50:09 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;gerald-lindsly&apos;, u&apos;name&apos;: u&apos;gerald-lindsly&apos;, u&apos;email&apos;: u&apos;gerald.lindsly@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3064&quot; title=&quot;do not allow _id scans on capped collections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3064&quot;&gt;SERVER-3064&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/1ee161dfbe597ea5627df867b2b6ca32a34bbf2e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/1ee161dfbe597ea5627df867b2b6ca32a34bbf2e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="36004" author="auto" created="Fri, 3 Jun 2011 18:38:56 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;gerald-lindsly&apos;, u&apos;name&apos;: u&apos;gerald-lindsly&apos;, u&apos;email&apos;: u&apos;gerald.lindsly@gmail.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3064&quot; title=&quot;do not allow _id scans on capped collections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3064&quot;&gt;SERVER-3064&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/1ee161dfbe597ea5627df867b2b6ca32a34bbf2e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/1ee161dfbe597ea5627df867b2b6ca32a34bbf2e&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="35560">SERVER-5516</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>11.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25125"><![CDATA[Query Execution]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 3 Jun 2011 18:38:56 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 28 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>backlog-query-execution</customfieldvalue>
            <customfieldvalue>dwight@mongodb.com</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrp05z:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hr2cun:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4414</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_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|hszxnr:</customfieldvalue>

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