<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:09:41 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-14170] Investigate changes in SERVER-53675: Allow validate to fix up multikey metadata</title>
                <link>https://jira.mongodb.org/browse/DOCS-14170</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;h2&gt;&lt;a name=&quot;Description&quot;&gt;&lt;/a&gt;Description&lt;/h2&gt;

    &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;p&gt;    Foreground validation on standalone nodes may fix up the following multikey metadata inconsistencies:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;An index is multikey but there are no multikey fields&lt;/li&gt;
	&lt;li&gt;An index has multikeyPaths covering fields that are not multikey&lt;/li&gt;
	&lt;li&gt;An index does not have multikeyPaths but there are multikey documents (for indexes built before 3.4)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;If any changes were made, a warning is included to the validate output and the &apos;repaired&apos; flag is set to true.&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;    Index multikey metadata can either become inconsistent with collection data or more permissive than the data requires. There are three main ways this can happen:&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Indexes built before 3.4 (&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-15086&quot; title=&quot;Allow for efficient range queries over non-array fields in multikey indices&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-15086&quot;&gt;&lt;del&gt;SERVER-15086&lt;/del&gt;&lt;/a&gt;) lack path-specific multikey metadata. All fields in an index are considered multikey and require blocking sorts. See &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-33387&quot; title=&quot;Multikey index does not provide nonblocking sort in MongoDB 3.6&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-33387&quot;&gt;&lt;del&gt;SERVER-33387&lt;/del&gt;&lt;/a&gt;.&lt;/li&gt;
	&lt;li&gt;Collection data has changed such that certain document paths are no longer multikey.&lt;/li&gt;
	&lt;li&gt;Bugs: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-48471&quot; title=&quot;Hashed indexes may be incorrectly marked multikey and be ineligible as a shard key&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-48471&quot;&gt;&lt;del&gt;SERVER-48471&lt;/del&gt;&lt;/a&gt;,&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-47694&quot; title=&quot;fix multikey. again&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-47694&quot;&gt;&lt;del&gt;SERVER-47694&lt;/del&gt;&lt;/a&gt;,&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-43074&quot; title=&quot;Do not use a global variable to encode &amp;#39;multikeyPath&amp;#39; information when writing out catalog documents&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-43074&quot;&gt;&lt;del&gt;SERVER-43074&lt;/del&gt;&lt;/a&gt;, etc.&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Multikey metadata may only be made less restrictive. If a collection&apos;s data has changed such that an index no longer has multikey documents or the multikey paths include more fields than are multikey, then the multikey metadata may be inconsistent. This is correct and allowed by the implementation, but it can lead to undesirable performance problems. The only solution is to reindex.&lt;/p&gt;

&lt;p&gt;Collection validation scans all documents and generates multikey information, and it has the ability to fix index multikey metadata without returning an error. Allow foreground validation to &quot;fix up&quot; the following permitted inconsistencies:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;An index is multikey but there are no multikey fields&lt;/li&gt;
	&lt;li&gt;An index has multikeyPaths covering fields that are not multikey&lt;/li&gt;
	&lt;li&gt;An index does not have multikeyPaths but there are multikey documents (for pre-3.4 indexes)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;&#160;&lt;/p&gt;


&lt;h2&gt;&lt;a name=&quot;Scopeofchanges&quot;&gt;&lt;/a&gt;Scope of changes&lt;/h2&gt;

&lt;h2&gt;&lt;a name=&quot;ImpacttoOtherDocs&quot;&gt;&lt;/a&gt;Impact to Other Docs&lt;/h2&gt;

&lt;h2&gt;&lt;a name=&quot;MVP%28WorkandDate%29&quot;&gt;&lt;/a&gt;MVP (Work and Date)&lt;/h2&gt;

&lt;h2&gt;&lt;a name=&quot;Resources%28ScopeorDesignDocs%2CInvision%2Cetc.%29&quot;&gt;&lt;/a&gt;Resources (Scope or Design Docs, Invision, etc.)&lt;/h2&gt;
</description>
                <environment></environment>
        <key id="1605719">DOCS-14170</key>
            <summary>Investigate changes in SERVER-53675: Allow validate to fix up multikey metadata</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, 29 Jan 2021 18:48:38 +0000</created>
                <updated>Mon, 13 Nov 2023 17:59:04 +0000</updated>
                            <resolved>Thu, 19 Aug 2021 12:12:21 +0000</resolved>
                                                    <fixVersion>4.9.0</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>4</watches>
                                                                                                                <comments>
                            <comment id="4007801" author="xgen-internal-githook" created="Wed, 18 Aug 2021 20:31:17 +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-14170&quot; title=&quot;Investigate changes in SERVER-53675: Allow validate to fix up multikey metadata&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-14170&quot;&gt;&lt;del&gt;DOCS-14170&lt;/del&gt;&lt;/a&gt; Add foreground validation reference for 5.0 standalone mulikey index considerations&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/docs/commit/57f7615c711d185f438606bb3e85cf42ef6a8179&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/57f7615c711d185f438606bb3e85cf42ef6a8179&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4004902" author="xgen-internal-githook" created="Tue, 17 Aug 2021 18:46:54 +0000"  >&lt;p&gt;EDIT: This message caused by having the wrong ticket number in an unrelated commit. This change has not yet been merged.&lt;/p&gt;</comment>
                            <comment id="3981068" author="louis.williams" created="Wed, 4 Aug 2021 17:37:30 +0000"  >&lt;p&gt;Yeah, all 3 of these changes are new and different from the currently documented behavior. It&apos;s up to you how much detail we want to include. The multikey state is pretty complex and might require some background. Aside from reporting whether an index is multikey, the multikeyPaths are not normally observable to users.&lt;/p&gt;</comment>
                            <comment id="3980870" author="JIRAUSER1260683" created="Wed, 4 Aug 2021 16:39:37 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=louis.williams&quot; class=&quot;user-hover&quot; rel=&quot;louis.williams&quot;&gt;louis.williams&lt;/a&gt; this seems to have been taken care of in a previous commit &lt;a href=&quot;https://github.com/mongodb/docs/commit/3ab1290e4195b2e198c9436eb115ddde99beeed3&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/docs/commit/3ab1290e4195b2e198c9436eb115ddde99beeed3&lt;/a&gt; , was there anything additional that you would suggest? If not I will close this ticket.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                            <outwardlinks description="documents">
                                        <issuelink>
            <issuekey id="1584808">SERVER-53675</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 4 Aug 2021 16:39:37 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>DOCSP-15042</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, 25 weeks 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>louis.williams@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hys6hb:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hydsqv:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="4799">ServerDocs2020: Mar2 - Mar9</customfieldvalue>
    <customfieldvalue id="4817">ServerDocs2020: Mar9 - Mar16</customfieldvalue>
    <customfieldvalue id="4842">ServerDocs2020: Mar16 - Mar23</customfieldvalue>
    <customfieldvalue id="4851">ServerDocs2020: Mar23 - Mar30</customfieldvalue>
    <customfieldvalue id="4883">ServerDocs2020: Mar30 -  Apr06</customfieldvalue>
    <customfieldvalue id="4909">ServerDocs2020: Apr6 -  Apr13</customfieldvalue>
    <customfieldvalue id="4925">ServerDocs2020: Apr13 -  Apr20</customfieldvalue>
    <customfieldvalue id="4949">ServerDocs2020: Apr20 -  Apr27</customfieldvalue>
    <customfieldvalue id="4977">ServerDocs2020: Apr27 -  May4</customfieldvalue>
    <customfieldvalue id="5002">ServerDocs2020: May4 -  May11</customfieldvalue>
    <customfieldvalue id="5045">ServerDocs2020: May11 -  May18</customfieldvalue>
    <customfieldvalue id="5061">ServerDocs2020: May18 -  May25</customfieldvalue>
    <customfieldvalue id="5099">ServerDocs2020: May25 -  Jun1</customfieldvalue>
    <customfieldvalue id="5123">ServerDocs2021: Jun1 - Jun8</customfieldvalue>
    <customfieldvalue id="5131">ServerDocs2021: Jun8 - Jun15</customfieldvalue>
    <customfieldvalue id="5159">ServerDocs2021: Jun15 - Jun22</customfieldvalue>
    <customfieldvalue id="5204">ServerDocs2021: Jun22 - Jun29</customfieldvalue>
    <customfieldvalue id="5217">ServerDocs2021: Jun29 - Jul6</customfieldvalue>
    <customfieldvalue id="5243">ServerDocs2021: Jul6 - Jul13</customfieldvalue>
    <customfieldvalue id="5259">ServerDocs2021: Jul13 - Jul20</customfieldvalue>
    <customfieldvalue id="5306">ServerDocs2021: Jul20 - Jul27</customfieldvalue>
    <customfieldvalue id="5329">ServerDocs2021: Jul27 - Aug3</customfieldvalue>
    <customfieldvalue id="5345">ServerDocs2021: Aug3 - Aug10</customfieldvalue>
    <customfieldvalue id="5359">ServerDocs2021: Aug10 - Aug17</customfieldvalue>
    <customfieldvalue id="5397">ServerDocs2021: Aug17 - Aug24</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10555" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.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_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hyrsqf:</customfieldvalue>

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