<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:22:43 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-10262] mongos assertion triggers &quot;Assertion: 16634:field names of bound { yearMonthDay: MinKey } do not match those of keyPattern { _id: 1.0 }&quot;</title>
                <link>https://jira.mongodb.org/browse/SERVER-10262</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I&apos;m playing with shard tagging.  I&apos;m pretty sure I did something incorrectly, but the shell gave no error and I don&apos;t think I should be able to make mongos trigger an assertion by misconfiguring something using shell commands.  Here&apos;s the details:&lt;/p&gt;

&lt;p&gt;Assertion: 16634:field names of bound &lt;/p&gt;
{ yearMonthDay: MinKey }
&lt;p&gt; do not match those of keyPattern &lt;/p&gt;
{ _id: 1.0 }

&lt;p&gt;&amp;gt; sh.status()&lt;br/&gt;
Fri Jul 19 11:33:29.390 trying reconnect to 127.0.0.1:27017&lt;br/&gt;
Fri Jul 19 11:33:29.390 reconnect 127.0.0.1:27017 ok&lt;br/&gt;
&amp;#8212; Sharding Status &amp;#8212;&lt;br/&gt;
  sharding version: {&lt;br/&gt;
	&quot;_id&quot; : 1,&lt;br/&gt;
	&quot;version&quot; : 3,&lt;br/&gt;
	&quot;minCompatibleVersion&quot; : 3,&lt;br/&gt;
	&quot;currentVersion&quot; : 4,&lt;br/&gt;
	&quot;clusterId&quot; : ObjectId(&quot;51e863e9a9dbd997b14cf9b6&quot;)&lt;br/&gt;
}&lt;br/&gt;
  shards:&lt;/p&gt;
	{  &quot;_id&quot; : &quot;fast1&quot;,  &quot;host&quot; : &quot;fast1/localhost:37017,localhost:37018,localhost:37019&quot;,  &quot;tags&quot; : [ 	&quot;fast&quot; ] }
	{  &quot;_id&quot; : &quot;fast2&quot;,  &quot;host&quot; : &quot;fast2/localhost:37020,localhost:37021,localhost:37022&quot;,  &quot;tags&quot; : [ 	&quot;fast&quot; ] }
	{  &quot;_id&quot; : &quot;slow1&quot;,  &quot;host&quot; : &quot;slow1/localhost:47017,localhost:47018,localhost:47019&quot;,  &quot;tags&quot; : [ 	&quot;slow&quot; ] }
	{  &quot;_id&quot; : &quot;slow2&quot;,  &quot;host&quot; : &quot;slow2/localhost:47020,localhost:47021,localhost:47022&quot;,  &quot;tags&quot; : [ 	&quot;slow&quot; ] }
&lt;p&gt;  databases:&lt;/p&gt;
	{  &quot;_id&quot; : &quot;admin&quot;,  &quot;partitioned&quot; : false,  &quot;primary&quot; : &quot;config&quot; }
	{  &quot;_id&quot; : &quot;uhg&quot;,  &quot;partitioned&quot; : true,  &quot;primary&quot; : &quot;fast1&quot; }
&lt;p&gt;		uhg.claims&lt;br/&gt;
			shard key: &lt;/p&gt;
{ &quot;_id&quot; : 1 }
&lt;p&gt;			chunks:&lt;br/&gt;
				fast1	1&lt;br/&gt;
			{ &quot;_id&quot; : &lt;/p&gt;
{ &quot;$minKey&quot; : 1 }
&lt;p&gt; } --&amp;gt;&amp;gt; { &quot;_id&quot; : &lt;/p&gt;
{ &quot;$maxKey&quot; : 1 }
&lt;p&gt; } on : fast1 &lt;/p&gt;
{ &quot;t&quot; : 1, &quot;i&quot; : 0 }
&lt;p&gt;			 tag: slow  { &quot;yearMonthDay&quot; : &lt;/p&gt;
{ &quot;$minKey&quot; : 1 }
&lt;p&gt; } --&amp;gt;&amp;gt; &lt;/p&gt;
{ &quot;yearMonthDay&quot; : &quot;20110719&quot; }
&lt;p&gt;			 tag: fast  &lt;/p&gt;
{ &quot;yearMonthDay&quot; : &quot;20110720&quot; }
&lt;p&gt; --&amp;gt;&amp;gt; { &quot;yearMonthDay&quot; : &lt;/p&gt;
{ &quot;$maxKey&quot; : 1 }
&lt;p&gt; }&lt;/p&gt;

&lt;p&gt;I&apos;m guessing the bug is &quot;the shell should not have let me do this configuration which resulted in a later assertion triggering&quot;.  Let me know if you need more info.&lt;/p&gt;

&lt;p&gt;Fri Jul 19 11:41:56.161 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; Assertion: 16634:field names of bound &lt;/p&gt;
{ yearMonthDay: MinKey }
&lt;p&gt; do not match those of keyPattern &lt;/p&gt;
{ _id: 1.0 }
&lt;p&gt;0x1002a106b 0x10027d71e 0x10027d7dd 0x1000f256e 0x10016216e 0x10015fae6 0x10027edb5 0x10027f4ea 0x10027f5b6 0x10027f676 0x1002d39e5 0x7fff8e2e67a2 0x7fff8e2d31e1&lt;br/&gt;
 0   mongos                              0x00000001002a106b _ZN5mongo15printStackTraceERSo + 43&lt;br/&gt;
 1   mongos                              0x000000010027d71e _ZN5mongo11msgassertedEiPKc + 174&lt;br/&gt;
 2   mongos                              0x000000010027d7dd _ZN5mongo11msgassertedEiRKSs + 29&lt;br/&gt;
 3   mongos                              0x00000001000f256e _ZNK5mongo10KeyPattern16extendRangeBoundERKNS_7BSONObjEb + 1230&lt;br/&gt;
 4   mongos                              0x000000010016216e _ZN5mongo8Balancer15_doBalanceRoundERNS_12DBClientBaseEPSt6vectorIN5boost10shared_ptrINS_11MigrateInfoEEESaIS7_EE + 7872&lt;br/&gt;
 5   mongos                              0x000000010015fae6 _ZN5mongo8Balancer3runEv + 1772&lt;br/&gt;
 6   mongos                              0x000000010027edb5 _ZN5mongo13BackgroundJob7jobBodyEN5boost10shared_ptrINS0_9JobStatusEEE + 653&lt;br/&gt;
 7   mongos                              0x000000010027f4ea &lt;em&gt;ZNK5boost4_mfi3mf1IvN5mongo13BackgroundJobENS_10shared_ptrINS3_9JobStatusEEEEclEPS3_S6&lt;/em&gt; + 68&lt;br/&gt;
 8   mongos                              0x000000010027f5b6 _ZN5boost3_bi5list2INS0_5valueIPN5mongo13BackgroundJobEEENS2_INS_10shared_ptrINS4_9JobStatusEEEEEEclINS_4_mfi3mf1IvS4_S9_EENS0_5list0EEEvNS0_4typeIvEERT_RT0_i + 54&lt;br/&gt;
 9   mongos                              0x000000010027f676 _ZN5boost6detail11thread_dataINS_3_bi6bind_tIvNS_4_mfi3mf1IvN5mongo13BackgroundJobENS_10shared_ptrINS7_9JobStatusEEEEENS2_5list2INS2_5valueIPS7_EENSD_ISA_EEEEEEE3runEv + 42&lt;br/&gt;
 10  mongos                              0x00000001002d39e5 thread_proxy + 229&lt;br/&gt;
 11  libsystem_c.dylib                   0x00007fff8e2e67a2 _pthread_start + 327&lt;br/&gt;
 12  libsystem_c.dylib                   0x00007fff8e2d31e1 thread_start + 13&lt;/p&gt;</description>
                <environment></environment>
        <key id="82887">SERVER-10262</key>
            <summary>mongos assertion triggers &quot;Assertion: 16634:field names of bound { yearMonthDay: MinKey } do not match those of keyPattern { _id: 1.0 }&quot;</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="3">Duplicate</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="ctindel">Chad Tindel</reporter>
                        <labels>
                    </labels>
                <created>Fri, 19 Jul 2013 15:42:39 +0000</created>
                <updated>Fri, 19 Jul 2013 15:52:15 +0000</updated>
                            <resolved>Fri, 19 Jul 2013 15:45:35 +0000</resolved>
                                    <version>2.4.5</version>
                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="384776" author="scotthernandez" created="Fri, 19 Jul 2013 15:45:35 +0000"  >&lt;p&gt;This is the current design but we are planning to address some of this, but the short of it is that validation is currently only done at runtime.&lt;/p&gt;

&lt;p&gt;see &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-6357&quot; title=&quot;Add tag based sharding commands &quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-6357&quot;&gt;&lt;del&gt;SERVER-6357&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="43723">SERVER-6357</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_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 19 Jul 2013 15:45:35 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            10 years, 30 weeks, 5 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>ctindel</customfieldvalue>
            <customfieldvalue>scotthernandez</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmme7:</customfieldvalue>

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

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

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