<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:12:47 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-26659] Only apply stricter index key pattern validation to v:2 indexes</title>
                <link>https://jira.mongodb.org/browse/SERVER-26659</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;In &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-11064&quot; title=&quot;Stricter validation of index key patterns during index creation and startup&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-11064&quot;&gt;&lt;del&gt;SERVER-11064&lt;/del&gt;&lt;/a&gt;, we made it an error for index key pattern values to be 0, NaN, or non-numeric / non-string types. Existing deployments may have &lt;tt&gt;v:0&lt;/tt&gt; and &lt;tt&gt;v:1&lt;/tt&gt; indexes which break the validation rules. As currently implemented, this will prevent upgrade to 3.4 since the validation is applied to all index versions. In order to ensure a smooth upgrade process, we should only apply the new index validation to &lt;tt&gt;v:2&lt;/tt&gt; indexes, which are new in 3.4. (&lt;tt&gt;v:2&lt;/tt&gt; indexes support collation and the decimal data type.)&lt;/p&gt;

&lt;h5&gt;&lt;a name=&quot;Originaldescription&quot;&gt;&lt;/a&gt;Original description&lt;/h5&gt;

&lt;p&gt;Related to change made in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-11064&quot; title=&quot;Stricter validation of index key patterns during index creation and startup&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-11064&quot;&gt;&lt;del&gt;SERVER-11064&lt;/del&gt;&lt;/a&gt; starting up 3.4 on older mongod data directory will fail if it finds one of these technically invalid index definitions.  Unfortunately the error message is not very clear as far as what the user must do to fix this:&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;F INDEX    [initandlisten] Found an invalid index { v: 1, key: { softDeleteTime: 1, sparse: true }, name: &quot;softDeleteTime_1_sparse_&quot;, ns: &quot;session_cache.session&quot; } on the session_cache.session collection: bad index key pattern { softDeleteTime: 1, sparse: true }: Values in index key pattern cannot be of type bool. Only numbers &amp;gt; 0, numbers &amp;lt; 0, and strings are allowed.&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;2016-10-17T12:30:14.334-0400 I -        [initandlisten] Fatal Assertion 28782&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-7038&quot; title=&quot;Document new restrictions on index key patterns in 3.4 release notes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-7038&quot;&gt;&lt;del&gt;DOCS-7038&lt;/del&gt;&lt;/a&gt; is already open to document the changed behavior due to &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-11064&quot; title=&quot;Stricter validation of index key patterns during index creation and startup&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-11064&quot;&gt;&lt;del&gt;SERVER-11064&lt;/del&gt;&lt;/a&gt; but I think it should be linked to directly from the error message on startup - otherwise people will not have any idea what to do and how to fix this.&lt;/p&gt;</description>
                <environment></environment>
        <key id="324212">SERVER-26659</key>
            <summary>Only apply stricter index key pattern validation to v:2 indexes</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="david.storch@mongodb.com">David Storch</assignee>
                                    <reporter username="asya.kamsky@mongodb.com">Asya Kamsky</reporter>
                        <labels>
                    </labels>
                <created>Mon, 17 Oct 2016 16:37:14 +0000</created>
                <updated>Tue, 25 Jun 2019 12:56:37 +0000</updated>
                            <resolved>Thu, 20 Oct 2016 20:04:05 +0000</resolved>
                                    <version>3.4.0-rc0</version>
                                    <fixVersion>3.4.0-rc2</fixVersion>
                                    <component>Querying</component>
                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="1414121" author="xgen-internal-githook" created="Thu, 20 Oct 2016 20:02:24 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;dstorch&apos;, u&apos;name&apos;: u&apos;David Storch&apos;, u&apos;email&apos;: u&apos;david.storch@10gen.com&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-26659&quot; title=&quot;Only apply stricter index key pattern validation to v:2 indexes&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-26659&quot;&gt;&lt;del&gt;SERVER-26659&lt;/del&gt;&lt;/a&gt; only use stricter key pattern validation for v:2 or new index builds&lt;/p&gt;

&lt;p&gt;This now follows the same rules which we will use in 3.4 for&lt;br/&gt;
rejecting unknown top-level options in the index spec. These&lt;br/&gt;
rules ensure a smooth upgrade, even in the presence of bad&lt;br/&gt;
index metadata produced on an older server version.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/315f92405c5f5e5f4159ccbb55b0352cfe235852&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/315f92405c5f5e5f4159ccbb55b0352cfe235852&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1412865" author="dan@10gen.com" created="Wed, 19 Oct 2016 18:19:24 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=david.storch&quot; class=&quot;user-hover&quot; rel=&quot;david.storch&quot;&gt;david.storch&lt;/a&gt; That seems like the only sane approach&lt;/p&gt;</comment>
                            <comment id="1412851" author="david.storch" created="Wed, 19 Oct 2016 18:11:12 +0000"  >&lt;p&gt;We can avoid the problem altogether by only applying the new validation to &lt;tt&gt;v:2&lt;/tt&gt; indexes. This will ensure that new indexes on fully upgraded 3.4 systems always obey the new validation rules, but also that the system can fully tolerate &lt;tt&gt;v:1&lt;/tt&gt; index specs created on old versions.&lt;/p&gt;</comment>
                            <comment id="1410513" author="asya" created="Mon, 17 Oct 2016 16:59:08 +0000"  >&lt;p&gt;Also &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-11064&quot; title=&quot;Stricter validation of index key patterns during index creation and startup&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-11064&quot;&gt;&lt;del&gt;SERVER-11064&lt;/del&gt;&lt;/a&gt; says:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt; if an index with an invalid key pattern is replicated from&lt;br/&gt;
an older version, then newer versions of mongod running in a&lt;br/&gt;
mixed-version replica set will fassert()&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;I assume that&apos;ll be the same error message that needs to be more clear.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="813499">PHPLIB-447</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="319832">DOCS-9049</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="93087">SERVER-11064</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="260716">DOCS-7038</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="323892">SERVER-26648</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </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_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 17 Oct 2016 22:33:46 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            7 years, 16 weeks, 6 days ago
                        </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>asya.kamsky@mongodb.com</customfieldvalue>
            <customfieldvalue>dan@mongodb.com</customfieldvalue>
            <customfieldvalue>david.storch@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrjt7z:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsqx3z:</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="1328">Query 2016-10-31</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;Create an index using value like &quot;true&quot; instead of 1 or -1 in index spec.  Start up 3.3/3.4 on it.&lt;/p&gt;</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|hsefvr:</customfieldvalue>

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