<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:36:05 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-14820] Compact claims not to enforce unique indexes but actually does</title>
                <link>https://jira.mongodb.org/browse/SERVER-14820</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;The claim that we don&apos;t want to enforce uniqueness in compact is made here:&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/blob/v2.6/src/mongo/db/structure/collection_compact.cpp#L157&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/v2.6/src/mongo/db/structure/collection_compact.cpp#L157&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It doesn&apos;t actually work because we go directly to the index descriptor to check if dups are allowed here:&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/blob/v2.6/src/mongo/db/index/btree_based_access_method.cpp#L413&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/v2.6/src/mongo/db/index/btree_based_access_method.cpp#L413&lt;/a&gt;&lt;/p&gt;
</description>
                <environment></environment>
        <key id="151299">SERVER-14820</key>
            <summary>Compact claims not to enforce unique indexes but actually does</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="mathias@mongodb.com">Mathias Stearn</assignee>
                                    <reporter username="mathias@mongodb.com">Mathias Stearn</reporter>
                        <labels>
                    </labels>
                <created>Thu, 7 Aug 2014 16:16:32 +0000</created>
                <updated>Thu, 20 Nov 2014 20:33:29 +0000</updated>
                            <resolved>Wed, 13 Aug 2014 21:46:43 +0000</resolved>
                                    <version>2.6.0</version>
                                    <fixVersion>2.7.5</fixVersion>
                                    <component>Index Maintenance</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="689916" author="xgen-internal-githook" created="Wed, 13 Aug 2014 21:34:28 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;RedBeard0531&apos;, u&apos;name&apos;: u&apos;Mathias Stearn&apos;, u&apos;email&apos;: u&apos;mathias@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-13951&quot; title=&quot;uncommited UnitOfWork needs to rollback&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-13951&quot;&gt;&lt;del&gt;SERVER-13951&lt;/del&gt;&lt;/a&gt; Split index building in to UnitOfWork-sized stages&lt;/p&gt;

&lt;p&gt;All index builds now go through the MultiIndexBuilder as its API was already&lt;br/&gt;
close to ideal. The following tickets have also been addressed by this commit:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-14710&quot; title=&quot;Remove dropDups support from index building&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-14710&quot;&gt;&lt;del&gt;SERVER-14710&lt;/del&gt;&lt;/a&gt; Remove dropDups&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-12309&quot; title=&quot;Initial sync should build indexes while copying data&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-12309&quot;&gt;&lt;del&gt;SERVER-12309&lt;/del&gt;&lt;/a&gt; Cloner build indexes in parallel&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-14737&quot; title=&quot;Initial sync uses background index building&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-14737&quot;&gt;&lt;del&gt;SERVER-14737&lt;/del&gt;&lt;/a&gt; Initial sync uses bg index building&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-9135&quot; title=&quot;fast index build for initial sync&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-9135&quot;&gt;&lt;del&gt;SERVER-9135&lt;/del&gt;&lt;/a&gt; fast index build for initial sync&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2747&quot; title=&quot;can&amp;#39;t kill index build during phase (2/3) btree bottom up&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2747&quot;&gt;&lt;del&gt;SERVER-2747&lt;/del&gt;&lt;/a&gt; can&apos;t kill index in phase 2&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-8917&quot; title=&quot;buildBottomUpPhases2And3 should check assertion code when detecting a dup&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-8917&quot;&gt;&lt;del&gt;SERVER-8917&lt;/del&gt;&lt;/a&gt; check error code rather than assuming all errors are dups&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-14820&quot; title=&quot;Compact claims not to enforce unique indexes but actually does&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-14820&quot;&gt;&lt;del&gt;SERVER-14820&lt;/del&gt;&lt;/a&gt; compact enforces unique while claiming not to&lt;br/&gt;
&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-14746&quot; title=&quot;IndexRebuilder should only restart index builds initiated internally&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-14746&quot;&gt;&lt;del&gt;SERVER-14746&lt;/del&gt;&lt;/a&gt; IndexRebuilder should be foreground and fail fatally&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/00913e47de5aced5267e44e82ac9e976bbaac089&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/00913e47de5aced5267e44e82ac9e976bbaac089&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="684031" author="milkie" created="Thu, 7 Aug 2014 17:32:04 +0000"  >&lt;p&gt;Is the intention to change the comment, or to change the behavior?  I&apos;m not sure we need to change the behavior now as I don&apos;t see what benefit we get.  The assumption from the comment may have been that building the index would be faster if we didn&apos;t enforce uniqueness?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10220">
                    <name>Tested</name>
                                            <outwardlinks description="tested by">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 7 Aug 2014 17:32:04 +0000</customfieldvalue>

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

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>milkie@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>mathias@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrlqbr:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>131316</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10166" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Tests Written</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10154"><![CDATA[Complete]]></customfieldvalue>

                        </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|hsgr0n:</customfieldvalue>

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