<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:02:16 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-3169] Upserts are not reaching documents </title>
                <link>https://jira.mongodb.org/browse/SERVER-3169</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;While running ./mongostat, from one day to another, my document update-count decreased a lot (from 1000 docs/secs to only +-50)&lt;br/&gt;
Then I realized there&apos;s a waterfall of exceptions in mongo.log&lt;br/&gt;
This occured without doing any administration task, within months of server uptime &lt;br/&gt;
Our collection are pretty small (20k and 100k docs), sumarizing less than 1Gb of db files&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;I had 1.6.5 version, and to trust db.coll.validate() process I migrated to 1.8.1, results are still &quot;valid: true&quot;&lt;/li&gt;
	&lt;li&gt;I still didnt run any repairDatabase(), there&apos;s no sign of corruption...&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;After migrating, the error persists.&lt;/p&gt;

&lt;p&gt;I&apos;d appreciate any clue to this issue.... &lt;br/&gt;
(Change it to Question if you feel this aint a bug)&lt;/p&gt;

&lt;p&gt;------------ THESE ARE COMMON UPSERT OPERATIONS USING JAVA DRIVER (these upserts doesnt look to be updating anything)&lt;/p&gt;

&lt;p&gt;DEBUG &lt;span class=&quot;error&quot;&gt;&amp;#91;scheduler-1&amp;#93;&lt;/span&gt; 30 May 2011 21:33:01  (BaseMongoPersister.java:302) - Upsert to dayByCountry Obj: { &quot;$set&quot; : { &quot;day&quot; : &lt;/p&gt;
{ &quot;$date&quot; : &quot;2011-05-30T00:00:00Z&quot;}
&lt;p&gt; , &quot;client&quot; : &quot;myclient&quot; , &quot;country&quot; : &quot;ke&quot;} , &quot;$inc&quot; : { &quot;counters.120.h&quot; : 2 , &quot;counters.301.h&quot; : 1 , &quot;counters.281.h&quot; : 2 , &quot;counters.139.h&quot; : 2 , &quot;counters.119.h&quot; : 2 , &quot;counters.508.h&quot; : 2 , &quot;counters.303.h&quot; : 2 , &quot;counters.299.h&quot; : 1 , &quot;counters.147.h&quot; : 2 , &quot;counters.432.h&quot; : 2 , &quot;counters.81.h&quot; : 2 , &quot;counters.285.h&quot; : 1 , &quot;urlCounters.461.h&quot; : 2 , &quot;domainCounters.d1*openx*org.h&quot; : 2 , &quot;hitCount&quot; : 2}} USING Query: { &quot;day&quot; : &lt;/p&gt;
{ &quot;$date&quot; : &quot;2011-05-30T00:00:00Z&quot;}
&lt;p&gt; , &quot;country&quot; : &quot;ke&quot; , &quot;client&quot; : &quot;myclient&quot;}&lt;br/&gt;
DEBUG &lt;span class=&quot;error&quot;&gt;&amp;#91;scheduler-1&amp;#93;&lt;/span&gt; 30 May 2011 21:33:01  (BaseMongoPersister.java:314) - Upsert to monthByCountry Obj: { &quot;$set&quot; : { &quot;country&quot; : &quot;ke&quot; , &quot;client&quot; : &quot;myclient&quot; , &quot;month&quot; : { &quot;$date&quot; : &quot;2011-05-01T00:00:00Z&quot;}} , &quot;$inc&quot; : { &quot;counters.120.h&quot; : 2 , &quot;counters.301.h&quot; : 1 , &quot;counters.281.h&quot; : 2 , &quot;counters.139.h&quot; : 2 , &quot;counters.119.h&quot; : 2 , &quot;counters.508.h&quot; : 2 , &quot;counters.303.h&quot; : 2 , &quot;counters.299.h&quot; : 1 , &quot;counters.147.h&quot; : 2 , &quot;counters.432.h&quot; : 2 , &quot;counters.81.h&quot; : 2 , &quot;counters.285.h&quot; : 1 , &quot;urlCounters.461.h&quot; : 2 , &quot;domainCounters.d1*openx*org.h&quot; : 2 , &quot;hitCount&quot; : 2}} USING Query: { &quot;country&quot; : &quot;ke&quot; , &quot;client&quot; : &quot;myclient&quot; , &quot;month&quot; : { &quot;$date&quot; : &quot;2011-05-01T00:00:00Z&quot;}}&lt;br/&gt;
 INFO &lt;span class=&quot;error&quot;&gt;&amp;#91;scheduler-1&amp;#93;&lt;/span&gt; 30 May 2011 21:33:01  (BaseMongoPersister.java:207) - Logged OK - Country: ke Client: myclient Hits: 2&lt;/p&gt;


&lt;p&gt;-------------- VERIFYING EXISTANCE OF DOCUMENTS&lt;/p&gt;

&lt;p&gt;To verify documents that should be reached by upserts, which instead are failing (see errors below)&lt;/p&gt;

&lt;p&gt;&amp;gt; db.dayByCountry.find({&quot;country&quot;:&quot;gb&quot;, &quot;client&quot;:&quot;myclient&quot;, &quot;day&quot;: {&quot;$gte&quot;: new Date(2011, 4, 30, 0), &quot;$lte&quot;: new Date(2011, 4, 30, 0)}}, &lt;/p&gt;
{&quot;hitCount&quot;: 1, &quot;day&quot;:1}
&lt;p&gt;)&lt;/p&gt;
{ &quot;_id&quot; : ObjectId(&quot;4de2de3a79d39014de0ac86a&quot;), &quot;day&quot; : ISODate(&quot;2011-05-30T00:00:00Z&quot;), &quot;hitCount&quot; : 1384761 }

&lt;p&gt;So document exists...&lt;/p&gt;

&lt;p&gt;-------------- EXTRACT OF MONGO-LOG&lt;/p&gt;

&lt;p&gt;Mon May 30 21:25:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn5&amp;#93;&lt;/span&gt; update pixserverHits.dayByCountry  query: &lt;/p&gt;
{ day: new Date(1306713600000), country: &quot;gb&quot;, client: &quot;myclient&quot; }
&lt;p&gt; exception 0 assertion db/update.cpp:686 24ms&lt;br/&gt;
Mon May 30 21:25:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn6&amp;#93;&lt;/span&gt;  pixserverHits.dayByCountry Assertion failure 0 db/update.cpp 686&lt;br/&gt;
0x54e8de 0x55f971 0x67a9f8 0x67abaf 0x6656a6 0x667f28 0x66aed0 0x75632f 0x758cc1 0x8a3b3e 0x8b6a40 0x7f38704c39ca 0x7f386fa7270d &lt;br/&gt;
 /home/mongo/mongodb/bin/mongod(_ZN5mongo12sayDbContextEPKc+0xae) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x54e8de&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/mongo/mongodb/bin/mongod(_ZN5mongo8assertedEPKcS1_j+0x111) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x55f971&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/mongo/mongodb/bin/mongod(_ZN5mongo11ModSetState17createNewFromModsINS_14BSONObjBuilderEEEvRKSsRT_RKNS_7BSONObjE+0xb18) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x67a9f8&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/mongo/mongodb/bin/mongod(_ZN5mongo11ModSetState17createNewFromModsINS_14BSONObjBuilderEEEvRKSsRT_RKNS_7BSONObjE+0xccf) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x67abaf&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/mongo/mongodb/bin/mongod(_ZN5mongo11ModSetState17createNewFromModsEv+0x66) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6656a6&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/mongo/mongodb/bin/mongod(_ZN5mongo14_updateObjectsEbPKcRKNS_7BSONObjES2_bbbRNS_7OpDebugEPNS_11RemoveSaverE+0xc48) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x667f28&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/mongo/mongodb/bin/mongod(_ZN5mongo13updateObjectsEPKcRKNS_7BSONObjES2_bbbRNS_7OpDebugE+0x130) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x66aed0&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/mongo/mongodb/bin/mongod(_ZN5mongo14receivedUpdateERNS_7MessageERNS_5CurOpE+0x47f) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x75632f&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/mongo/mongodb/bin/mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_8SockAddrE+0x1941) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x758cc1&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/mongo/mongodb/bin/mongod(_ZN5mongo10connThreadEPNS_13MessagingPortE+0x21e) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x8a3b3e&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/mongo/mongodb/bin/mongod(thread_proxy+0x80) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x8b6a40&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/libpthread.so.0(+0x69ca) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f38704c39ca&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/libc.so.6(clone+0x6d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f386fa7270d&amp;#93;&lt;/span&gt;&lt;br/&gt;
Mon May 30 21:25:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn6&amp;#93;&lt;/span&gt; update pixserverHits.dayByCountry  query: &lt;/p&gt;
{ day: new Date(1306713600000), country: &quot;gb&quot;, client: &quot;myclient&quot; }
&lt;p&gt; exception 0 assertion db/update.cpp:686 25ms&lt;br/&gt;
Mon May 30 21:25:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn4&amp;#93;&lt;/span&gt;  pixserverHits.monthByCountry Assertion failure 0 db/update.cpp 686&lt;br/&gt;
0x54e8de 0x55f971 0x67a9f8 0x67abaf 0x6656a6 0x667f28 0x66aed0 0x75632f 0x758cc1 0x8a3b3e 0x8b6a40 0x7f38704c39ca 0x7f386fa7270d &lt;br/&gt;
 /home/mongo/mongodb/bin/mongod(_ZN5mongo12sayDbContextEPKc+0xae) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x54e8de&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/mongo/mongodb/bin/mongod(_ZN5mongo8assertedEPKcS1_j+0x111) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x55f971&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/mongo/mongodb/bin/mongod(_ZN5mongo11ModSetState17createNewFromModsINS_14BSONObjBuilderEEEvRKSsRT_RKNS_7BSONObjE+0xb18) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x67a9f8&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/mongo/mongodb/bin/mongod(_ZN5mongo11ModSetState17createNewFromModsINS_14BSONObjBuilderEEEvRKSsRT_RKNS_7BSONObjE+0xccf) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x67abaf&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/mongo/mongodb/bin/mongod(_ZN5mongo11ModSetState17createNewFromModsEv+0x66) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6656a6&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/mongo/mongodb/bin/mongod(_ZN5mongo14_updateObjectsEbPKcRKNS_7BSONObjES2_bbbRNS_7OpDebugEPNS_11RemoveSaverE+0xc48) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x667f28&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/mongo/mongodb/bin/mongod(_ZN5mongo13updateObjectsEPKcRKNS_7BSONObjES2_bbbRNS_7OpDebugE+0x130) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x66aed0&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/mongo/mongodb/bin/mongod(_ZN5mongo14receivedUpdateERNS_7MessageERNS_5CurOpE+0x47f) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x75632f&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/mongo/mongodb/bin/mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_8SockAddrE+0x1941) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x758cc1&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/mongo/mongodb/bin/mongod(_ZN5mongo10connThreadEPNS_13MessagingPortE+0x21e) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x8a3b3e&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/mongo/mongodb/bin/mongod(thread_proxy+0x80) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x8b6a40&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/libpthread.so.0(+0x69ca) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f38704c39ca&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/libc.so.6(clone+0x6d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f386fa7270d&amp;#93;&lt;/span&gt;&lt;br/&gt;
Mon May 30 21:25:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn4&amp;#93;&lt;/span&gt; update pixserverHits.monthByCountry  query: &lt;/p&gt;
{ country: &quot;gb&quot;, client: &quot;myclient&quot;, month: new Date(1304208000000) }
&lt;p&gt; exception 0 assertion db/update.cpp:686 49ms&lt;br/&gt;
Mon May 30 21:25:36 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn5&amp;#93;&lt;/span&gt;  pixserverHits.monthByCountry Assertion failure 0 db/update.cpp 686&lt;br/&gt;
0x54e8de 0x55f971 0x67a9f8 0x67abaf 0x6656a6 0x667f28 0x66aed0 0x75632f 0x758cc1 0x8a3b3e 0x8b6a40 0x7f38704c39ca 0x7f386fa7270d &lt;br/&gt;
 /home/mongo/mongodb/bin/mongod(_ZN5mongo12sayDbContextEPKc+0xae) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x54e8de&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/mongo/mongodb/bin/mongod(_ZN5mongo8assertedEPKcS1_j+0x111) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x55f971&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/mongo/mongodb/bin/mongod(_ZN5mongo11ModSetState17createNewFromModsINS_14BSONObjBuilderEEEvRKSsRT_RKNS_7BSONObjE+0xb18) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x67a9f8&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/mongo/mongodb/bin/mongod(_ZN5mongo11ModSetState17createNewFromModsINS_14BSONObjBuilderEEEvRKSsRT_RKNS_7BSONObjE+0xccf) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x67abaf&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/mongo/mongodb/bin/mongod(_ZN5mongo11ModSetState17createNewFromModsEv+0x66) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6656a6&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/mongo/mongodb/bin/mongod(_ZN5mongo14_updateObjectsEbPKcRKNS_7BSONObjES2_bbbRNS_7OpDebugEPNS_11RemoveSaverE+0xc48) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x667f28&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/mongo/mongodb/bin/mongod(_ZN5mongo13updateObjectsEPKcRKNS_7BSONObjES2_bbbRNS_7OpDebugE+0x130) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x66aed0&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/mongo/mongodb/bin/mongod(_ZN5mongo14receivedUpdateERNS_7MessageERNS_5CurOpE+0x47f) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x75632f&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/mongo/mongodb/bin/mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_8SockAddrE+0x1941) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x758cc1&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/mongo/mongodb/bin/mongod(_ZN5mongo10connThreadEPNS_13MessagingPortE+0x21e) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x8a3b3e&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/mongo/mongodb/bin/mongod(thread_proxy+0x80) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x8b6a40&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/libpthread.so.0(+0x69ca) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f38704c39ca&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/libc.so.6(clone+0x6d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f386fa7270d&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;------------- RESULTS WHEN DOING VALIDATION&lt;/p&gt;

&lt;p&gt;&amp;gt; db.dayByCountry.validate()&lt;br/&gt;
{&lt;br/&gt;
	&quot;ns&quot; : &quot;pixserverHits.dayByCountry&quot;,&lt;br/&gt;
	&quot;result&quot; : &quot;\nvalidate\n  firstExtent:0:3d00 ns:pixserverHits.dayByCountry\n  lastExtent:3:1378f500 ns:pixserverHits.dayByCountry\n  # extents:22\n  datasize?:748977412 nrecords?:137782 lastExtentSize:155085824\n  padding:1.01\n  first extent:\n    loc:0:3d00 xnext:0:5d00 xprev:null\n    nsdiag:pixserverHits.dayByCountry\n    size:8192 firstRecord:0:3db0 lastRecord:0:5c94\n  137782 objects found, nobj:137782\n  751181924 bytes data w/headers\n  748977412 bytes data wout/headers\n  deletedList: 0110111111111100001\n  deleted: n: 131 size: 140185724\n  nIndexes:3\n    pixserverHits.dayByCountry.$&lt;em&gt;id&lt;/em&gt; keys:137782\n    pixserverHits.dayByCountry.$dayByCountry2 keys:137782\n    pixserverHits.dayByCountry.$dayByCountry keys:137782\n&quot;,&lt;br/&gt;
	&quot;ok&quot; : 1,&lt;br/&gt;
	&quot;valid&quot; : true,&lt;br/&gt;
	&quot;lastExtentSize&quot; : 155085824&lt;br/&gt;
}&lt;br/&gt;
&amp;gt; db.monthByCountry.validate()&lt;br/&gt;
{&lt;br/&gt;
	&quot;ns&quot; : &quot;pixserverHits.monthByCountry&quot;,&lt;br/&gt;
	&quot;result&quot; : &quot;\nvalidate\n  firstExtent:3:1d617300 ns:pixserverHits.monthByCountry\n  lastExtent:4:4b73700 ns:pixserverHits.monthByCountry\n  # extents:12\n  datasize?:82677816 nrecords?:13072 lastExtentSize:25047552\n  padding:1.01\n  first extent:\n    loc:3:1d617300 xnext:3:1d619300 xprev:null\n    nsdiag:pixserverHits.monthByCountry\n    size:8192 firstRecord:3:1d6173b0 lastRecord:3:1d6191e8\n  13072 objects found, nobj:13072\n  82886968 bytes data w/headers\n  82677816 bytes data wout/headers\n  deletedList: 0010001111111111001\n  deleted: n: 115 size: 28248456\n  nIndexes:3\n    pixserverHits.monthByCountry.$&lt;em&gt;id&lt;/em&gt; keys:13072\n    pixserverHits.monthByCountry.$monthByCountry keys:13072\n    pixserverHits.monthByCountry.$monthByCountry2 keys:13072\n&quot;,&lt;br/&gt;
	&quot;ok&quot; : 1,&lt;br/&gt;
	&quot;valid&quot; : true,&lt;br/&gt;
	&quot;lastExtentSize&quot; : 25047552&lt;br/&gt;
}&lt;/p&gt;</description>
                <environment>first 1.6.5 then 1.8.1&lt;br/&gt;
ubuntu lucid&lt;br/&gt;
amazon ec2 servers</environment>
        <key id="17677">SERVER-3169</key>
            <summary>Upserts are not reaching documents </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="4">Incomplete</resolution>
                                        <assignee username="eliot">Eliot Horowitz</assignee>
                                    <reporter username="gcristian">cristian gonzalez</reporter>
                        <labels>
                            <label>Upsert</label>
                            <label>exception</label>
                    </labels>
                <created>Mon, 30 May 2011 21:57:35 +0000</created>
                <updated>Tue, 29 May 2012 14:53:28 +0000</updated>
                            <resolved>Sat, 10 Sep 2011 04:38:00 +0000</resolved>
                                    <version>1.8.1</version>
                                                    <component>Stability</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="52137" author="eliot" created="Fri, 2 Sep 2011 05:06:26 +0000"  >&lt;p&gt;Sorry for the delay, is this still an issue?&lt;/p&gt;</comment>
                            <comment id="36583" author="gcristian" created="Tue, 7 Jun 2011 21:27:11 +0000"  >&lt;p&gt;I cannot isolate the code to deliver anything useful...&lt;br/&gt;
Can you please just give me a clue on the mongo&apos;s stack trace ??&lt;br/&gt;
I need somehting to start on... &lt;br/&gt;
What&apos;s it&apos;s meaning... where I can look for...&lt;/p&gt;</comment>
                            <comment id="35569" author="eliot" created="Wed, 1 Jun 2011 15:34:19 +0000"  >&lt;p&gt;The ops are inactive, so the data could be invalid.&lt;/p&gt;</comment>
                            <comment id="35555" author="gcristian" created="Wed, 1 Jun 2011 14:12:53 +0000"  >&lt;p&gt;Look at fields: &quot;query&quot; and :&quot;ns&quot;&lt;/p&gt;

&lt;p&gt;&quot;opid&quot; : 4991104,&lt;br/&gt;
&quot;active&quot; : false,&lt;br/&gt;
&quot;lockType&quot; : &quot;write&quot;,&lt;br/&gt;
&quot;waitingForLock&quot; : true,&lt;br/&gt;
&quot;op&quot; : &quot;update&quot;,&lt;br/&gt;
&quot;ns&quot; : &quot;?ixserverHits.dayByCountry&quot;,&lt;br/&gt;
&quot;query&quot; : {&lt;br/&gt;
&quot;country&quot; : &quot;vn&quot;,&lt;br/&gt;
&quot;client&quot; : &quot;harren&quot;,&lt;br/&gt;
&quot;month&quot; : ISODate(&quot;2011-05-01T00:00:00Z&quot;)&lt;br/&gt;
},&lt;br/&gt;
&quot;client&quot; : &quot;10.126.13.19:60922&quot;,&lt;br/&gt;
&quot;desc&quot; : &quot;conn&quot; &lt;/p&gt;

&lt;p&gt;The value &quot;month&quot; in &quot;query&quot; is incorrect for this collection (?ixserverHits.dayByCountry)&lt;br/&gt;
See ?&lt;br/&gt;
For collection ..dayByCountry i send query with key &quot;day&quot; and for collection ..monthByCountry i send query with key &quot;month&quot;&lt;br/&gt;
It&apos;s inverted !!&lt;br/&gt;
You can say, OK, I&apos;m sending wrong queries... well, I&apos;ve already posted mongo.log above to prove i&apos;m not...( that exception is continuously thrown now, and mongo it&apos;s writing only 10% of total updates )&lt;/p&gt;</comment>
                            <comment id="35466" author="eliot" created="Wed, 1 Jun 2011 06:40:24 +0000"  >&lt;p&gt;1) I don&apos;t understand.  Do you have code to reproduce?&lt;br/&gt;
2) This is normal for things that yield&lt;/p&gt;</comment>
                            <comment id="35387" author="gcristian" created="Tue, 31 May 2011 20:31:52 +0000"  >&lt;p&gt;I post here something more Interesting... not sure if it&apos;s ok to analyze it this way ... but...&lt;br/&gt;
I see 2 important things:&lt;/p&gt;

&lt;p&gt;1) at first sight looking like the bug:  the query for each operation indicates usage of inverted keys...&lt;br/&gt;
I mean, coll. &quot;dayByCountry&quot; it&apos;s indexed by &quot;day&quot;, and coll. &quot;monthByCountry&quot;: by &quot;month&quot;&lt;br/&gt;
But the operation shows exactly the opposite thing...&lt;br/&gt;
You can verify this by looking at the application log posted above, which shows which query is being done at each upsert()&lt;/p&gt;

&lt;p&gt;This would explain the situation ?&lt;/p&gt;

&lt;p&gt;2) the NS field has a &quot;?&quot; in the name, is that ok ? (real name is &quot;pixserverHits&quot;)&lt;/p&gt;

&lt;p&gt;&amp;gt; db.currentOP()&lt;br/&gt;
{&lt;br/&gt;
	&quot;inprog&quot; : [&lt;br/&gt;
		{&lt;br/&gt;
			&quot;opid&quot; : 4991096,&lt;br/&gt;
			&quot;active&quot; : false,&lt;br/&gt;
			&quot;lockType&quot; : &quot;write&quot;,&lt;br/&gt;
			&quot;waitingForLock&quot; : true,&lt;br/&gt;
			&quot;op&quot; : &quot;update&quot;,&lt;br/&gt;
			&quot;ns&quot; : &quot;?ixserverHits.monthByCountry&quot;,&lt;br/&gt;
			&quot;query&quot; : &lt;/p&gt;
{
				&quot;day&quot; : ISODate(&quot;2011-05-31T00:00:00Z&quot;),
				&quot;country&quot; : &quot;il&quot;,
				&quot;client&quot; : &quot;harren&quot;
			}
&lt;p&gt;,&lt;br/&gt;
			&quot;client&quot; : &quot;10.204.191.25:34972&quot;,&lt;br/&gt;
			&quot;desc&quot; : &quot;conn&quot;&lt;br/&gt;
		},&lt;br/&gt;
		{&lt;br/&gt;
			&quot;opid&quot; : 4991104,&lt;br/&gt;
			&quot;active&quot; : false,&lt;br/&gt;
			&quot;lockType&quot; : &quot;write&quot;,&lt;br/&gt;
			&quot;waitingForLock&quot; : true,&lt;br/&gt;
			&quot;op&quot; : &quot;update&quot;,&lt;br/&gt;
			&quot;ns&quot; : &quot;?ixserverHits.dayByCountry&quot;,&lt;br/&gt;
			&quot;query&quot; : &lt;/p&gt;
{
				&quot;country&quot; : &quot;vn&quot;,
				&quot;client&quot; : &quot;harren&quot;,
				&quot;month&quot; : ISODate(&quot;2011-05-01T00:00:00Z&quot;)
			}
&lt;p&gt;,&lt;br/&gt;
			&quot;client&quot; : &quot;10.126.13.19:60922&quot;,&lt;br/&gt;
			&quot;desc&quot; : &quot;conn&quot;&lt;br/&gt;
		},&lt;br/&gt;
		{&lt;br/&gt;
			&quot;opid&quot; : 4991098,&lt;br/&gt;
			&quot;active&quot; : false,&lt;br/&gt;
			&quot;lockType&quot; : &quot;write&quot;,&lt;br/&gt;
			&quot;waitingForLock&quot; : true,&lt;br/&gt;
			&quot;op&quot; : &quot;update&quot;,&lt;br/&gt;
			&quot;ns&quot; : &quot;?ixserverHits.monthByCountry&quot;,&lt;br/&gt;
			&quot;query&quot; : &lt;/p&gt;
{
				&quot;day&quot; : ISODate(&quot;2011-05-31T00:00:00Z&quot;),
				&quot;country&quot; : &quot;pk&quot;,
				&quot;client&quot; : &quot;harren&quot;
			}
&lt;p&gt;,&lt;br/&gt;
			&quot;client&quot; : &quot;10.102.73.130:56243&quot;,&lt;br/&gt;
			&quot;desc&quot; : &quot;conn&quot;&lt;br/&gt;
		},&lt;br/&gt;
		{&lt;br/&gt;
			&quot;opid&quot; : 4991100,&lt;br/&gt;
			&quot;active&quot; : false,&lt;br/&gt;
			&quot;lockType&quot; : &quot;write&quot;,&lt;br/&gt;
			&quot;waitingForLock&quot; : true,&lt;br/&gt;
			&quot;op&quot; : &quot;update&quot;,&lt;br/&gt;
			&quot;ns&quot; : &quot;?ixserverHits.monthByCountry&quot;,&lt;br/&gt;
			&quot;query&quot; : &lt;/p&gt;
{
				&quot;day&quot; : ISODate(&quot;2011-05-31T00:00:00Z&quot;),
				&quot;country&quot; : &quot;ci&quot;,
				&quot;client&quot; : &quot;harren&quot;
			}
&lt;p&gt;,&lt;br/&gt;
			&quot;client&quot; : &quot;10.88.133.89:40298&quot;,&lt;br/&gt;
			&quot;desc&quot; : &quot;conn&quot;&lt;br/&gt;
		},&lt;br/&gt;
		{&lt;br/&gt;
			&quot;opid&quot; : 4991102,&lt;br/&gt;
			&quot;active&quot; : false,&lt;br/&gt;
			&quot;lockType&quot; : &quot;write&quot;,&lt;br/&gt;
			&quot;waitingForLock&quot; : true,&lt;br/&gt;
			&quot;op&quot; : &quot;update&quot;,&lt;br/&gt;
			&quot;ns&quot; : &quot;?ixserverHits.monthByCountry&quot;,&lt;br/&gt;
			&quot;query&quot; : &lt;/p&gt;
{
				&quot;day&quot; : ISODate(&quot;2011-05-31T00:00:00Z&quot;),
				&quot;country&quot; : &quot;nl&quot;,
				&quot;client&quot; : &quot;harren&quot;
			}
&lt;p&gt;,&lt;br/&gt;
			&quot;client&quot; : &quot;10.220.214.33:47526&quot;,&lt;br/&gt;
			&quot;desc&quot; : &quot;conn&quot;&lt;br/&gt;
		},&lt;br/&gt;
		{&lt;br/&gt;
			&quot;opid&quot; : 4991103,&lt;br/&gt;
			&quot;active&quot; : false,&lt;br/&gt;
			&quot;lockType&quot; : &quot;write&quot;,&lt;br/&gt;
			&quot;waitingForLock&quot; : true,&lt;br/&gt;
			&quot;op&quot; : &quot;update&quot;,&lt;br/&gt;
			&quot;ns&quot; : &quot;?ixserverHits.monthByCountry&quot;,&lt;br/&gt;
			&quot;query&quot; : &lt;/p&gt;
{
				&quot;day&quot; : ISODate(&quot;2011-05-31T00:00:00Z&quot;),
				&quot;country&quot; : &quot;iq&quot;,
				&quot;client&quot; : &quot;harren&quot;
			}
&lt;p&gt;,&lt;br/&gt;
			&quot;client&quot; : &quot;10.244.183.161:40433&quot;,&lt;br/&gt;
			&quot;desc&quot; : &quot;conn&quot;&lt;br/&gt;
		},&lt;br/&gt;
		{&lt;br/&gt;
			&quot;opid&quot; : 4991099,&lt;br/&gt;
			&quot;active&quot; : false,&lt;br/&gt;
			&quot;lockType&quot; : &quot;write&quot;,&lt;br/&gt;
			&quot;waitingForLock&quot; : true,&lt;br/&gt;
			&quot;op&quot; : &quot;update&quot;,&lt;br/&gt;
			&quot;ns&quot; : &quot;?ixserverHits.dayByCountry&quot;,&lt;br/&gt;
			&quot;query&quot; : &lt;/p&gt;
{
				&quot;country&quot; : &quot;fr&quot;,
				&quot;client&quot; : &quot;harren&quot;,
				&quot;month&quot; : ISODate(&quot;2011-05-01T00:00:00Z&quot;)
			}
&lt;p&gt;,&lt;br/&gt;
			&quot;client&quot; : &quot;10.88.133.189:41156&quot;,&lt;br/&gt;
			&quot;desc&quot; : &quot;conn&quot;&lt;br/&gt;
		},&lt;br/&gt;
		{&lt;br/&gt;
			&quot;opid&quot; : 4991097,&lt;br/&gt;
			&quot;active&quot; : true,&lt;br/&gt;
			&quot;lockType&quot; : &quot;write&quot;,&lt;br/&gt;
			&quot;waitingForLock&quot; : false,&lt;br/&gt;
			&quot;secs_running&quot; : 0,&lt;br/&gt;
			&quot;op&quot; : &quot;update&quot;,&lt;br/&gt;
			&quot;ns&quot; : &quot;pixserverHits.monthByCountry&quot;,&lt;br/&gt;
			&quot;query&quot; : &lt;/p&gt;
{
				&quot;country&quot; : &quot;ie&quot;,
				&quot;client&quot; : &quot;harren&quot;,
				&quot;month&quot; : ISODate(&quot;2011-05-01T00:00:00Z&quot;)
			}
&lt;p&gt;,&lt;br/&gt;
			&quot;client&quot; : &quot;10.112.18.242:56246&quot;,&lt;br/&gt;
			&quot;desc&quot; : &quot;conn&quot;&lt;br/&gt;
		}&lt;br/&gt;
	]&lt;br/&gt;
}&lt;/p&gt;</comment>
                            <comment id="35227" author="scotthernandez" created="Tue, 31 May 2011 00:53:02 +0000"  >&lt;p&gt;Can you provide a sample program to reproduce this?&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>Tue, 31 May 2011 00:53:02 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 24 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>
                            12 years, 24 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>gcristian</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrijcn:</customfieldvalue>

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

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

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