<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:58:43 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-2019] _id index on capped collection : inconsistent between master and slave</title>
                <link>https://jira.mongodb.org/browse/SERVER-2019</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;there seems to be no _id index on the replication primary&lt;/p&gt;

&lt;p&gt;but there is on the slaves&lt;/p&gt;

&lt;p&gt;what to do - create them on the primary?&lt;/p&gt;</description>
                <environment></environment>
        <key id="13535">SERVER-2019</key>
            <summary>_id index on capped collection : inconsistent between master and slave</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="9">Done</resolution>
                                        <assignee username="dwight@mongodb.com">Dwight Merriman</assignee>
                                    <reporter username="dwight@mongodb.com">Dwight Merriman</reporter>
                        <labels>
                    </labels>
                <created>Thu, 28 Oct 2010 02:17:20 +0000</created>
                <updated>Fri, 2 Jul 2021 19:59:33 +0000</updated>
                            <resolved>Fri, 7 Mar 2014 20:29:12 +0000</resolved>
                                                                    <component>Replication</component>
                                        <votes>3</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="3915319" author="xgen-internal-githook" created="Fri, 2 Jul 2021 19:59:33 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Brian McCarthy&apos;, &apos;email&apos;: &apos;brian.mccarthy@mongodb.com&apos;, &apos;username&apos;: &apos;briananthonymccarthy&apos;}
&lt;p&gt;Message: BUILD-13557 Windows vsCurrent should use Windows_Server-2019-English-Full-Base as source AMI&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/buildhost-configuration/commit/81a347052a31c9d11f38338fbdab2883879efd3c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/buildhost-configuration/commit/81a347052a31c9d11f38338fbdab2883879efd3c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3915279" author="xgen-internal-githook" created="Fri, 2 Jul 2021 19:37:52 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Brian McCarthy&apos;, &apos;email&apos;: &apos;brian.mccarthy@mongodb.com&apos;, &apos;username&apos;: &apos;briananthonymccarthy&apos;}
&lt;p&gt;Message: BUILD-13557 Windows vsCurrent should use Windows_Server-2019-English-Full-Base as source AMI&lt;br/&gt;
Branch: BUILD-13557&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/buildhost-configuration/commit/4edda18c6eed5273c2122923dd37ee089639d75b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/buildhost-configuration/commit/4edda18c6eed5273c2122923dd37ee089639d75b&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="511808" author="milkie" created="Fri, 7 Mar 2014 20:29:12 +0000"  >&lt;p&gt;As of 2.2, capped collections have _id index by default.&lt;/p&gt;</comment>
                            <comment id="81296" author="hito_asa" created="Fri, 20 Jan 2012 18:15:00 +0000"  >&lt;p&gt;Is this fixed by the following ticket?&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-4626&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SERVER-4626&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="69032" author="hito_asa" created="Sat, 26 Nov 2011 23:56:56 +0000"  >&lt;p&gt;I&apos;m using mongod ver.2.0.1&lt;br/&gt;
All db and collections are created under this version.&lt;br/&gt;
But some of collections has index and other is not. I don&apos;t know why... &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/sad.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;I understood the _id index is effective for the performance of replication.&lt;br/&gt;
But my application creates a lot of small capped collections. (max=100, size=8191)&lt;br/&gt;
So I think that _id index should not be created automatically. It should be selective and consistent within master and slaves.&lt;/p&gt;</comment>
                            <comment id="69024" author="dwight_10gen" created="Sat, 26 Nov 2011 22:13:11 +0000"  >&lt;p&gt;generally, in the current versions, there is a need for an _id index on secondaries otherwise replication application will be very slow.  perhaps if you have many collections and they are small it might be ok but generally it isn&apos;t.  we are researching what is the best long term approach.&lt;/p&gt;

&lt;p&gt;if a few have _id i wonder if old version created the index and new versions don&apos;t, that is my first thought.&lt;/p&gt;

&lt;p&gt;unless you empirically see non-index is faster, i&apos;d recommend having _id index on secondaries for now.&lt;/p&gt;</comment>
                            <comment id="69023" author="hito_asa" created="Sat, 26 Nov 2011 21:35:28 +0000"  >&lt;p&gt;I also encountered this problem. &lt;/p&gt;

&lt;p&gt;There are 100000 or more capped collections with no index in PRIMARY. &lt;br/&gt;
But 4 or 5% of collections has _id index in SECONDARY.&lt;/p&gt;

&lt;p&gt;I need no indices. I need no more disk use.&lt;/p&gt;</comment>
                            <comment id="19775" author="dwight_10gen" created="Thu, 28 Oct 2010 17:38:54 +0000"  >&lt;p&gt;duplicates &lt;a href=&quot;http://jira.mongodb.org/browse/SERVER-84&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;http://jira.mongodb.org/browse/SERVER-84&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="19745" author="dwight_10gen" created="Thu, 28 Oct 2010 03:20:22 +0000"  >&lt;p&gt;it would be unfortunate to lose the high speed.&lt;/p&gt;

&lt;p&gt;maybe there is another solution, like making the slaves not be too chatty on dup keys and keep going.&lt;/p&gt;</comment>
                            <comment id="19740" author="dwight_10gen" created="Thu, 28 Oct 2010 02:24:03 +0000"  >&lt;p&gt;workaround:&lt;/p&gt;

&lt;p&gt;(1) don&apos;t insert non-unique _ids&lt;br/&gt;
(2) create _id index explicitly&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="10185">SERVER-84</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="13596">SERVER-2048</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>10.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Sat, 26 Nov 2011 21:35:28 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            2 years, 31 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_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>dwight@mongodb.com</customfieldvalue>
            <customfieldvalue>milkie@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>hito_asa</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpccn:</customfieldvalue>

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

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

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