<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:31:34 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-53675] Allow validate to fix up multikey metadata</title>
                <link>https://jira.mongodb.org/browse/SERVER-53675</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&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;</description>
                <environment></environment>
        <key id="1584808">SERVER-53675</key>
            <summary>Allow validate to fix up multikey metadata</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="louis.williams@mongodb.com">Louis Williams</assignee>
                                    <reporter username="louis.williams@mongodb.com">Louis Williams</reporter>
                        <labels>
                    </labels>
                <created>Fri, 8 Jan 2021 21:57:51 +0000</created>
                <updated>Sun, 29 Oct 2023 21:58:59 +0000</updated>
                            <resolved>Fri, 29 Jan 2021 18:46:59 +0000</resolved>
                                                    <fixVersion>4.9.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>11</watches>
                                                                                                                <comments>
                            <comment id="3588740" author="xgen-internal-githook" created="Fri, 29 Jan 2021 00:01:56 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Louis Williams&apos;, &apos;email&apos;: &apos;louis.williams@mongodb.com&apos;, &apos;username&apos;: &apos;louiswilliams&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-53675&quot; title=&quot;Allow validate to fix up multikey metadata&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-53675&quot;&gt;&lt;del&gt;SERVER-53675&lt;/del&gt;&lt;/a&gt; Allow validate to fix up multikey metadata&lt;/p&gt;

&lt;p&gt;This allows foreground validation to fix up the following multikey&lt;br/&gt;
metadata 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;If any changes were made, a warning is included to the validate output&lt;br/&gt;
and the &apos;repaired&apos; flag is set to true.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/0d6199bb52dcae5978551816c6ac4ad98bda165b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/0d6199bb52dcae5978551816c6ac4ad98bda165b&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10320">
                    <name>Documented</name>
                                                                <inwardlinks description="is documented by">
                                        <issuelink>
            <issuekey id="1605719">DOCS-14170</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1711537">SERVER-56877</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1736287">SERVER-57083</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1925950">SERVER-61509</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>1.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_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_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[5002K00000rz9b9QAA]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 25 Jan 2021 13:43:40 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 1 week, 6 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_17052" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Downstream Changes Summary</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Foreground validation on standalone nodes may fix up the following multikey metadata inconsistencies:&lt;br/&gt;
&lt;br/&gt;
- An index is multikey but there are no multikey fields&lt;br/&gt;
- An index has multikeyPaths covering fields that are not multikey&lt;br/&gt;
- An index does not have multikeyPaths but there are multikey documents (for indexes built before 3.4)&lt;br/&gt;
&lt;br/&gt;
If any changes were made, a warning is included to the validate output and the &amp;#39;repaired&amp;#39; flag is set to true.</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16942"><![CDATA[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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            3 years, 1 week, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>xgen-internal-githook</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|hyomdr:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hycjbr:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="4366">Execution Team 2021-01-25</customfieldvalue>
    <customfieldvalue id="4552">Execution Team 2021-02-08</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_17051" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Teams Impacted</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16944"><![CDATA[Docs]]></customfieldvalue>
    <customfieldvalue key="16946"><![CDATA[Triage and Release]]></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|hyo8n3:</customfieldvalue>

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