<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:01:11 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-2787] Upgrading to 1.8.0 and enabling journaling causing cryptic &quot;_a != -1&quot; error</title>
                <link>https://jira.mongodb.org/browse/SERVER-2787</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I&apos;m starting the process of vetting our software with MongoDB 1.8. I had been running MongoDB 1.6.0 on my Mac (which we also currently run in production). Today I installed MongoDB 1.8.0 and pointed it at the data files that had been created with 1.6.0. All of my tests passed and everything seemed fine.&lt;/p&gt;

&lt;p&gt;Then I enabled journaling (--journal). Once I did this, one of my tests started failing with this message:&lt;/p&gt;

&lt;p&gt;Failures:&lt;br/&gt;
  1) SaveWave::Model::MongoDB::Upc should create&lt;br/&gt;
     Failure/Error: @upc = Factory.create(:upc)&lt;br/&gt;
     : _a != -1&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;./spec/integration/mongodb/upc_spec.rb:13:in `block (2 levels) in &amp;lt;top (required)&amp;gt;&apos;&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;  2) SaveWave::Model::MongoDB::Upc should update&lt;br/&gt;
     Failure/Error: @upc = Factory.create(:upc)&lt;br/&gt;
     : _a != -1&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;./spec/integration/mongodb/upc_spec.rb:13:in `block (2 levels) in &amp;lt;top (required)&amp;gt;&apos;&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;  3) SaveWave::Model::MongoDB::Upc should destroy&lt;br/&gt;
     Failure/Error: @upc = Factory.create(:upc)&lt;br/&gt;
     : _a != -1&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;./spec/integration/mongodb/upc_spec.rb:13:in `block (2 levels) in &amp;lt;top (required)&amp;gt;&apos;&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;When I turn off journaling, the test passes. Line 13 of the test where it keeps failing is:&lt;/p&gt;

&lt;p&gt;  before :each do&lt;br/&gt;
    @upc = Factory.create(:upc)  # &amp;lt;-- Line 13&lt;br/&gt;
  end&lt;/p&gt;

&lt;p&gt;And the relevant FactoryGirl definition is:&lt;/p&gt;

&lt;p&gt;Factory.define :upc, :class =&amp;gt; SaveWave::Model::MongoDB::Upc do |upc|&lt;br/&gt;
  upc.name &quot;Coca Cola&quot;&lt;br/&gt;
  upc.active true&lt;br/&gt;
  upc.start_date DateTime.civil(2010, 10, 1, 0, 0, 0)&lt;br/&gt;
  upc.end_date DateTime.civil(2011, 9, 30, 11, 59, 59)&lt;br/&gt;
  upc.identifier &quot;8395837859183&quot;&lt;br/&gt;
  upc.excluded_states &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;MA&amp;quot;, &amp;quot;OR&amp;quot;&amp;#93;&lt;/span&gt;&lt;br/&gt;
end&lt;/p&gt;

&lt;p&gt;Nothing obvious pops out here. Let me know if there&apos;s any more info I can provide to help debug this.&lt;/p&gt;</description>
                <environment>Mac OSX 10.6.6&lt;br/&gt;
Ruby 1.9.2-p0&lt;br/&gt;
Mongoid 2.0.0.beta20&lt;br/&gt;
Mongo Ruby Driver 1.2.4</environment>
        <key id="15159">SERVER-2787</key>
            <summary>Upgrading to 1.8.0 and enabling journaling causing cryptic &quot;_a != -1&quot; error</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="9">Done</resolution>
                                        <assignee username="aaron">Aaron Staple</assignee>
                                    <reporter username="bploetz">Brian Ploetz</reporter>
                        <labels>
                    </labels>
                <created>Thu, 17 Mar 2011 19:25:21 +0000</created>
                <updated>Tue, 12 Jul 2016 00:17:01 +0000</updated>
                            <resolved>Fri, 18 Mar 2011 02:21:02 +0000</resolved>
                                    <version>1.8.0</version>
                                    <fixVersion>1.8.1</fixVersion>
                    <fixVersion>1.9.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="26553" author="hongli" created="Wed, 23 Mar 2011 05:57:12 +0000"  >&lt;p&gt;Disabling journaling did not fix the problem. I had to drop the entire database.&lt;/p&gt;</comment>
                            <comment id="26548" author="hongli" created="Wed, 23 Mar 2011 05:30:12 +0000"  >&lt;p&gt;I just ran into the same problem as well. I was on 1.6, upgraded to 1.8 and enabled journaling, did a repairDatabase yesterday, and today all of a sudden insert operations start to fail. mongodb.log was full of these messages:&lt;/p&gt;

&lt;p&gt;Wed Mar 23 00:26:58 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn3&amp;#93;&lt;/span&gt;  webshop.process_count_10 Assertion failure _a != -1 db/pdfile.h 427&lt;br/&gt;
0x5512de 0x562ce1 0x772f08 0x7796f1 0x77a9ca 0x755c9e 0x75b77c 0x8a617e 0x8b92d0 0x7f826972a8ba 0x7f8268ce602d &lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo12sayDbContextEPKc+0xae) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5512de&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo8assertedEPKcS1_j+0x111) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x562ce1&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x772f08&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo11DataFileMgr6insertEPKcPKvibRKNS_11BSONElementEb+0x10d1) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7796f1&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo11DataFileMgr16insertWithObjModEPKcRNS_7BSONObjEb+0x5a) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x77a9ca&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo14receivedInsertERNS_7MessageERNS_5CurOpE+0x37e) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x755c9e&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_8SockAddrE+0x18ec) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x75b77c&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo10connThreadEPNS_13MessagingPortE+0x21e) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x8a617e&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(thread_proxy+0x80) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x8b92d0&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/libpthread.so.0(+0x68ba) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f826972a8ba&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/libc.so.6(clone+0x6d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f8268ce602d&amp;#93;&lt;/span&gt;&lt;br/&gt;
Wed Mar 23 00:26:58 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn3&amp;#93;&lt;/span&gt;  webshop.process_count_10  caught assertion _indexRecord webshop.process_count_10.$group_1_node_1_timestamp_1&lt;/p&gt;</comment>
                            <comment id="26169" author="bploetz" created="Thu, 17 Mar 2011 22:01:26 +0000"  >&lt;p&gt;The requested diaglog file&lt;/p&gt;</comment>
                            <comment id="26168" author="bploetz" created="Thu, 17 Mar 2011 22:00:34 +0000"  >&lt;p&gt;Most of the relevant bits of the unit test are noted above when I opened the ticket. It fails when it&apos;s trying to create the SaveWave::Model::MongoDB::Upc object in the before block. Also note the way it cleans up the database after the test suite is run by doing the following (drop each collection except the system collection):&lt;/p&gt;

&lt;p&gt;Rspec.configure do |config|&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;For MongoDB, since it&apos;s doesn&apos;t have transactions, we need to wipe the db ourselves&lt;br/&gt;
  config.after :suite do&lt;/li&gt;
	&lt;li&gt;wipe the test db after the integration suite is run&lt;br/&gt;
    Mongoid.master.collections.select do |collection|&lt;br/&gt;
      collection.name !~ /system/&lt;br/&gt;
    end.each(&amp;amp;:drop)&lt;br/&gt;
  end&lt;br/&gt;
end &lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;As I mentioned in one of the follow ups, this error does not happen when I run this test in isolation, it only happens when I run the entire test suite. Given this, the diaglog.4d8282ce file I&apos;m about to attach is 2.6MB, so I hope this is not like finding a needle in a haystack for you guys. I&apos;ve tried to reproduce the issue running various combinations of a smaller subset of the tests with no luck. I&apos;ll keep trying though.....&lt;/p&gt;

&lt;p&gt;The relevant collection where this is happening is named &quot;products&quot;. Let me know if there&apos;s anything else you need.&lt;/p&gt;</comment>
                            <comment id="26162" author="eliot" created="Thu, 17 Mar 2011 21:37:12 +0000"  >&lt;p&gt;Ah, ok.  Then no, a re-index doesn&apos;t make sense.&lt;br/&gt;
Anyway you can send us the unit test?&lt;br/&gt;
If not, can you start the server with --diaglog 3 and send us the diaglog.XXXX file it generated in &amp;lt;dbpath&amp;gt;&lt;/p&gt;</comment>
                            <comment id="26161" author="bploetz" created="Thu, 17 Mar 2011 21:34:37 +0000"  >&lt;p&gt;This is happening in a unit test of our Ruby code where the test database is empty at test start up, the data is created/updated/deleted as part of the test run, and then after the test each collection in the test database is dropped. So there is no pre-existing 1.6 era data in the database.&lt;/p&gt;

&lt;p&gt;Given this, does a collection.reIndex() still make sense, and if so, at which point in the test workflow noted above should it happen?&lt;/p&gt;</comment>
                            <comment id="26154" author="eliot" created="Thu, 17 Mar 2011 21:05:25 +0000"  >&lt;p&gt;Can you do a .reIndex() on all the collections?&lt;br/&gt;
I think its likely because of a bug in 1.6 that could create invalid indexes&lt;/p&gt;</comment>
                            <comment id="26152" author="kbanker" created="Thu, 17 Mar 2011 21:01:51 +0000"  >&lt;p&gt;Brian,&lt;/p&gt;

&lt;p&gt;This looks like a potential core server issue, so I&apos;m moving the issue from the Ruby driver to the core server.&lt;/p&gt;

&lt;p&gt;Kyle&lt;/p&gt;</comment>
                            <comment id="26150" author="bploetz" created="Thu, 17 Mar 2011 20:19:26 +0000"  >&lt;p&gt;I see this in the MongoDB logs:&lt;/p&gt;

&lt;p&gt;Thu Mar 17 16:12:44 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn6&amp;#93;&lt;/span&gt;  savewavemodel_test.products Assertion failure _a != -1 db/pdfile.h 427&lt;br/&gt;
0x10007d3c2 0x1000920be 0x1002e1af8 0x1002e2d1e 0x100187833 0x1002c300c 0x1002c7341 0x100436978 0x100449a54 0x7fff843f6536 0x7fff843f63e9 &lt;br/&gt;
 0   mongod                              0x000000010007d3c2 _ZN5mongo12sayDbContextEPKc + 178&lt;br/&gt;
 1   mongod                              0x00000001000920be _ZN5mongo8assertedEPKcS1_j + 286&lt;br/&gt;
 2   mongod                              0x00000001002e1af8 _ZN5mongo14_unindexRecordERNS_12IndexDetailsERNS_7BSONObjERKNS_7DiskLocEb + 984&lt;br/&gt;
 3   mongod                              0x00000001002e2d1e _ZN5mongo11DataFileMgr12deleteRecordEPKcPNS_6RecordERKNS_7DiskLocEbb + 590&lt;br/&gt;
 4   mongod                              0x0000000100187833 _ZN5mongo13deleteObjectsEPKcNS_7BSONObjEbbbPNS_11RemoveSaverE + 1731&lt;br/&gt;
 5   mongod                              0x00000001002c300c _ZN5mongo14receivedDeleteERNS_7MessageERNS_5CurOpE + 1036&lt;br/&gt;
 6   mongod                              0x00000001002c7341 _ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_8SockAddrE + 5457&lt;br/&gt;
 7   mongod                              0x0000000100436978 _ZN5mongo10connThreadEPNS_13MessagingPortE + 584&lt;br/&gt;
 8   mongod                              0x0000000100449a54 thread_proxy + 132&lt;br/&gt;
 9   libSystem.B.dylib                   0x00007fff843f6536 _pthread_start + 331&lt;br/&gt;
 10  libSystem.B.dylib                   0x00007fff843f63e9 thread_start + 13&lt;br/&gt;
Thu Mar 17 16:12:44 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn6&amp;#93;&lt;/span&gt;  savewavemodel_test.products Assertion failure: _unindex failed savewavemodel_test.products.$_type_1&lt;br/&gt;
Thu Mar 17 16:12:44 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn6&amp;#93;&lt;/span&gt; Assertion failure: _unindex failed: assertion db/pdfile.h:427&lt;br/&gt;
  obj:&lt;/p&gt;
{ _id: ObjectId(&apos;4d826b3bf1bb3e111c00017b&apos;), active: false, _type: &quot;SaveWave::Model::MongoDB::Product&quot;, name: &quot;Foo&quot;, start_date: new Date(1285905600000), end_date: new Date(1317398399000), identifier: &quot;ABCDEF123456&quot;, created_at: new Date(1300392763000), updated_at: new Date(1300392763000) }
&lt;p&gt;  key:{ : &quot;SaveWave::Model::MongoDB::Product&quot; }&lt;br/&gt;
  dl:0:62ef80&lt;br/&gt;
0x10007d3c2 0x1002e2109 0x1002e2d1e 0x100187833 0x1002c300c 0x1002c7341 0x100436978 0x100449a54 0x7fff843f6536 0x7fff843f63e9 &lt;br/&gt;
 0   mongod                              0x000000010007d3c2 _ZN5mongo12sayDbContextEPKc + 178&lt;br/&gt;
 1   mongod                              0x00000001002e2109 _ZN5mongo14_unindexRecordERNS_12IndexDetailsERNS_7BSONObjERKNS_7DiskLocEb + 2537&lt;br/&gt;
 2   mongod                              0x00000001002e2d1e _ZN5mongo11DataFileMgr12deleteRecordEPKcPNS_6RecordERKNS_7DiskLocEbb + 590&lt;br/&gt;
 3   mongod                              0x0000000100187833 _ZN5mongo13deleteObjectsEPKcNS_7BSONObjEbbbPNS_11RemoveSaverE + 1731&lt;br/&gt;
 4   mongod                              0x00000001002c300c _ZN5mongo14receivedDeleteERNS_7MessageERNS_5CurOpE + 1036&lt;br/&gt;
 5   mongod                              0x00000001002c7341 _ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_8SockAddrE + 5457&lt;br/&gt;
 6   mongod                              0x0000000100436978 _ZN5mongo10connThreadEPNS_13MessagingPortE + 584&lt;br/&gt;
 7   mongod                              0x0000000100449a54 thread_proxy + 132&lt;br/&gt;
 8   libSystem.B.dylib                   0x00007fff843f6536 _pthread_start + 331&lt;br/&gt;
 9   libSystem.B.dylib                   0x00007fff843f63e9 thread_start + 13&lt;br/&gt;
Thu Mar 17 16:12:44 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn6&amp;#93;&lt;/span&gt; unindex failed (key too big?) savewavemodel_test.products.$_type_1&lt;br/&gt;
 savewavemodel_test.products Assertion failure _a != -1 db/pdfile.h 427&lt;br/&gt;
0x10007d3c2 0x1000920be 0x1002e1387 0x1002e238b 0x1002e755e 0x1002e932d 0x1002c51e7 0x1002c73f9 0x100436978 0x100449a54 0x7fff843f6536 0x7fff843f63e9 &lt;br/&gt;
 0   mongod                              0x000000010007d3c2 _ZN5mongo12sayDbContextEPKc + 178&lt;br/&gt;
 1   mongod                              0x00000001000920be _ZN5mongo8assertedEPKcS1_j + 286&lt;br/&gt;
 2   mongod                              0x00000001002e1387 _ZN5mongo12_indexRecordEPNS_16NamespaceDetailsEiRNS_7BSONObjENS_7DiskLocEb + 1127&lt;br/&gt;
 3   mongod                              0x00000001002e238b _ZN5mongo11indexRecordEPNS_16NamespaceDetailsENS_7BSONObjENS_7DiskLocE + 139&lt;br/&gt;
 4   mongod                              0x00000001002e755e _ZN5mongo11DataFileMgr6insertEPKcPKvibRKNS_11BSONElementEb + 4062&lt;br/&gt;
 5   mongod                              0x00000001002e932d _ZN5mongo11DataFileMgr16insertWithObjModEPKcRNS_7BSONObjEb + 77&lt;br/&gt;
 6   mongod                              0x00000001002c51e7 _ZN5mongo14receivedInsertERNS_7MessageERNS_5CurOpE + 663&lt;br/&gt;
 7   mongod                              0x00000001002c73f9 _ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_8SockAddrE + 5641&lt;br/&gt;
 8   mongod                              0x0000000100436978 _ZN5mongo10connThreadEPNS_13MessagingPortE + 584&lt;br/&gt;
 9   mongod                              0x0000000100449a54 thread_proxy + 132&lt;br/&gt;
 10  libSystem.B.dylib                   0x00007fff843f6536 _pthread_start + 331&lt;br/&gt;
 11  libSystem.B.dylib                   0x00007fff843f63e9 thread_start + 13&lt;br/&gt;
Thu Mar 17 16:12:44 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn6&amp;#93;&lt;/span&gt;  savewavemodel_test.products  caught assertion _indexRecord savewavemodel_test.products.$_type_1&lt;br/&gt;
Thu Mar 17 16:12:44 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn6&amp;#93;&lt;/span&gt;  savewavemodel_test.products Assertion failure _a != -1 db/pdfile.h 427&lt;br/&gt;
0x10007d3c2 0x1000920be 0x1002e1387 0x1002e238b 0x1002e755e 0x1002e932d 0x1002c51e7 0x1002c73f9 0x100436978 0x100449a54 0x7fff843f6536 0x7fff843f63e9 &lt;br/&gt;
 0   mongod                              0x000000010007d3c2 _ZN5mongo12sayDbContextEPKc + 178&lt;br/&gt;
 1   mongod                              0x00000001000920be _ZN5mongo8assertedEPKcS1_j + 286&lt;br/&gt;
 2   mongod                              0x00000001002e1387 _ZN5mongo12_indexRecordEPNS_16NamespaceDetailsEiRNS_7BSONObjENS_7DiskLocEb + 1127&lt;br/&gt;
 3   mongod                              0x00000001002e238b _ZN5mongo11indexRecordEPNS_16NamespaceDetailsENS_7BSONObjENS_7DiskLocE + 139&lt;br/&gt;
 4   mongod                              0x00000001002e755e _ZN5mongo11DataFileMgr6insertEPKcPKvibRKNS_11BSONElementEb + 4062&lt;br/&gt;
 5   mongod                              0x00000001002e932d _ZN5mongo11DataFileMgr16insertWithObjModEPKcRNS_7BSONObjEb + 77&lt;br/&gt;
 6   mongod                              0x00000001002c51e7 _ZN5mongo14receivedInsertERNS_7MessageERNS_5CurOpE + 663&lt;br/&gt;
 7   mongod                              0x00000001002c73f9 _ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_8SockAddrE + 5641&lt;br/&gt;
 8   mongod                              0x0000000100436978 _ZN5mongo10connThreadEPNS_13MessagingPortE + 584&lt;br/&gt;
 9   mongod                              0x0000000100449a54 thread_proxy + 132&lt;br/&gt;
 10  libSystem.B.dylib                   0x00007fff843f6536 _pthread_start + 331&lt;br/&gt;
 11  libSystem.B.dylib                   0x00007fff843f63e9 thread_start + 13&lt;br/&gt;
Thu Mar 17 16:12:44 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn6&amp;#93;&lt;/span&gt;  savewavemodel_test.products  caught assertion _indexRecord savewavemodel_test.products.$_type_1&lt;br/&gt;
Thu Mar 17 16:12:44 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn6&amp;#93;&lt;/span&gt;  savewavemodel_test.products Assertion failure _a != -1 db/pdfile.h 427&lt;br/&gt;
0x10007d3c2 0x1000920be 0x1002e1387 0x1002e238b 0x1002e755e 0x1002e932d 0x1002c51e7 0x1002c73f9 0x100436978 0x100449a54 0x7fff843f6536 0x7fff843f63e9 &lt;br/&gt;
 0   mongod                              0x000000010007d3c2 _ZN5mongo12sayDbContextEPKc + 178&lt;br/&gt;
 1   mongod                              0x00000001000920be _ZN5mongo8assertedEPKcS1_j + 286&lt;br/&gt;
 2   mongod                              0x00000001002e1387 _ZN5mongo12_indexRecordEPNS_16NamespaceDetailsEiRNS_7BSONObjENS_7DiskLocEb + 1127&lt;br/&gt;
 3   mongod                              0x00000001002e238b _ZN5mongo11indexRecordEPNS_16NamespaceDetailsENS_7BSONObjENS_7DiskLocE + 139&lt;br/&gt;
 4   mongod                              0x00000001002e755e _ZN5mongo11DataFileMgr6insertEPKcPKvibRKNS_11BSONElementEb + 4062&lt;br/&gt;
 5   mongod                              0x00000001002e932d _ZN5mongo11DataFileMgr16insertWithObjModEPKcRNS_7BSONObjEb + 77&lt;br/&gt;
 6   mongod                              0x00000001002c51e7 _ZN5mongo14receivedInsertERNS_7MessageERNS_5CurOpE + 663&lt;br/&gt;
 7   mongod                              0x00000001002c73f9 _ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_8SockAddrE + 5641&lt;br/&gt;
 8   mongod                              0x0000000100436978 _ZN5mongo10connThreadEPNS_13MessagingPortE + 584&lt;br/&gt;
 9   mongod                              0x0000000100449a54 thread_proxy + 132&lt;br/&gt;
 10  libSystem.B.dylib                   0x00007fff843f6536 _pthread_start + 331&lt;br/&gt;
 11  libSystem.B.dylib                   0x00007fff843f63e9 thread_start + 13&lt;br/&gt;
Thu Mar 17 16:12:44 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn6&amp;#93;&lt;/span&gt;  savewavemodel_test.products  caught assertion _indexRecord savewavemodel_test.products.$_type_1&lt;/p&gt;


&lt;p&gt;What&apos;s interesting is that when I run this test in isolation, I don&apos;t see the error. It&apos;s only when I run the entire test suite that I see the error.&lt;/p&gt;

&lt;p&gt;I should note that my mongoid.yml looks like this.....&lt;/p&gt;

&lt;p&gt;defaults: &amp;amp;defaults&lt;br/&gt;
  host: localhost&lt;br/&gt;
  autocreate_indexes: true&lt;br/&gt;
  allow_dynamic_fields: false&lt;br/&gt;
  include_root_in_json: false&lt;br/&gt;
  parameterize_keys: true&lt;br/&gt;
  persist_in_safe_mode: true&lt;br/&gt;
  raise_not_found_error: true&lt;br/&gt;
  reconnect_time: 3&lt;/p&gt;

&lt;p&gt;test:&lt;br/&gt;
  &amp;lt;&amp;lt;: *defaults&lt;br/&gt;
  database: savewavemodel_test&lt;/p&gt;


&lt;p&gt;.....and my spec_helper.rb has this hook in it to wipe the db after each run:&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;Load the mongoid config for the test database&lt;br/&gt;
mongoid_file_name = File.expand_path(&apos;../mongoid.yml&apos;, _&lt;em&gt;FILE&lt;/em&gt;_)&lt;br/&gt;
@mongoid_settings = YAML.load(ERB.new(File.new(mongoid_file_name).read).result)&lt;br/&gt;
@test_db = @mongoid_settings&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;test&amp;quot;&amp;#93;&lt;/span&gt;&lt;br/&gt;
Mongoid.configure do |config|&lt;br/&gt;
  config.from_hash(@test_db)&lt;br/&gt;
end&lt;/li&gt;
&lt;/ol&gt;


&lt;ol&gt;
	&lt;li&gt;Configure carrierwave&lt;br/&gt;
CarrierWave.configure do |config|&lt;br/&gt;
  config.grid_fs_database = @test_db&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;database&amp;quot;&amp;#93;&lt;/span&gt;&lt;br/&gt;
  config.grid_fs_host = @test_db&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;test&amp;quot;&amp;#93;&lt;/span&gt;&lt;br/&gt;
  config.storage = :grid_fs&lt;br/&gt;
end&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Rspec.configure do |config|&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;For MongoDB, since it&apos;s doesn&apos;t have transactions, we need to wipe the db ourselves&lt;br/&gt;
  config.after :suite do&lt;/li&gt;
	&lt;li&gt;wipe the test db after the integration suite is run&lt;br/&gt;
    Mongoid.master.collections.select do |collection|&lt;br/&gt;
      collection.name !~ /system/&lt;br/&gt;
    end.each(&amp;amp;:drop)&lt;br/&gt;
  end&lt;br/&gt;
end&lt;/li&gt;
&lt;/ol&gt;
</comment>
                            <comment id="26148" author="kbanker" created="Thu, 17 Mar 2011 19:59:38 +0000"  >&lt;p&gt;Anything fishy in the MongoDB logs? Can you extract the actual updates / deletes that these tests represent?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="15164">SERVER-2791</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="11111" name="diaglog.4d8282ce" size="2690275" author="bploetz" created="Thu, 17 Mar 2011 22:01:26 +0000"/>
                    </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>Thu, 17 Mar 2011 19:59:38 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 48 weeks ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<s><a href='https://jira.mongodb.org/browse/SERVER-2791'>SERVER-2791</a></s>]]></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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 48 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10021"><![CDATA[OS X]]></customfieldvalue>

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

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

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

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