<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:11:16 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[DOCS-14821] Investigate changes in SERVER-59805: Provide a way to check for and to remove invalid index catalog options</title>
                <link>https://jira.mongodb.org/browse/DOCS-14821</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>    &lt;div class=&quot;panel&quot; style=&quot;background-color: #c2d2c2;border-width: 1px;&quot;&gt;&lt;div class=&quot;panelHeader&quot; style=&quot;border-bottom-width: 1px;background-color: #239eb0;&quot;&gt;&lt;b&gt;Downstream Change Summary&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;panelContent&quot; style=&quot;background-color: #c2d2c2;&quot;&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Adds a new &apos;metadata&apos; flag to the &apos;validate&apos; command which only performs validation on the collection metadata. This is to allow users to perform a quick validation to detect invalid index options without scanning all of the documents and indexes.&lt;/li&gt;
	&lt;li&gt;&apos;validate&apos; detects invalid index options and recommends running &apos;collMod&apos; to remove the invalid index options.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Sample log messages:&lt;br/&gt;
2021-09-24T14:43:20.964+00:00 I  COMMAND  20514   &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; &quot;CMD: validate&quot;,&quot;attr&quot;:&lt;/p&gt;
&lt;div class=&quot;error&quot;&gt;&lt;span class=&quot;error&quot;&gt;Unknown macro: {&amp;quot;namespace&amp;quot;}&lt;/span&gt; &lt;/div&gt;
&lt;p&gt;2021-09-24T14:43:20.964+00:00 I  STORAGE  5980501 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; &quot;Validation of metadata complete for collection. Problems detected&quot;,&quot;attr&quot;:{&quot;namespace&quot;:&quot;test.validate_detects_invalid_index_options&quot;,&quot;uuid&quot;:{&quot;uuid&quot;:&lt;/p&gt;
&lt;div class=&quot;error&quot;&gt;&lt;span class=&quot;error&quot;&gt;Unknown macro: {&amp;quot;$uuid&amp;quot;}&lt;/span&gt; &lt;/div&gt;
&lt;p&gt;}}&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;The &apos;collMod&apos; command can be used to remove the invalid index options for all indexes on the given collection.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Can be executed through:&lt;br/&gt;
db.runCommand(&lt;/p&gt;
&lt;div class=&quot;error&quot;&gt;&lt;span class=&quot;error&quot;&gt;Unknown macro: {collMod}&lt;/span&gt; &lt;/div&gt;
&lt;p&gt;)&lt;/p&gt;

&lt;p&gt;Sample log messages:&lt;br/&gt;
2021-09-24T14:43:22.309+00:00 I  COMMAND  5324200 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; &quot;CMD: collMod&quot;,&quot;attr&quot;:{&quot;cmdObj&quot;:{&quot;collMod&quot;:&quot;collmod_removes_invalid_index_options&quot;}}&lt;br/&gt;
2021-09-24T14:43:22.309+00:00 W  INDEX    23878   &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; &quot;Removing unknown field from index spec&quot;,&quot;attr&quot;:{&quot;fieldName&quot;:&quot;safe&quot;,&quot;indexSpec&quot;:{&quot;v&quot;:2,&quot;key&quot;:&lt;/p&gt;
&lt;div class=&quot;error&quot;&gt;&lt;span class=&quot;error&quot;&gt;Unknown macro: {&amp;quot;x&amp;quot;}&lt;/span&gt; &lt;/div&gt;
&lt;p&gt;,&quot;name&quot;:&quot;x_1&quot;,&quot;safe&quot;:true,&quot;sparse&quot;:true,&quot;force&quot;:false}}&lt;br/&gt;
2021-09-24T14:43:22.309+00:00 W  INDEX    23878   &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; &quot;Removing unknown field from index spec&quot;,&quot;attr&quot;:{&quot;fieldName&quot;:&quot;force&quot;,&quot;indexSpec&quot;:{&quot;v&quot;:2,&quot;key&quot;:&lt;/p&gt;
&lt;div class=&quot;error&quot;&gt;&lt;span class=&quot;error&quot;&gt;Unknown macro: {&amp;quot;x&amp;quot;}&lt;/span&gt; &lt;/div&gt;
&lt;p&gt;,&quot;name&quot;:&quot;x_1&quot;,&quot;safe&quot;:true,&quot;sparse&quot;:true,&quot;force&quot;:false}}&lt;br/&gt;
2021-09-24T14:43:22.309+00:00 W  INDEX    23878   &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; &quot;Removing unknown field from index spec&quot;,&quot;attr&quot;:{&quot;fieldName&quot;:&quot;xyz&quot;,&quot;indexSpec&quot;:{&quot;v&quot;:2,&quot;key&quot;:&lt;/p&gt;
&lt;div class=&quot;error&quot;&gt;&lt;span class=&quot;error&quot;&gt;Unknown macro: {&amp;quot;z&amp;quot;}&lt;/span&gt; &lt;/div&gt;
&lt;p&gt;,&quot;name&quot;:&quot;z_1&quot;,&quot;xyz&quot;:false}}&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;h2&gt;&lt;a name=&quot;DescriptionofLinkedTicket&quot;&gt;&lt;/a&gt;Description of Linked Ticket&lt;/h2&gt;
&lt;p&gt;    Invalid index options such as &quot;safe&quot; may have been created in the past, before the createIndexes command started validating options more strictly. &lt;/p&gt;

&lt;p&gt;In MongoDB 5.0, the listIndexes command more strictly validates index options, and fails when an invalid option is encountered. At this point, the only option is to drop and recreate the index.&lt;/p&gt;

&lt;p&gt;This feature request is for the validate command to remove these invalid options as it is validating an index. This would provide a much faster way than recreating the index when fixing an invalid index option. &lt;/p&gt;
</description>
                <environment></environment>
        <key id="1882948">DOCS-14821</key>
            <summary>Investigate changes in SERVER-59805: Provide a way to check for and to remove invalid index catalog options</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="ian.fogelman@mongodb.com">Ian Fogelman</assignee>
                                    <reporter username="backlog-server-pm">Backlog - Core Eng Program Management Team</reporter>
                        <labels>
                    </labels>
                <created>Fri, 24 Sep 2021 16:08:38 +0000</created>
                <updated>Mon, 13 Nov 2023 17:49:00 +0000</updated>
                            <resolved>Mon, 1 Nov 2021 18:42:10 +0000</resolved>
                                                    <fixVersion>5.0.4</fixVersion>
                    <fixVersion>5.1.0-rc0</fixVersion>
                    <fixVersion>Server_Docs_20231030</fixVersion>
                    <fixVersion>Server_Docs_20231106</fixVersion>
                    <fixVersion>Server_Docs_20231105</fixVersion>
                    <fixVersion>Server_Docs_20231113</fixVersion>
                                    <component>manual</component>
                    <component>Server</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="4161330" author="xgen-internal-githook" created="Mon, 1 Nov 2021 18:26:24 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;ian fogelman&apos;, &apos;email&apos;: &apos;ian.fogelman@mongodb.com&apos;, &apos;username&apos;: &apos;ianf-mongodb&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-14821&quot; title=&quot;Investigate changes in SERVER-59805: Provide a way to check for and to remove invalid index catalog options&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-14821&quot;&gt;&lt;del&gt;DOCS-14821&lt;/del&gt;&lt;/a&gt; Adding metadata flag context to validate()&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/2405b9579f4fd9af667d1685a7823cd4f6eda5a9&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/2405b9579f4fd9af667d1685a7823cd4f6eda5a9&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4083498" author="dbeng-pm-bot" created="Fri, 24 Sep 2021 16:08:40 +0000"  >&lt;p&gt;&lt;em&gt;Downstream changes updated for upstream &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-59805&quot; title=&quot;Provide a way to check for and to remove invalid index catalog options&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-59805&quot;&gt;&lt;del&gt;SERVER-59805&lt;/del&gt;&lt;/a&gt;:&lt;/em&gt; &lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Adds a new &apos;metadata&apos; flag to the &apos;validate&apos; command which only performs validation on the collection metadata. This is to allow users to perform a quick validation to detect invalid index options without scanning all of the documents and indexes.&lt;/li&gt;
	&lt;li&gt;&apos;validate&apos; detects invalid index options and recommends running &apos;collMod&apos; to remove the invalid index options.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Sample log messages:&lt;br/&gt;
2021-09-24T14:43:20.964+00:00 I  COMMAND  20514   &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; &quot;CMD: validate&quot;,&quot;attr&quot;:&lt;/p&gt;
{&quot;namespace&quot;:&quot;test.validate_detects_invalid_index_options&quot;,&quot;background&quot;:false,&quot;full&quot;:false,&quot;enforceFastCount&quot;:false,&quot;repair&quot;:false}
&lt;p&gt;2021-09-24T14:43:20.964+00:00 I  STORAGE  5980501 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; &quot;Validation of metadata complete for collection. Problems detected&quot;,&quot;attr&quot;:{&quot;namespace&quot;:&quot;test.validate_detects_invalid_index_options&quot;,&quot;uuid&quot;:{&quot;uuid&quot;:&lt;/p&gt;
{&quot;$uuid&quot;:&quot;f520fef6-e052-4505-8466-94ed602df91e&quot;}
&lt;p&gt;}}&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;The &apos;collMod&apos; command can be used to remove the invalid index options for all indexes on the given collection.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Can be executed through:&lt;br/&gt;
db.runCommand(&lt;/p&gt;
{collMod: &amp;lt;collectionName&amp;gt;}
&lt;p&gt;)&lt;/p&gt;

&lt;p&gt;Sample log messages:&lt;br/&gt;
2021-09-24T14:43:22.309+00:00 I  COMMAND  5324200 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; &quot;CMD: collMod&quot;,&quot;attr&quot;:{&quot;cmdObj&quot;:{&quot;collMod&quot;:&quot;collmod_removes_invalid_index_options&quot;}}&lt;br/&gt;
2021-09-24T14:43:22.309+00:00 W  INDEX    23878   &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; &quot;Removing unknown field from index spec&quot;,&quot;attr&quot;:{&quot;fieldName&quot;:&quot;safe&quot;,&quot;indexSpec&quot;:{&quot;v&quot;:2,&quot;key&quot;:&lt;/p&gt;
{&quot;x&quot;:1}
&lt;p&gt;,&quot;name&quot;:&quot;x_1&quot;,&quot;safe&quot;:true,&quot;sparse&quot;:true,&quot;force&quot;:false}}&lt;br/&gt;
2021-09-24T14:43:22.309+00:00 W  INDEX    23878   &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; &quot;Removing unknown field from index spec&quot;,&quot;attr&quot;:{&quot;fieldName&quot;:&quot;force&quot;,&quot;indexSpec&quot;:{&quot;v&quot;:2,&quot;key&quot;:&lt;/p&gt;
{&quot;x&quot;:1}
&lt;p&gt;,&quot;name&quot;:&quot;x_1&quot;,&quot;safe&quot;:true,&quot;sparse&quot;:true,&quot;force&quot;:false}}&lt;br/&gt;
2021-09-24T14:43:22.309+00:00 W  INDEX    23878   &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; &quot;Removing unknown field from index spec&quot;,&quot;attr&quot;:{&quot;fieldName&quot;:&quot;xyz&quot;,&quot;indexSpec&quot;:{&quot;v&quot;:2,&quot;key&quot;:&lt;/p&gt;
{&quot;z&quot;:1}
&lt;p&gt;,&quot;name&quot;:&quot;z_1&quot;,&quot;xyz&quot;:false}}&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10420">
                    <name>Backports</name>
                                            <outwardlinks description="backported by">
                                        <issuelink>
            <issuekey id="1889543">DOCS-14842</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                            <outwardlinks description="documents">
                                        <issuelink>
            <issuekey id="1868012">SERVER-59805</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </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_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 24 Sep 2021 16:08:40 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 14 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_14876" key="com.atlassian.jira.plugin.system.customfieldtypes:userpicker">
                        <customfieldname>Docs Reviewer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>dave.cuthbert@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>DOCSP-14300</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>emet.ozar@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            2 years, 14 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>backlog-server-pm</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>ian.fogelman@mongodb.com</customfieldvalue>
            <customfieldvalue>dbeng-pm-bot</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i033bj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hzmw8f:</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_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|i02pgv:</customfieldvalue>

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