<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:31:20 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-13319] Secondary collection contains more objects than primary</title>
                <link>https://jira.mongodb.org/browse/SERVER-13319</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Using mongodb 2.4.9 ( database created since 1.8.3 ).&lt;/p&gt;

&lt;p&gt;I read an anomaly in the object count between a replicaset&apos;s primary and secondary collection; even though the secondary is not behind the Primary.&lt;/p&gt;

&lt;p&gt;Comparing with&lt;br/&gt;
$ db.master.chunks.stats()&lt;/p&gt;

&lt;div class=&apos;table-wrap&apos;&gt;
&lt;table class=&apos;confluenceTable&apos;&gt;&lt;tbody&gt;
&lt;tr&gt;
&lt;th class=&apos;confluenceTh&apos;&gt;parameters&lt;/th&gt;
&lt;th class=&apos;confluenceTh&apos;&gt;Primary&lt;/th&gt;
&lt;th class=&apos;confluenceTh&apos;&gt;Secondary 1&lt;/th&gt;
&lt;th class=&apos;confluenceTh&apos;&gt;Secondary 2&lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;count&lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; 6087983&lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;6087976&lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;6087983&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;


&lt;p&gt;Secondary 1 has 7 document more than the Primary and Secondary 2.&lt;br/&gt;
A reindex operation does not change that difference.&lt;/p&gt;

&lt;p&gt;An export of all _id fields from secondary 1 produces a list that matches the number of expected objects: 6087983&lt;/p&gt;

&lt;p&gt;What are these 7 extra objects about ? System related documents maybe ? Damaged documuments ? How do I find out ?&lt;/p&gt;</description>
                <environment></environment>
        <key id="124265">SERVER-13319</key>
            <summary>Secondary collection contains more objects than primary</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</type>
                                            <priority id="5" iconUrl="https://jira.mongodb.org/images/icons/priorities/trivial.svg">Trivial - P5</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="5">Cannot Reproduce</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="lwo">Lucien van Wouw</reporter>
                        <labels>
                    </labels>
                <created>Sun, 23 Mar 2014 15:50:05 +0000</created>
                <updated>Mon, 5 May 2014 19:18:05 +0000</updated>
                            <resolved>Thu, 3 Apr 2014 16:48:28 +0000</resolved>
                                    <version>2.4.9</version>
                                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="534319" author="thomasr" created="Thu, 3 Apr 2014 16:48:28 +0000"  >&lt;p&gt;Hi Lucien,&lt;/p&gt;

&lt;p&gt;Thanks for letting us know. Agreed, without the logs it will be near impossible to diagnose. As requested we&apos;re going to close the issue now. If the problem should re-occur, please don&apos;t hesitate to let us know.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Thomas&lt;/p&gt;</comment>
                            <comment id="523479" author="lwo" created="Wed, 26 Mar 2014 11:47:57 +0000"  >&lt;p&gt;I traced the missing fsGrid:chunks. All occured long before the events I described above. Using ObjectId(_id).getTimestamp():&lt;br/&gt;
ISODate(&quot;2012-12-14T11:48:37Z&quot;)&lt;br/&gt;
ISODate(&quot;2012-12-14T11:48:37Z&quot;)&lt;br/&gt;
ISODate(&quot;2012-12-15T16:07:13Z&quot;)&lt;br/&gt;
ISODate(&quot;2012-12-15T17:36:12Z&quot;)&lt;br/&gt;
ISODate(&quot;2012-12-17T00:21:52Z&quot;)&lt;br/&gt;
ISODate(&quot;2012-12-18T13:56:33Z&quot;)&lt;/p&gt;

&lt;p&gt;A test:&lt;br/&gt;
GETting the files these chunks belong to from the Primary gives the master file intact, md5 and all. Primary is good; and I&apos;ll resync.&lt;/p&gt;</comment>
                            <comment id="522652" author="lwo" created="Tue, 25 Mar 2014 10:53:49 +0000"  >&lt;p&gt;I will resync&lt;/p&gt;

&lt;p&gt;The other 14 shards show no similar anomalies. Without any concrete log for that past I do not think this issue can be investigated more closer, unless you have a suggestion for diagnostics. Otherwise, I like to ask you to close this issue.&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</comment>
                            <comment id="522353" author="asya" created="Mon, 24 Mar 2014 23:15:20 +0000"  >&lt;p&gt;I&apos;m not sure if the sequence of events explains the discrepancy, but I would agree that resyncing the secondary is the safest course of action.&lt;/p&gt;</comment>
                            <comment id="522222" author="lwo" created="Mon, 24 Mar 2014 20:56:08 +0000"  >&lt;p&gt;The table values are correct, but the description is wrong... secondary 1 has seven objects less: 6087976. The exported _ids from secondary 1 match that number 6087976. That is ok.&lt;/p&gt;

&lt;p&gt;On the 2nd of April 2013 secondary 1 had roll back data for this collection after severe network problems with a switch. There is no log data of that time; but the rollback data was not used and removed. Secondary 1 showed no error after validating all of its collections. The stats were not compared with the Primary.&lt;/p&gt;

&lt;p&gt;The writeConcern was set to Majority after that. And the batch re-submitted.&lt;/p&gt;

&lt;p&gt;Is it prudent to re-sync secondary 1 ?&lt;/p&gt;</comment>
                            <comment id="521871" author="asya" created="Mon, 24 Mar 2014 17:19:30 +0000"  >&lt;p&gt;Also the table you posted has secondary 1 with seven &lt;b&gt;fewer&lt;/b&gt; objects, not more - can you double check those numbers please?&lt;/p&gt;</comment>
                            <comment id="521869" author="asya" created="Mon, 24 Mar 2014 17:18:04 +0000"  >&lt;p&gt;Since the collection is called .chunks is this a gridFS collection with chunks for a corresponding files collection?&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>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 24 Mar 2014 17:18:04 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        9 years, 45 weeks, 6 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>false</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            9 years, 45 weeks, 6 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>asya.kamsky@mongodb.com</customfieldvalue>
            <customfieldvalue>lwo</customfieldvalue>
            <customfieldvalue>thomas.rueckstiess@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrlyaf:</customfieldvalue>

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

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

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