<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 06:51:37 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-83236] Create index with hidden:true succeeds when a hidden:false index already exists</title>
                <link>https://jira.mongodb.org/browse/SERVER-83236</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;From looking at BF-30486 it appears that creating a &lt;tt&gt;hidden:true&lt;/tt&gt; index when the same &lt;tt&gt;hidden:false&lt;/tt&gt; index already exists doesn&apos;t actually report an error.&lt;/p&gt;

&lt;p&gt;From looking at the logs, it can be seen that on one of the shards, the index indeed got dropped successfully, but a concurrent incoming migration of a first chunk from a collection managed to re-create it with the options it had from before the drop (relevant log lines posted below).&lt;/p&gt;

&lt;p&gt;Because the index is now existent, the create statement (which creates it with &lt;tt&gt;hidden:true&lt;/tt&gt;) just &lt;a href=&quot;https://github.com/mongodb/mongo/blob/7cb0ad18752888d9f690533e90feeb1ae011ae7e/jstests/core/index/hidden_index.js#L79-L84&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;became a no-op&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;This ticket is just to improve the &lt;tt&gt;createIndex&lt;/tt&gt; command to report an error in this case.&lt;/p&gt;</description>
                <environment></environment>
        <key id="2499658">SERVER-83236</key>
            <summary>Create index with hidden:true succeeds when a hidden:false index already exists</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="13201">Fixed</resolution>
                                        <assignee username="david.dominguez@mongodb.com">David Dominguez Sal</assignee>
                                    <reporter username="kaloian.manassiev@mongodb.com">Kaloian Manassiev</reporter>
                        <labels>
                    </labels>
                <created>Tue, 14 Nov 2023 16:44:07 +0000</created>
                <updated>Mon, 18 Dec 2023 09:27:54 +0000</updated>
                            <resolved>Mon, 18 Dec 2023 09:01:11 +0000</resolved>
                                                    <fixVersion>7.3.0-rc0</fixVersion>
                                    <component>Catalog</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="5956746" author="xgen-internal-githook" created="Mon, 18 Dec 2023 09:27:54 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;David Dominguez-Sal&apos;, &apos;email&apos;: &apos;david.dominguez@mongodb.com&apos;, &apos;username&apos;: &apos;david-dominguez-sal&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-83236&quot; title=&quot;Create index with hidden:true succeeds when a hidden:false index already exists&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-83236&quot;&gt;&lt;del&gt;SERVER-83236&lt;/del&gt;&lt;/a&gt;: Check if createIndex  hidden parameter is incompatible with an already existing index&lt;/p&gt;

&lt;p&gt;GitOrigin-RevId: 8b3714f014d464a8fa2145cee22716869c9f028a&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/74f5f0aca38c3b949d370038aaf05e856b12db38&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/74f5f0aca38c3b949d370038aaf05e856b12db38&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5926596" author="JIRAUSER1275231" created="Tue, 5 Dec 2023 15:50:09 +0000"  >&lt;p&gt;After some discussions, we agree that the current behavior, which converts the new createIndex to a no-op, is not intuitive. It makes sense to update the behavior of createIndex to return an error when the hidden status does not match.&#160;&lt;/p&gt;</comment>
                            <comment id="5915341" author="JIRAUSER1275231" created="Thu, 30 Nov 2023 13:53:22 +0000"  >&lt;p&gt;According to the createIndex documentation, implementing the description would change the command behavior.&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;RecreatinganExistingIndex%21https%3A%2F%2Fwww.mongodb.com%2Fdocs%2Fmanual%2Fassets%2Flink.svg%21https%3A%2F%2Fwww.mongodb.com%2Fdocs%2Fmanual%2Freference%2Fmethod%2Fdb.collection.createIndex%2F%23recreatinganexistingindex&quot;&gt;&lt;/a&gt;Recreating an Existing Index&lt;a href=&quot;https://www.mongodb.com/docs/manual/reference/method/db.collection.createIndex/#recreating-an-existing-index&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://www.mongodb.com/docs/manual/assets/link.svg&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;

&lt;p&gt;&lt;font color=&quot;#de350b&quot;&gt;If you call&#160;&lt;a href=&quot;https://www.mongodb.com/docs/manual/reference/method/db.collection.createIndex/#mongodb-method-db.collection.createIndex&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;db.collection.createIndex()&lt;/tt&gt;&lt;/a&gt;&#160;for an index that already exists, MongoDB does not recreate the index.&lt;/font&gt;&lt;/p&gt;
&lt;h3&gt;&lt;a name=&quot;IndexOptions%21https%3A%2F%2Fwww.mongodb.com%2Fdocs%2Fmanual%2Fassets%2Flink.svg%21https%3A%2F%2Fwww.mongodb.com%2Fdocs%2Fmanual%2Freference%2Fmethod%2Fdb.collection.createIndex%2F%23indexoptions&quot;&gt;&lt;/a&gt;Index Options&lt;a href=&quot;https://www.mongodb.com/docs/manual/reference/method/db.collection.createIndex/#index-options&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://www.mongodb.com/docs/manual/assets/link.svg&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;h4&gt;&lt;a name=&quot;NonCollationandNonHiddenOptions%21https%3A%2F%2Fwww.mongodb.com%2Fdocs%2Fmanual%2Fassets%2Flink.svg%21https%3A%2F%2Fwww.mongodb.com%2Fdocs%2Fmanual%2Freference%2Fmethod%2Fdb.collection.createIndex%2F%23noncollationandnonhiddenoptions&quot;&gt;&lt;/a&gt;Non-Collation and Non-Hidden Options&lt;a href=&quot;https://www.mongodb.com/docs/manual/reference/method/db.collection.createIndex/#non-collation-and-non-hidden-options&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;span class=&quot;image-wrap&quot; style=&quot;&quot;&gt;&lt;img src=&quot;https://www.mongodb.com/docs/manual/assets/link.svg&quot; style=&quot;border: 0px solid black&quot; /&gt;&lt;/span&gt;&lt;/a&gt;&lt;/h4&gt;

&lt;p&gt;With the exception of the&#160;&lt;a href=&quot;https://www.mongodb.com/docs/manual/reference/method/db.collection.createIndex/#std-label-method-createIndex-collation-option&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;collation option&lt;/a&gt;, if you create an index with one set of index options and then try to &lt;font color=&quot;#de350b&quot;&gt;recreate the same index but with different index options, MongoDB will not change the options nor recreate the index.&lt;/font&gt;&lt;/p&gt;

&lt;p&gt;The&#160;&lt;a href=&quot;https://www.mongodb.com/docs/manual/reference/command/createIndexes/#std-label-createIndexes-hidden-option&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;hidden&lt;/a&gt;&#160;option can be changed without dropping and recreating the index. See&#160;&lt;a href=&quot;https://www.mongodb.com/docs/manual/reference/method/db.collection.createIndex/#std-label-method-createIndex-hidden-option&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Hidden Option.&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;To change the other index options, drop the existing index with&#160;&lt;a href=&quot;https://www.mongodb.com/docs/manual/reference/method/db.collection.dropIndex/#mongodb-method-db.collection.dropIndex&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;db.collection.dropIndex()&lt;/tt&gt;&lt;/a&gt;&#160;before running&#160;&lt;a href=&quot;https://www.mongodb.com/docs/manual/reference/method/db.collection.createIndex/#mongodb-method-db.collection.createIndex&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;&lt;tt&gt;db.collection.createIndex()&lt;/tt&gt;&lt;/a&gt;&#160;with the new options.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="26387"><![CDATA[Catalog and Routing]]></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_23577" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>CAR Impact</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25718"><![CDATA[5 BF w/evergreen redness]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 30 Nov 2023 13:53:22 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        7 weeks, 2 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_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16941"><![CDATA[Not Needed]]></customfieldvalue>

                        </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>xgen-internal-githook</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            7 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.0</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>david.dominguez@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>kaloian.manassiev@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i30e3z:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</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_22250" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Special Downgrade Instructions Required</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="23343"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="7890">CAR Team 2023-12-11</customfieldvalue>
    <customfieldvalue id="7891">CAR Team 2023-12-25</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10555" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</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|i3009b:</customfieldvalue>

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