<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:59:22 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-2237] Loss  Data with Sharding</title>
                <link>https://jira.mongodb.org/browse/SERVER-2237</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;While testing sharding , i can see the data  loss.&lt;/p&gt;


&lt;p&gt;trace from shell&lt;br/&gt;
&amp;gt; db.contacts.count()&lt;br/&gt;
1700000&lt;br/&gt;
&amp;gt; for (var i = 1; i &amp;lt;= 500000; i++) db.contacts.save(&lt;/p&gt;
{aid:4, contact_id:i+200000,test_string: &quot;This is test string to test mongodb sharding &quot;+i,email:&quot;test@yahoo.com&quot;}
&lt;p&gt;);&lt;br/&gt;
&amp;gt; db.contacts.count()                                                                                                                                                    &lt;br/&gt;
2199999&lt;br/&gt;
&amp;gt; db.contacts.count()&lt;br/&gt;
2199999&lt;br/&gt;
&amp;gt; db.contacts.count()&lt;br/&gt;
2203454&lt;br/&gt;
&amp;gt; db.contacts.count()&lt;br/&gt;
2199999&lt;br/&gt;
&amp;gt; db.contacts.count()&lt;br/&gt;
2199999&lt;/p&gt;


&lt;p&gt;ERRORs from monos logs&lt;/p&gt;

&lt;p&gt;Thu Dec 16 14:41:39 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; autosplitting demo_contacts.contacts size: 1048648 shard: ns:demo_contacts.contacts at: shard0000:localhost:30001 lastmod: 101|31 min: &lt;/p&gt;
{ aid: 4.0, contact_id: 676362.0 }
&lt;p&gt; max: &lt;/p&gt;
{ aid: 5.0, contact_id: 1283.0 }
&lt;p&gt; on: &lt;/p&gt;
{ aid: 4.0, contact_id: 680372.0 }
&lt;p&gt;(splitThreshold 1048576)&lt;br/&gt;
Thu Dec 16 14:41:39 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; ERROR: splitIfShould failed: locking namespace failed&lt;br/&gt;
Thu Dec 16 14:41:39 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; autosplitting demo_contacts.contacts size: 1048648 shard: ns:demo_contacts.contacts at: shard0000:localhost:30001 lastmod: 101|31 min: &lt;/p&gt;
{ aid: 4.0, contact_id: 676362.0 }
&lt;p&gt; max: &lt;/p&gt;
{ aid: 5.0, contact_id: 1283.0 }
&lt;p&gt; on: &lt;/p&gt;
{ aid: 4.0, contact_id: 681072.0 }
&lt;p&gt;(splitThreshold 1048576)&lt;br/&gt;
Thu Dec 16 14:41:39 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; ERROR: splitIfShould failed: locking namespace failed&lt;br/&gt;
Thu Dec 16 14:41:39 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; autosplitting demo_contacts.contacts size: 1048648 shard: ns:demo_contacts.contacts at: shard0000:localhost:30001 lastmod: 101|31 min: &lt;/p&gt;
{ aid: 4.0, contact_id: 676362.0 }
&lt;p&gt; max: &lt;/p&gt;
{ aid: 5.0, contact_id: 1283.0 }
&lt;p&gt; on: &lt;/p&gt;
{ aid: 4.0, contact_id: 681771.0 }
&lt;p&gt;(splitThreshold 1048576)&lt;br/&gt;
Thu Dec 16 14:41:39 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; ERROR: splitIfShould failed: locking namespace failed&lt;br/&gt;
Thu Dec 16 14:41:39 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; autosplitting demo_contacts.contacts size: 1048648 shard: ns:demo_contacts.contacts at: shard0000:localhost:30001 lastmod: 101|31 min: &lt;/p&gt;
{ aid: 4.0, contact_id: 676362.0 }
&lt;p&gt; max: &lt;/p&gt;
{ aid: 5.0, contact_id: 1283.0 }
&lt;p&gt; on: &lt;/p&gt;
{ aid: 4.0, contact_id: 682471.0 }
&lt;p&gt;(splitThreshold 1048576)&lt;br/&gt;
Thu Dec 16 14:41:39 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; ERROR: splitIfShould failed: locking namespace failed&lt;br/&gt;
Thu Dec 16 14:41:39 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; autosplitting demo_contacts.contacts size: 1048648 shard: ns:demo_contacts.contacts at: shard0000:localhost:30001 lastmod: 101|31 min: &lt;/p&gt;
{ aid: 4.0, contact_id: 676362.0 }
&lt;p&gt; max: &lt;/p&gt;
{ aid: 5.0, contact_id: 1283.0 }
&lt;p&gt; on: &lt;/p&gt;
{ aid: 4.0, contact_id: 683170.0 }
&lt;p&gt;(splitThreshold 1048576)&lt;br/&gt;
Thu Dec 16 14:41:39 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; ERROR: splitIfShould failed: locking namespace failed&lt;br/&gt;
Thu Dec 16 14:41:&lt;/p&gt;

&lt;p&gt;Mongd log from one of the shard&lt;/p&gt;

&lt;p&gt;Thu Dec 16 14:43:05 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn12&amp;#93;&lt;/span&gt; query admin.$cmd ntoreturn:1 command: { moveChunk: &quot;demo_contacts.contacts&quot;, from: &quot;localhost:30001&quot;, to: &quot;localhost:30002&quot;, min: &lt;/p&gt;
{ aid: 4.0, contact_id: 249176.0 }
&lt;p&gt;, max: &lt;/p&gt;
{ aid: 4.0, contact_id: 253273.0 }
&lt;p&gt;, shardId: &quot;demo_contacts.contacts-aid_4.0contact_id_249176.0&quot;, configdb: &quot;localhost:20001&quot; } reslen:53 1084msThu Dec 16 14:43:07 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn9&amp;#93;&lt;/span&gt; Assertion: 13388:&lt;span class=&quot;error&quot;&gt;&amp;#91;demo_contacts.contacts&amp;#93;&lt;/span&gt; shard version not ok in Client::Context: your version is too old  ns: demo_contacts.contacts global: 116|1 client: 106|1&lt;br/&gt;
0x540c7e 0x713d07 0x5fbe40 0x79aa58 0x797596 0x798538 0x5fb7e5 0x60029f 0x7074ba 0x70aaf6 0x82691b 0x83a4b0 0x3d28e0673d 0x3d286d3f6d   ./mongodb-linux-x86_64-1.6.5/bin/mongod(_ZN5mongo11msgassertedEiPKc+0x1de) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x540c7e&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongodb-linux-x86_64-1.6.5/bin/mongod(_ZN5mongo6Client7Context11_finishInitEb+0x1b7) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x713d07&amp;#93;&lt;/span&gt; ./mongodb-linux-x86_64-1.6.5/bin/mongod(_ZN5mongo8runCountEPKcRKNS_7BSONObjERSs+0xc0) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5fbe40&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongodb-linux-x86_64-1.6.5/bin/mongod(_ZN5mongo8CmdCount3runERKSsRNS_7BSONObjERSsRNS_14BSONObjBuilderEb+0xa8) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x79aa58&amp;#93;&lt;/span&gt;  ./mongodb-linux-x86_64-1.6.5/bin/mongod(_ZN5mongo11execCommandEPNS_7CommandERNS_6ClientEiPKcRNS_7BSONObjERNS_14BSONObjBuilderEb+0xa16) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x797596&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongodb-linux-x86_64-1.6.5/bin/mongod(_ZN5mongo12_runCommandsEPKcRNS_7BSONObjERNS_10BufBuilderERNS_14BSONObjBuilderEbi+0x798) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x798538&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongodb-linux-x86_64-1.6.5/bin/mongod(&lt;em&gt;ZN5mongo11runCommandsEPKcRNS_7BSONObjERNS_5CurOpERNS_10BufBuilderERNS_14BSONObjBuilderEbi+0x35) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5fb7e5&amp;#93;&lt;/span&gt; ./mongodb-linux-x86_64-1.6.5/bin/mongod(_ZN5mongo8runQueryERNS_7MessageERNS_12QueryMessageERNS_5CurOpES1&lt;/em&gt;+0x1bbf) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x60029f&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongodb-linux-x86_64-1.6.5/bin/mongod &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7074ba&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongodb-linux-x86_64-1.6.5/bin/mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_8SockAddrE+0x14d6) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x70aaf6&amp;#93;&lt;/span&gt; ./mongodb-linux-x86_64-1.6.5/bin/mongod(_ZN5mongo10connThreadEPNS_13MessagingPortE+0x30b) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x82691b&amp;#93;&lt;/span&gt;&lt;br/&gt;
 ./mongodb-linux-x86_64-1.6.5/bin/mongod(thread_proxy+0x80) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x83a4b0&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib64/libpthread.so.0 &lt;span class=&quot;error&quot;&gt;&amp;#91;0x3d28e0673d&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib64/libc.so.6(clone+0x6d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x3d286d3f6d&amp;#93;&lt;/span&gt;&lt;br/&gt;
Thu Dec 16 14:43:10 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn12&amp;#93;&lt;/span&gt; got movechunk: { moveChunk: &quot;demo_contacts.contacts&quot;, from: &quot;localhost:30001&quot;, to: &quot;localhost:30002&quot;, min: &lt;/p&gt;
{ aid: 4.0, contact_id: 253273.0 }
&lt;p&gt;, max: &lt;/p&gt;
{ aid: 4.0, contact_id: 256729.0 }
&lt;p&gt;, shardId: &quot;demo_contacts.contacts-aid_4.0contact_id_253273.0&quot;, configdb: &quot;localhost:20001&quot; }&lt;br/&gt;
Thu Dec 16 14:43:11 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn12&amp;#93;&lt;/span&gt; _recvChunkStatus : { active: true, ns: &quot;demo_contacts.contacts&quot;, from: &quot;localhost:30001&quot;, min: &lt;/p&gt;
{ aid: 4.0, contact_id: 253273.0 }
&lt;p&gt;, max: &lt;/p&gt;
{ aid: 4.0, contact_id: 256729.0 }
&lt;p&gt;, s&lt;/p&gt;</description>
                <environment>Linux CentOs 5</environment>
        <key id="13987">SERVER-2237</key>
            <summary>Loss  Data with Sharding</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="5">Cannot Reproduce</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="krishna">Krishna Maddireddy</reporter>
                        <labels>
                    </labels>
                <created>Thu, 16 Dec 2010 19:51:37 +0000</created>
                <updated>Thu, 17 Mar 2011 19:13:11 +0000</updated>
                            <resolved>Fri, 17 Dec 2010 22:52:00 +0000</resolved>
                                    <version>1.6.5</version>
                                                    <component>Stability</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="21543" author="krishna" created="Fri, 17 Dec 2010 22:09:12 +0000"  >&lt;p&gt;After using  Centos Mongodb packages , i don&apos;t see the issue any more.&lt;/p&gt;</comment>
                            <comment id="21484" author="eliot" created="Thu, 16 Dec 2010 21:41:05 +0000"  >&lt;p&gt;Are you sure its not an off by 1 error?&lt;br/&gt;
Can you try 1.7.3?&lt;/p&gt;</comment>
                            <comment id="21483" author="krishna" created="Thu, 16 Dec 2010 21:36:15 +0000"  >&lt;p&gt;Yes it should be 2200000.&lt;/p&gt;

&lt;p&gt;In this case there is a loss of one record, but i have see major  data lost with other tests.&lt;/p&gt;

&lt;p&gt;yes here are the indexes&lt;/p&gt;

&lt;p&gt;&amp;gt; db.contacts.getIndexes()&lt;br/&gt;
[&lt;br/&gt;
        {&lt;br/&gt;
                &quot;name&quot; : &quot;&lt;em&gt;id&lt;/em&gt;&quot;,&lt;br/&gt;
                &quot;ns&quot; : &quot;demo_contacts.contacts&quot;,&lt;br/&gt;
                &quot;key&quot; : &lt;/p&gt;
{
                        &quot;_id&quot; : 1
                }
&lt;p&gt;        },&lt;br/&gt;
        {&lt;br/&gt;
                &quot;_id&quot; : ObjectId(&quot;4d0a6618cea3b6594c8967eb&quot;),&lt;br/&gt;
                &quot;ns&quot; : &quot;demo_contacts.contacts&quot;,&lt;br/&gt;
                &quot;key&quot; : &lt;/p&gt;
{
                        &quot;aid&quot; : 1,
                        &quot;contact_id&quot; : 1
                }
&lt;p&gt;,&lt;br/&gt;
                &quot;name&quot; : &quot;aid_1_contact_id_1&quot;,&lt;br/&gt;
                &quot;unique&quot; : true&lt;br/&gt;
        }&lt;br/&gt;
]&lt;br/&gt;
&amp;gt; &lt;/p&gt;
</comment>
                            <comment id="21482" author="eliot" created="Thu, 16 Dec 2010 20:52:13 +0000"  >&lt;p&gt;Are you sure expected number is 2200000?&lt;br/&gt;
Are there any unique indexes?&lt;/p&gt;

&lt;p&gt;An occasionally higher count is expected sometimes right now.&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>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 16 Dec 2010 20:52:13 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            13 years, 9 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="10020"><![CDATA[Linux]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>krishna</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpa0v:</customfieldvalue>

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

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

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