<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:12:45 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-6811] prefix shard keys index bounds handling</title>
                <link>https://jira.mongodb.org/browse/SERVER-6811</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;If we shard over &lt;/p&gt;
{ x : 1 }
&lt;p&gt; with index &lt;/p&gt;
{ x : 1, y : 1 }
&lt;p&gt;, and have chunks A: &lt;/p&gt;
{x:2}
&lt;p&gt;-&amp;gt;&lt;/p&gt;
{x:3}
&lt;p&gt; and B:&lt;/p&gt;
{x:3}
&lt;p&gt;-&amp;gt;&lt;/p&gt;
{x:4}
&lt;p&gt;, a document D : &lt;/p&gt;
{ x : 3, y : &quot;abcde&quot; }
&lt;p&gt; is currently included in migrations and other operations for both A and B.  &lt;/p&gt;

&lt;p&gt;This is b/c when we get index key bounds from the prefix, we complete them with MinKey for min and MaxKey for max, so the index max bound of A is &lt;/p&gt;
{x:3,y:MaxKey}
&lt;p&gt; and the index min bound of B is &lt;/p&gt;
{x:3,y:MinKey}
&lt;p&gt;, and both ranges overlap D.  Included test shows how this results in extra documents removed during migration.&lt;/p&gt;

&lt;p&gt;Proposed solution - complete with just MinKey?&lt;/p&gt;

&lt;p&gt;The problem is harder to trigger with our standard tests with _id indexes, not sure why.&lt;/p&gt;</description>
                <environment></environment>
        <key id="47749">SERVER-6811</key>
            <summary>prefix shard keys index bounds handling</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="matulef">Kevin Matulef</assignee>
                                    <reporter username="greg_10gen">Greg Studer</reporter>
                        <labels>
                    </labels>
                <created>Tue, 21 Aug 2012 14:22:13 +0000</created>
                <updated>Mon, 11 Jul 2016 17:56:31 +0000</updated>
                            <resolved>Wed, 22 Aug 2012 02:29:08 +0000</resolved>
                                    <version>2.2.0-rc1</version>
                                    <fixVersion>2.2.0-rc2</fixVersion>
                    <fixVersion>2.3.0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="160178" author="auto" created="Tue, 4 Sep 2012 15:55:58 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-08-21T14:19:11-07:00&apos;, u&apos;email&apos;: u&apos;matulef@10gen.com&apos;, u&apos;name&apos;: u&apos;Kevin Matulef&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6809&quot; title=&quot;splitVector doesn&amp;#39;t filter additional index fields when shard key is prefix of index&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6809&quot;&gt;&lt;del&gt;SERVER-6809&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6811&quot; title=&quot;prefix shard keys index bounds handling&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6811&quot;&gt;&lt;del&gt;SERVER-6811&lt;/del&gt;&lt;/a&gt; cleanup and add prefix sharding tests&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/814e1526cae18e828c83ab4e6ce40ba8423cd1fe&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/814e1526cae18e828c83ab4e6ce40ba8423cd1fe&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="155582" author="auto" created="Tue, 21 Aug 2012 21:39:51 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-08-20T19:01:39-07:00&apos;, u&apos;email&apos;: u&apos;matulef@10gen.com&apos;, u&apos;name&apos;: u&apos;Kevin Matulef&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6809&quot; title=&quot;splitVector doesn&amp;#39;t filter additional index fields when shard key is prefix of index&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6809&quot;&gt;&lt;del&gt;SERVER-6809&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6811&quot; title=&quot;prefix shard keys index bounds handling&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6811&quot;&gt;&lt;del&gt;SERVER-6811&lt;/del&gt;&lt;/a&gt; fix chunk bounds for prefix shard keys&lt;br/&gt;
Branch: v2.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/7ab12c2e100da04aa7fcfe6946e5eae082777209&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/7ab12c2e100da04aa7fcfe6946e5eae082777209&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="155522" author="auto" created="Tue, 21 Aug 2012 18:59:39 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;date&apos;: u&apos;2012-08-20T19:01:39-07:00&apos;, u&apos;email&apos;: u&apos;matulef@10gen.com&apos;, u&apos;name&apos;: u&apos;Kevin Matulef&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6809&quot; title=&quot;splitVector doesn&amp;#39;t filter additional index fields when shard key is prefix of index&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6809&quot;&gt;&lt;del&gt;SERVER-6809&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6811&quot; title=&quot;prefix shard keys index bounds handling&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6811&quot;&gt;&lt;del&gt;SERVER-6811&lt;/del&gt;&lt;/a&gt; fix chunk bounds for prefix shard keys&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/774853dbd649b346146ad5bacb7127b67679351f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/774853dbd649b346146ad5bacb7127b67679351f&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="155406" author="greg_10gen" created="Tue, 21 Aug 2012 15:03:59 +0000"  >&lt;p&gt;Interactions with MaxKey are a bit wonky here - in theory, though almost no one will come across a case where it will matter, we&apos;d want the final chunk to always be MaxKeys.  Otherwise you could miss docs like &lt;/p&gt;
{ x : MaxKey, y : &quot;abcde&quot; }
&lt;p&gt;.  &lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="47695">SERVER-6809</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                            <attachment id="18876" name="deletion_range.js" size="1588" author="greg_10gen" created="Tue, 21 Aug 2012 14:22:13 +0000"/>
                    </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_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>Tue, 21 Aug 2012 16:25:22 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        11 years, 24 weeks, 1 day 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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            11 years, 24 weeks, 1 day 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>auto</customfieldvalue>
            <customfieldvalue>greg_10gen</customfieldvalue>
            <customfieldvalue>matulef</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrnrcn:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>7610</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_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|ht047b:</customfieldvalue>

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