<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:03:51 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-3718] Trying to shard a collection succeeds even without a unique index</title>
                <link>https://jira.mongodb.org/browse/SERVER-3718</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;&amp;gt; use sharded&lt;br/&gt;
&amp;gt; db.unique.drop()&lt;br/&gt;
true&lt;br/&gt;
&amp;gt; db.adminCommand( { shardcollection : &quot;sharded.unique&quot;, key:{a:1}})&lt;/p&gt;
{ &quot;collectionsharded&quot; : &quot;sharded.unique&quot;, &quot;ok&quot; : 1 }
&lt;p&gt;&amp;gt; db.system.indexes.find()&lt;br/&gt;
{ &quot;name&quot; : &quot;&lt;em&gt;id&lt;/em&gt;&quot;, &quot;ns&quot; : &quot;sharded.foo&quot;, &quot;key&quot; : &lt;/p&gt;
{ &quot;_id&quot; : 1 }
&lt;p&gt;, &quot;v&quot; : 0 }&lt;br/&gt;
{ &quot;v&quot; : 1, &quot;key&quot; : &lt;/p&gt;
{ &quot;_id&quot; : 1 }
&lt;p&gt;, &quot;ns&quot; : &quot;sharded.unique&quot;, &quot;name&quot; : &quot;&lt;em&gt;id&lt;/em&gt;&quot; }&lt;br/&gt;
{ &quot;v&quot; : 1, &quot;key&quot; : &lt;/p&gt;
{ &quot;a&quot; : 1 }
&lt;p&gt;, &quot;ns&quot; : &quot;sharded.unique&quot;, &quot;name&quot; : &quot;a_1&quot; }&lt;/p&gt;



&lt;p&gt;Sharding the collection succeeds and creates two non-unique indexes, one on _id and one on the shard key.  It should fail, saying that a unique index is necessary.&lt;/p&gt;</description>
                <environment></environment>
        <key id="21654">SERVER-3718</key>
            <summary>Trying to shard a collection succeeds even without a unique index</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="greg_10gen">Greg Studer</assignee>
                                    <reporter username="spencer@mongodb.com">Spencer Brody</reporter>
                        <labels>
                            <label>indexing</label>
                            <label>sharding</label>
                    </labels>
                <created>Mon, 29 Aug 2011 23:43:01 +0000</created>
                <updated>Mon, 11 Jul 2016 18:35:29 +0000</updated>
                            <resolved>Tue, 4 Oct 2011 21:47:27 +0000</resolved>
                                                    <fixVersion>2.1.0</fixVersion>
                                    <component>Index Maintenance</component>
                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="57625" author="auto" created="Thu, 29 Sep 2011 17:51:45 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;gregstuder&apos;, u&apos;name&apos;: u&apos;gregs&apos;, u&apos;email&apos;: u&apos;greg@10gen.com&apos;}
&lt;p&gt;Message: better msging / tests when sharding collection with diff types of indexes &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3718&quot; title=&quot;Trying to shard a collection succeeds even without a unique index&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3718&quot;&gt;&lt;del&gt;SERVER-3718&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/f17810799b107bebdfe3fd1d3a4780f72d10f246&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/f17810799b107bebdfe3fd1d3a4780f72d10f246&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="52318" author="spencer" created="Fri, 2 Sep 2011 21:34:39 +0000"  >&lt;p&gt;After further discussion with Greg, we realized that this is the correct behavior when not using &quot;unique:true&quot; to the shardCollection command.  If you use &quot;unique:true&quot; to try to enforce that the shard key be unique, however, then the command should fail if there isn&apos;t a usable unique index for the shard key.&lt;/p&gt;</comment>
                            <comment id="52316" author="auto" created="Fri, 2 Sep 2011 21:32:43 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;stbrody&apos;, u&apos;name&apos;: u&apos;Spencer T Brody&apos;, u&apos;email&apos;: u&apos;spencer@10gen.com&apos;}
&lt;p&gt;Message: Update test to reflect desired behavior. &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3718&quot; title=&quot;Trying to shard a collection succeeds even without a unique index&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3718&quot;&gt;&lt;del&gt;SERVER-3718&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/fcf97ff30ec7113e3f2a7669ba17e8df46841a40&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/fcf97ff30ec7113e3f2a7669ba17e8df46841a40&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="51360" author="auto" created="Tue, 30 Aug 2011 00:19:07 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;stbrody&apos;, u&apos;name&apos;: u&apos;Spencer T Brody&apos;, u&apos;email&apos;: u&apos;spencer@10gen.com&apos;}
&lt;p&gt;Message: Add more tests for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2326&quot; title=&quot;&amp;quot;unique: true&amp;quot; in shardcollection command does not check that the index used has been created as unique&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2326&quot;&gt;&lt;del&gt;SERVER-2326&lt;/del&gt;&lt;/a&gt; &amp;amp; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3718&quot; title=&quot;Trying to shard a collection succeeds even without a unique index&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3718&quot;&gt;&lt;del&gt;SERVER-3718&lt;/del&gt;&lt;/a&gt;.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/ad830c9c07b7e99187719ae8d099835fb684d0a4&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/ad830c9c07b7e99187719ae8d099835fb684d0a4&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="51354" author="auto" created="Mon, 29 Aug 2011 23:53:07 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;stbrody&apos;, u&apos;name&apos;: u&apos;Spencer T Brody&apos;, u&apos;email&apos;: u&apos;spencer@10gen.com&apos;}
&lt;p&gt;Message: Fix sharding index creation tests. Now can catch &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-3718&quot; title=&quot;Trying to shard a collection succeeds even without a unique index&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-3718&quot;&gt;&lt;del&gt;SERVER-3718&lt;/del&gt;&lt;/a&gt;.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/ae3201b73d06f139912aca4573994f1ed0c68d7b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/ae3201b73d06f139912aca4573994f1ed0c68d7b&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                                        </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 29 Aug 2011 23:53:07 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 years, 20 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </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>spencer@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrosbj:</customfieldvalue>

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

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

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