<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:58:38 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-1983] Bad sort spec causes assertion failure</title>
                <link>https://jira.mongodb.org/browse/SERVER-1983</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;&amp;gt; db.aviga.find({}).sort(&quot;_id&quot;).explain()&lt;br/&gt;
Wed Oct 20 19:33:35 uncaught exception: error: &lt;/p&gt;
{ &quot;$err&quot; : &quot;assertion db/query.h:262&quot; }
&lt;p&gt;&amp;gt; db.aviga.find({}).sort(&quot;_id&quot;)          &lt;br/&gt;
error: &lt;/p&gt;
{ &quot;$err&quot; : &quot;assertion db/query.h:262&quot; }

&lt;p&gt;If I use sort(&lt;/p&gt;
{&quot;_id&quot;: 1}
&lt;p&gt;) then it works fine.&lt;/p&gt;


&lt;p&gt;Wed Oct 20 19:33:35 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn11&amp;#93;&lt;/span&gt;   Assertion failure 0 db/query.h 262&lt;br/&gt;
0x534771 0x54134f 0x610ae3 0x5ffce0 0x70547a 0x708ab6 0x8235ef 0x837460 0x7eff5d617971 0x7eff5cbd491d &lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo12sayDbContextEPKc+0xb1) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x534771&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo8assertedEPKcS1_j+0x10f) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x54134f&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo11ParsedQuery8_initTopERKNS_7BSONObjE+0x573) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x610ae3&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(&lt;em&gt;ZN5mongo8runQueryERNS_7MessageERNS_12QueryMessageERNS_5CurOpES1&lt;/em&gt;+0x1670) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5ffce0&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x70547a&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_8SockAddrE+0x14d6) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x708ab6&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo10connThreadEPNS_13MessagingPortE+0x30f) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x8235ef&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(thread_proxy+0x80) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x837460&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/libpthread.so.0(+0x7971) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7eff5d617971&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/libc.so.6(clone+0x6d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7eff5cbd491d&amp;#93;&lt;/span&gt;&lt;br/&gt;
Wed Oct 20 19:33:35 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn11&amp;#93;&lt;/span&gt; assertion 0 assertion db/query.h:262 ns:thumbplay.aviga query:{ query: {}, orderby: &quot;_id&quot;, $explain: true }&lt;br/&gt;
Wed Oct 20 19:34:07 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn11&amp;#93;&lt;/span&gt;   Assertion failure 0 db/query.h 262&lt;br/&gt;
0x534771 0x54134f 0x610ae3 0x5ffce0 0x70547a 0x708ab6 0x8235ef 0x837460 0x7eff5d617971 0x7eff5cbd491d &lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo12sayDbContextEPKc+0xb1) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x534771&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo8assertedEPKcS1_j+0x10f) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x54134f&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo11ParsedQuery8_initTopERKNS_7BSONObjE+0x573) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x610ae3&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(&lt;em&gt;ZN5mongo8runQueryERNS_7MessageERNS_12QueryMessageERNS_5CurOpES1&lt;/em&gt;+0x1670) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5ffce0&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod() &lt;span class=&quot;error&quot;&gt;&amp;#91;0x70547a&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_8SockAddrE+0x14d6) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x708ab6&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(_ZN5mongo10connThreadEPNS_13MessagingPortE+0x30f) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x8235ef&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongod(thread_proxy+0x80) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x837460&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/libpthread.so.0(+0x7971) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7eff5d617971&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/libc.so.6(clone+0x6d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7eff5cbd491d&amp;#93;&lt;/span&gt;&lt;br/&gt;
Wed Oct 20 19:34:07 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn11&amp;#93;&lt;/span&gt; assertion 0 assertion db/query.h:262 ns:thumbplay.aviga query:{ query: {}, orderby: &quot;_id&quot; }&lt;/p&gt;</description>
                <environment>10gen official on 64 bit Ubuntu 10.10</environment>
        <key id="13445">SERVER-1983</key>
            <summary>Bad sort spec causes assertion failure</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="mathias@mongodb.com">Mathias Stearn</assignee>
                                    <reporter username="rogerbinns">Roger Binns</reporter>
                        <labels>
                    </labels>
                <created>Thu, 21 Oct 2010 02:40:38 +0000</created>
                <updated>Tue, 12 Jul 2016 00:18:13 +0000</updated>
                            <resolved>Fri, 5 Nov 2010 20:28:14 +0000</resolved>
                                    <version>1.6.3</version>
                                    <fixVersion>1.7.3</fixVersion>
                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="20077" author="redbeard0531" created="Fri, 5 Nov 2010 20:28:14 +0000"  >&lt;p&gt;converted to user assert and gave useful error message:&lt;/p&gt;


&lt;p&gt;&amp;gt; db.foo.find().sort(&quot;_id&quot;)&lt;br/&gt;
error: &lt;/p&gt;
{ &quot;$err&quot; : &quot;sort must be an object or array&quot;, &quot;code&quot; : 13513 }</comment>
                            <comment id="20076" author="auto" created="Fri, 5 Nov 2010 20:27:38 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;RedBeard0531&apos;, &apos;name&apos;: &apos;Mathias Stearn&apos;, &apos;email&apos;: &apos;mathias@10gen.com&apos;}
&lt;p&gt;Message: Better error message &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-1983&quot; title=&quot;Bad sort spec causes assertion failure&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-1983&quot;&gt;&lt;del&gt;SERVER-1983&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
/mongodb/mongo/commit/b6ae12f022df4828a9fc072fcc654c01c302d5c0&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 5 Nov 2010 20:27:38 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 15 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>false</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>
                            13 years, 15 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>auto</customfieldvalue>
            <customfieldvalue>mathias@mongodb.com</customfieldvalue>
            <customfieldvalue>rogerbinns</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpcpj:</customfieldvalue>

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

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

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