<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:54:23 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-525] unique index in capped collection</title>
                <link>https://jira.mongodb.org/browse/SERVER-525</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Ability to have a unique index in a capped collection.  Currently results in errors:&lt;/p&gt;

&lt;p&gt;Fri Jan  8 23:53:09 userassert:E11000 duplicate key errorindex:&lt;br/&gt;
twitter.tweet_cache.$&lt;em&gt;id&lt;/em&gt;  dup key: { : 7537480484 } : on&lt;br/&gt;
addIndex/capped - collection and its index will not match&lt;br/&gt;
unindex failed (key too big?) twitter.tweet_cache.$&lt;em&gt;id&lt;/em&gt;&lt;/p&gt;
</description>
                <environment></environment>
        <key id="11097">SERVER-525</key>
            <summary>unique index in capped collection</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="dustinn">dustin norlander</reporter>
                        <labels>
                    </labels>
                <created>Fri, 8 Jan 2010 23:11:30 +0000</created>
                <updated>Tue, 12 Jul 2016 00:28:03 +0000</updated>
                            <resolved>Wed, 20 Jan 2010 22:59:25 +0000</resolved>
                                                    <fixVersion>1.3.2</fixVersion>
                                    <component>Stability</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="11882" author="aaron" created="Wed, 20 Jan 2010 22:59:25 +0000"  >&lt;p&gt;I went ahead and implemented the index checking without the dummy strategy I described above, we can optimize later if necessary.  I also committed and then reverted my earlier implementation that allows removing the last record inserted into a capped collection, so there&apos;s a record of that work in case we want to do something similar in future.&lt;/p&gt;</comment>
                            <comment id="11879" author="auto" created="Wed, 20 Jan 2010 21:10:01 +0000"  >&lt;p&gt;Author:{&apos;login&apos;: {&apos;remember_token&apos;: None, &apos;auth_token&apos;: &apos;2b15f37eaf67ac3f9c029f79f2339eca&apos;, &apos;last_ip&apos;: &apos;99.59.73.209&apos;, &apos;billed_on&apos;: None, &apos;disabled&apos;: False, &apos;remember_token_expires_at&apos;: None, &apos;billingid&apos;: None, &apos;billing_attempts&apos;: 0, &apos;upgrade_ignore&apos;: None, &apos;primary&apos;: &lt;/p&gt;
{&apos;email&apos;: &apos;aaron@10gen.com&apos;, &apos;user_id&apos;: 33134, &apos;primary&apos;: None, &apos;id&apos;: 103147}
&lt;p&gt;, &apos;id&apos;: 33134, &apos;upgrade_accept&apos;: None, &apos;spammy&apos;: False, &apos;bouncing_email&apos;: None, &apos;billing_extra&apos;: None, &apos;updated_at&apos;: &apos;2009/12/15 09:22:47 -0800&apos;, &apos;plan&apos;: &apos;free&apos;, &apos;plan_duration&apos;: &apos;month&apos;, &apos;crypted_password&apos;: &apos;f13fa87b01329b155592c62e6309500b90d38c21&apos;, &apos;wants_email&apos;: True, &apos;gift&apos;: None, &apos;created_at&apos;: &apos;2008/11/07 00:52:12 -0800&apos;, &apos;login&apos;: &apos;astaple&apos;, &apos;salt&apos;: &apos;9127f885b8aa5dfee0cb5d6dd4066dd597dbf5dd&apos;, &apos;gh_role&apos;: None}, &apos;name&apos;: &apos;Aaron&apos;, &apos;email&apos;: &apos;aaron@10gen.com&apos;}&lt;br/&gt;
Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-525&quot; title=&quot;unique index in capped collection&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-525&quot;&gt;&lt;del&gt;SERVER-525&lt;/del&gt;&lt;/a&gt; check for index conflict before inserting into capped collection&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/f623739aca557c54dec885c482aacfd5c97f74a3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/f623739aca557c54dec885c482aacfd5c97f74a3&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="11878" author="auto" created="Wed, 20 Jan 2010 21:10:00 +0000"  >&lt;p&gt;Author:{&apos;login&apos;: {&apos;remember_token&apos;: None, &apos;auth_token&apos;: &apos;2b15f37eaf67ac3f9c029f79f2339eca&apos;, &apos;last_ip&apos;: &apos;99.59.73.209&apos;, &apos;billed_on&apos;: None, &apos;disabled&apos;: False, &apos;remember_token_expires_at&apos;: None, &apos;billingid&apos;: None, &apos;billing_attempts&apos;: 0, &apos;upgrade_ignore&apos;: None, &apos;primary&apos;: &lt;/p&gt;
{&apos;email&apos;: &apos;aaron@10gen.com&apos;, &apos;user_id&apos;: 33134, &apos;primary&apos;: None, &apos;id&apos;: 103147}
&lt;p&gt;, &apos;id&apos;: 33134, &apos;upgrade_accept&apos;: None, &apos;spammy&apos;: False, &apos;bouncing_email&apos;: None, &apos;billing_extra&apos;: None, &apos;updated_at&apos;: &apos;2009/12/15 09:22:47 -0800&apos;, &apos;plan&apos;: &apos;free&apos;, &apos;plan_duration&apos;: &apos;month&apos;, &apos;crypted_password&apos;: &apos;f13fa87b01329b155592c62e6309500b90d38c21&apos;, &apos;wants_email&apos;: True, &apos;gift&apos;: None, &apos;created_at&apos;: &apos;2008/11/07 00:52:12 -0800&apos;, &apos;login&apos;: &apos;astaple&apos;, &apos;salt&apos;: &apos;9127f885b8aa5dfee0cb5d6dd4066dd597dbf5dd&apos;, &apos;gh_role&apos;: None}, &apos;name&apos;: &apos;Aaron&apos;, &apos;email&apos;: &apos;aaron@10gen.com&apos;}&lt;br/&gt;
Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-525&quot; title=&quot;unique index in capped collection&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-525&quot;&gt;&lt;del&gt;SERVER-525&lt;/del&gt;&lt;/a&gt; revert undoInsert implementation&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/fdde436041be95bf91819f2712e4c41eae36759a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/fdde436041be95bf91819f2712e4c41eae36759a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="11877" author="auto" created="Wed, 20 Jan 2010 21:09:59 +0000"  >&lt;p&gt;Author:{&apos;login&apos;: {&apos;remember_token&apos;: None, &apos;auth_token&apos;: &apos;2b15f37eaf67ac3f9c029f79f2339eca&apos;, &apos;last_ip&apos;: &apos;99.59.73.209&apos;, &apos;billed_on&apos;: None, &apos;disabled&apos;: False, &apos;remember_token_expires_at&apos;: None, &apos;billingid&apos;: None, &apos;billing_attempts&apos;: 0, &apos;upgrade_ignore&apos;: None, &apos;primary&apos;: &lt;/p&gt;
{&apos;email&apos;: &apos;aaron@10gen.com&apos;, &apos;user_id&apos;: 33134, &apos;primary&apos;: None, &apos;id&apos;: 103147}
&lt;p&gt;, &apos;id&apos;: 33134, &apos;upgrade_accept&apos;: None, &apos;spammy&apos;: False, &apos;bouncing_email&apos;: None, &apos;billing_extra&apos;: None, &apos;updated_at&apos;: &apos;2009/12/15 09:22:47 -0800&apos;, &apos;plan&apos;: &apos;free&apos;, &apos;plan_duration&apos;: &apos;month&apos;, &apos;crypted_password&apos;: &apos;f13fa87b01329b155592c62e6309500b90d38c21&apos;, &apos;wants_email&apos;: True, &apos;gift&apos;: None, &apos;created_at&apos;: &apos;2008/11/07 00:52:12 -0800&apos;, &apos;login&apos;: &apos;astaple&apos;, &apos;salt&apos;: &apos;9127f885b8aa5dfee0cb5d6dd4066dd597dbf5dd&apos;, &apos;gh_role&apos;: None}, &apos;name&apos;: &apos;Aaron&apos;, &apos;email&apos;: &apos;aaron@10gen.com&apos;}&lt;br/&gt;
Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-525&quot; title=&quot;unique index in capped collection&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-525&quot;&gt;&lt;del&gt;SERVER-525&lt;/del&gt;&lt;/a&gt; add more extensive test for undoInsert&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/0036246413fd1cd6fd96a60c7512f303572d432f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/0036246413fd1cd6fd96a60c7512f303572d432f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="11876" author="auto" created="Wed, 20 Jan 2010 21:09:58 +0000"  >&lt;p&gt;Author:{&apos;login&apos;: {&apos;remember_token&apos;: None, &apos;auth_token&apos;: &apos;2b15f37eaf67ac3f9c029f79f2339eca&apos;, &apos;last_ip&apos;: &apos;99.59.73.209&apos;, &apos;billed_on&apos;: None, &apos;disabled&apos;: False, &apos;remember_token_expires_at&apos;: None, &apos;billingid&apos;: None, &apos;billing_attempts&apos;: 0, &apos;upgrade_ignore&apos;: None, &apos;primary&apos;: &lt;/p&gt;
{&apos;email&apos;: &apos;aaron@10gen.com&apos;, &apos;user_id&apos;: 33134, &apos;primary&apos;: None, &apos;id&apos;: 103147}
&lt;p&gt;, &apos;id&apos;: 33134, &apos;upgrade_accept&apos;: None, &apos;spammy&apos;: False, &apos;bouncing_email&apos;: None, &apos;billing_extra&apos;: None, &apos;updated_at&apos;: &apos;2009/12/15 09:22:47 -0800&apos;, &apos;plan&apos;: &apos;free&apos;, &apos;plan_duration&apos;: &apos;month&apos;, &apos;crypted_password&apos;: &apos;f13fa87b01329b155592c62e6309500b90d38c21&apos;, &apos;wants_email&apos;: True, &apos;gift&apos;: None, &apos;created_at&apos;: &apos;2008/11/07 00:52:12 -0800&apos;, &apos;login&apos;: &apos;astaple&apos;, &apos;salt&apos;: &apos;9127f885b8aa5dfee0cb5d6dd4066dd597dbf5dd&apos;, &apos;gh_role&apos;: None}, &apos;name&apos;: &apos;Aaron&apos;, &apos;email&apos;: &apos;aaron@10gen.com&apos;}&lt;br/&gt;
Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-525&quot; title=&quot;unique index in capped collection&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-525&quot;&gt;&lt;del&gt;SERVER-525&lt;/del&gt;&lt;/a&gt; only need _deleteRecord when rolling back&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/2597876acbb883cd3b80d17cbc5cf00396429b81&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/2597876acbb883cd3b80d17cbc5cf00396429b81&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="11875" author="auto" created="Wed, 20 Jan 2010 21:09:57 +0000"  >&lt;p&gt;Author:{&apos;login&apos;: {&apos;remember_token&apos;: None, &apos;auth_token&apos;: &apos;2b15f37eaf67ac3f9c029f79f2339eca&apos;, &apos;last_ip&apos;: &apos;99.59.73.209&apos;, &apos;billed_on&apos;: None, &apos;disabled&apos;: False, &apos;remember_token_expires_at&apos;: None, &apos;billingid&apos;: None, &apos;billing_attempts&apos;: 0, &apos;upgrade_ignore&apos;: None, &apos;primary&apos;: &lt;/p&gt;
{&apos;email&apos;: &apos;aaron@10gen.com&apos;, &apos;user_id&apos;: 33134, &apos;primary&apos;: None, &apos;id&apos;: 103147}
&lt;p&gt;, &apos;id&apos;: 33134, &apos;upgrade_accept&apos;: None, &apos;spammy&apos;: False, &apos;bouncing_email&apos;: None, &apos;billing_extra&apos;: None, &apos;updated_at&apos;: &apos;2009/12/15 09:22:47 -0800&apos;, &apos;plan&apos;: &apos;free&apos;, &apos;plan_duration&apos;: &apos;month&apos;, &apos;crypted_password&apos;: &apos;f13fa87b01329b155592c62e6309500b90d38c21&apos;, &apos;wants_email&apos;: True, &apos;gift&apos;: None, &apos;created_at&apos;: &apos;2008/11/07 00:52:12 -0800&apos;, &apos;login&apos;: &apos;astaple&apos;, &apos;salt&apos;: &apos;9127f885b8aa5dfee0cb5d6dd4066dd597dbf5dd&apos;, &apos;gh_role&apos;: None}, &apos;name&apos;: &apos;Aaron&apos;, &apos;email&apos;: &apos;aaron@10gen.com&apos;}&lt;br/&gt;
Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-525&quot; title=&quot;unique index in capped collection&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-525&quot;&gt;&lt;del&gt;SERVER-525&lt;/del&gt;&lt;/a&gt; update error codes&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/9f3561944572086d0bb883e3665d482eff72d454&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/9f3561944572086d0bb883e3665d482eff72d454&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="11874" author="auto" created="Wed, 20 Jan 2010 21:09:56 +0000"  >&lt;p&gt;Author:{&apos;login&apos;: {&apos;remember_token&apos;: None, &apos;auth_token&apos;: &apos;2b15f37eaf67ac3f9c029f79f2339eca&apos;, &apos;last_ip&apos;: &apos;99.59.73.209&apos;, &apos;billed_on&apos;: None, &apos;disabled&apos;: False, &apos;remember_token_expires_at&apos;: None, &apos;billingid&apos;: None, &apos;billing_attempts&apos;: 0, &apos;upgrade_ignore&apos;: None, &apos;primary&apos;: &lt;/p&gt;
{&apos;email&apos;: &apos;aaron@10gen.com&apos;, &apos;user_id&apos;: 33134, &apos;primary&apos;: None, &apos;id&apos;: 103147}
&lt;p&gt;, &apos;id&apos;: 33134, &apos;upgrade_accept&apos;: None, &apos;spammy&apos;: False, &apos;bouncing_email&apos;: None, &apos;billing_extra&apos;: None, &apos;updated_at&apos;: &apos;2009/12/15 09:22:47 -0800&apos;, &apos;plan&apos;: &apos;free&apos;, &apos;plan_duration&apos;: &apos;month&apos;, &apos;crypted_password&apos;: &apos;f13fa87b01329b155592c62e6309500b90d38c21&apos;, &apos;wants_email&apos;: True, &apos;gift&apos;: None, &apos;created_at&apos;: &apos;2008/11/07 00:52:12 -0800&apos;, &apos;login&apos;: &apos;astaple&apos;, &apos;salt&apos;: &apos;9127f885b8aa5dfee0cb5d6dd4066dd597dbf5dd&apos;, &apos;gh_role&apos;: None}, &apos;name&apos;: &apos;Aaron&apos;, &apos;email&apos;: &apos;aaron@10gen.com&apos;}&lt;br/&gt;
Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-525&quot; title=&quot;unique index in capped collection&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-525&quot;&gt;&lt;del&gt;SERVER-525&lt;/del&gt;&lt;/a&gt; implement undoInsert for capped collection&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/e5e39b21da286ddad5fc6c0bbbaa03d32a70aa96&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/e5e39b21da286ddad5fc6c0bbbaa03d32a70aa96&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="11873" author="auto" created="Wed, 20 Jan 2010 21:09:55 +0000"  >&lt;p&gt;Author:{&apos;login&apos;: {&apos;remember_token&apos;: None, &apos;auth_token&apos;: &apos;2b15f37eaf67ac3f9c029f79f2339eca&apos;, &apos;last_ip&apos;: &apos;99.59.73.209&apos;, &apos;billed_on&apos;: None, &apos;disabled&apos;: False, &apos;remember_token_expires_at&apos;: None, &apos;billingid&apos;: None, &apos;billing_attempts&apos;: 0, &apos;upgrade_ignore&apos;: None, &apos;primary&apos;: &lt;/p&gt;
{&apos;email&apos;: &apos;aaron@10gen.com&apos;, &apos;user_id&apos;: 33134, &apos;primary&apos;: None, &apos;id&apos;: 103147}
&lt;p&gt;, &apos;id&apos;: 33134, &apos;upgrade_accept&apos;: None, &apos;spammy&apos;: False, &apos;bouncing_email&apos;: None, &apos;billing_extra&apos;: None, &apos;updated_at&apos;: &apos;2009/12/15 09:22:47 -0800&apos;, &apos;plan&apos;: &apos;free&apos;, &apos;plan_duration&apos;: &apos;month&apos;, &apos;crypted_password&apos;: &apos;f13fa87b01329b155592c62e6309500b90d38c21&apos;, &apos;wants_email&apos;: True, &apos;gift&apos;: None, &apos;created_at&apos;: &apos;2008/11/07 00:52:12 -0800&apos;, &apos;login&apos;: &apos;astaple&apos;, &apos;salt&apos;: &apos;9127f885b8aa5dfee0cb5d6dd4066dd597dbf5dd&apos;, &apos;gh_role&apos;: None}, &apos;name&apos;: &apos;Aaron&apos;, &apos;email&apos;: &apos;aaron@10gen.com&apos;}&lt;br/&gt;
Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-525&quot; title=&quot;unique index in capped collection&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-525&quot;&gt;&lt;del&gt;SERVER-525&lt;/del&gt;&lt;/a&gt; enable case in capped5.js&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/9d42a8e04bdc4aa99148122c0e51c3745f87f906&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/9d42a8e04bdc4aa99148122c0e51c3745f87f906&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="11872" author="auto" created="Wed, 20 Jan 2010 21:09:54 +0000"  >&lt;p&gt;Author:{&apos;login&apos;: {&apos;remember_token&apos;: None, &apos;auth_token&apos;: &apos;2b15f37eaf67ac3f9c029f79f2339eca&apos;, &apos;last_ip&apos;: &apos;99.59.73.209&apos;, &apos;billed_on&apos;: None, &apos;disabled&apos;: False, &apos;remember_token_expires_at&apos;: None, &apos;billingid&apos;: None, &apos;billing_attempts&apos;: 0, &apos;upgrade_ignore&apos;: None, &apos;primary&apos;: &lt;/p&gt;
{&apos;email&apos;: &apos;aaron@10gen.com&apos;, &apos;user_id&apos;: 33134, &apos;primary&apos;: None, &apos;id&apos;: 103147}
&lt;p&gt;, &apos;id&apos;: 33134, &apos;upgrade_accept&apos;: None, &apos;spammy&apos;: False, &apos;bouncing_email&apos;: None, &apos;billing_extra&apos;: None, &apos;updated_at&apos;: &apos;2009/12/15 09:22:47 -0800&apos;, &apos;plan&apos;: &apos;free&apos;, &apos;plan_duration&apos;: &apos;month&apos;, &apos;crypted_password&apos;: &apos;f13fa87b01329b155592c62e6309500b90d38c21&apos;, &apos;wants_email&apos;: True, &apos;gift&apos;: None, &apos;created_at&apos;: &apos;2008/11/07 00:52:12 -0800&apos;, &apos;login&apos;: &apos;astaple&apos;, &apos;salt&apos;: &apos;9127f885b8aa5dfee0cb5d6dd4066dd597dbf5dd&apos;, &apos;gh_role&apos;: None}, &apos;name&apos;: &apos;Aaron&apos;, &apos;email&apos;: &apos;aaron@10gen.com&apos;}&lt;br/&gt;
Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-525&quot; title=&quot;unique index in capped collection&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-525&quot;&gt;&lt;del&gt;SERVER-525&lt;/del&gt;&lt;/a&gt; more capped collection / unique index tests&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/84ec76b935af3a8a848a351ee24dc28688994d97&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/84ec76b935af3a8a848a351ee24dc28688994d97&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="11860" author="eliot" created="Wed, 20 Jan 2010 15:58:05 +0000"  >&lt;p&gt;Yes - replacing the old value with the new value is correct.&lt;br/&gt;
The case I&apos;m a little worried about is if you add something which removes something else, but then you have to roll back, so you removed something you didn&apos;t have to.   &lt;br/&gt;
So maybe we should just do 2 btree scans (or do the dummy trick)&lt;/p&gt;</comment>
                            <comment id="11859" author="aaron" created="Wed, 20 Jan 2010 15:49:29 +0000"  >&lt;p&gt;I&apos;ve spent some time working on an implementation that will allow us to roll back the most recently inserted record in a capped collection if we discover an index conflict.  One question I have is this:&lt;/p&gt;

&lt;p&gt;Say I want to insert &lt;/p&gt;
{i:1,a:2}
&lt;p&gt; and there already is an &lt;/p&gt;
{i:1,a:3}
&lt;p&gt; in the capped collection and the index on i is unique.  If the capped collection is full when I attempt to insert &lt;/p&gt;
{i:1,a:2}
&lt;p&gt;, then &lt;/p&gt;
{i:1,a:3}
&lt;p&gt; may be deleted to make room, in which case inserting &lt;/p&gt;
{i:1,a:3}
&lt;p&gt; will be allowed.  Is that ok?&lt;/p&gt;

&lt;p&gt;If we don&apos;t want the db to behave this way, we could check for an index conflict before insert, but that would require two btree searches (one to check conflict, another later to insert in the index once we&apos;ve inserted a record in the capped collection).  If we wanted we could insert a dummy value in the btree and keep a reference to the btree node during the validation step, then update this dummy with the correct value once we&apos;ve inserted into the capped collection.&lt;/p&gt;</comment>
                            <comment id="11755" author="eliot" created="Wed, 13 Jan 2010 14:23:09 +0000"  >&lt;p&gt;Right now unique indexes with capped collections result in data being in the collection but not in indexes, etc...&lt;/p&gt;

&lt;p&gt;We can either make the rollback remove the item, or if that&apos;s a lot of work for now, just not allow unique indexes on capped collections so there isn&apos;t inconsistency.   If we do that, then make a new feature case for allowing them and link to this case.&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>12.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 13 Jan 2010 14:23:09 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            14 years, 5 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

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

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

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

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