<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:05:37 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-4316] Assertion db/query.cpp 727</title>
                <link>https://jira.mongodb.org/browse/SERVER-4316</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;Status&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;db.queue.findOne()&lt;br/&gt;
{&lt;br/&gt;
        &quot;_id&quot; : ObjectId(&quot;4e9a90d9de142a0c5b392XYZ&quot;),&lt;br/&gt;
        &quot;_u&quot; : &quot;xxx-yyy-zzz&quot;,&lt;br/&gt;
        &quot;status&quot; : 1,&lt;br/&gt;
        &quot;update_time&quot; : 1318752472&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;&quot;status&quot; value can be 0, 1, 2&lt;/p&gt;

&lt;p&gt;db.queue.stats()&lt;br/&gt;
{&lt;br/&gt;
        &quot;ns&quot; : &quot;test.queue&quot;,&lt;br/&gt;
        &quot;count&quot; : 153794,&lt;br/&gt;
        &quot;size&quot; : 22760436,&lt;br/&gt;
        &quot;avgObjSize&quot; : 147.99300362822996,&lt;br/&gt;
        &quot;storageSize&quot; : 33327616,&lt;br/&gt;
        &quot;numExtents&quot; : 8,&lt;br/&gt;
        &quot;nindexes&quot; : 3,&lt;br/&gt;
        &quot;lastExtentSize&quot; : 12079360,&lt;br/&gt;
        &quot;paddingFactor&quot; : 1,&lt;br/&gt;
        &quot;flags&quot; : 1,&lt;br/&gt;
        &quot;totalIndexSize&quot; : 26050560,&lt;br/&gt;
        &quot;indexSizes&quot; : &lt;/p&gt;
{
                &quot;_id_&quot; : 6406144,
                &quot;_u_1&quot; : 14622720,
                &quot;update_time_1&quot; : 5021696
        }
&lt;p&gt;,&lt;br/&gt;
        &quot;ok&quot; : 1&lt;br/&gt;
}&lt;/p&gt;


&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;Issues&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;When executing the find() command with 2 conditions like belowing&lt;/p&gt;

&lt;p&gt;db.queue.find({&quot;_id&quot;:{$gt:ObjectId(&quot;000000000000000000000000&quot;)}, &quot;status&quot;:{$gt:2}})&lt;/p&gt;

&lt;p&gt;The following error message has occurred,&lt;/p&gt;

&lt;p&gt;&amp;gt;&amp;gt; error: &lt;/p&gt;
{ &quot;$err&quot; : &quot;assertion db/query.cpp:727&quot; }

&lt;p&gt;However, when the filtering value for the second condition is in the range of &quot;status&quot; &lt;span class=&quot;error&quot;&gt;&amp;#91;0,1,2&amp;#93;&lt;/span&gt;, &lt;br/&gt;
like this, &quot;status&quot;:{$gt:0}, it runs well.&lt;/p&gt;

&lt;p&gt;Notice that, &quot;status&quot; is not indexed and has only three integer value of 0, 1 or 2.&lt;br/&gt;
Moreover, the number of document needs to be large enough, in my case it is about 153794 documents.&lt;/p&gt;


&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;Detail&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;For your information, I think the problem lies in shared pointer _c in db/query.cpp.&lt;/p&gt;

&lt;p&gt;OK&lt;br/&gt;
db.queue.find({&quot;_id&quot;:{$gt:ObjectId(&quot;000000000000000000000000&quot;)}, &quot;status&quot;:{$gt:0}})&lt;br/&gt;
db.queue.find({&quot;_id&quot;:{$gt:ObjectId(&quot;000000000000000000000000&quot;)}, &quot;status&quot;:{$gt:1}})&lt;/p&gt;

&lt;p&gt;&amp;gt;&amp;gt; error: &lt;/p&gt;
{ &quot;$err&quot; : &quot;assertion db/query.cpp:727&quot; }
&lt;p&gt;db.queue.find({&quot;_id&quot;:{$gt:ObjectId(&quot;000000000000000000000000&quot;)}, &quot;status&quot;:{$gt:2}})&lt;br/&gt;
db.queue.find({&quot;_id&quot;:{$gt:ObjectId(&quot;000000000000000000000000&quot;)}, &quot;status&quot;:{$gt:3}})&lt;/p&gt;

&lt;p&gt;OK&lt;br/&gt;
db.queue.find({&quot;_id&quot;:{$gt:ObjectId(&quot;000000000000000000000000&quot;)}, &quot;status&quot;:{$lt:2}})&lt;/p&gt;

&lt;p&gt;&amp;gt;&amp;gt; error: &lt;/p&gt;
{ &quot;$err&quot; : &quot;assertion db/query.cpp:727&quot; }
&lt;p&gt;db.queue.find({&quot;_id&quot;:{$gt:ObjectId(&quot;000000000000000000000000&quot;)}, &quot;status&quot;:{$lt:0}})&lt;br/&gt;
db.queue.find({&quot;_id&quot;:{$gt:ObjectId(&quot;000000000000000000000000&quot;)}, &quot;status&quot;:{$lt:1}})&lt;/p&gt;</description>
                <environment>Linux version 2.6.18-194.11.1.el5xen (&lt;a href=&apos;mailto:mockbuild@builder10.centos.org&apos;&gt;mockbuild@builder10.centos.org&lt;/a&gt;) (gcc version 4.1.2 20080704 (Red Hat 4.1.2-48))&lt;br/&gt;
&lt;br/&gt;
processor       : 0,1,2&lt;br/&gt;
vendor_id       : GenuineIntel&lt;br/&gt;
cpu family      : 6&lt;br/&gt;
model           : 44&lt;br/&gt;
model name      : Intel(R) Xeon(R) CPU           X5650  @ 2.67GHz&lt;br/&gt;
stepping        : 2&lt;br/&gt;
cpu MHz         : 2659.998&lt;br/&gt;
cache size      : 12288 KB&lt;br/&gt;
&lt;br/&gt;
MemTotal:      3145728 kB&lt;br/&gt;
</environment>
        <key id="25083">SERVER-4316</key>
            <summary>Assertion db/query.cpp 727</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="-1">Unassigned</assignee>
                                    <reporter username="vnjp22">Nguyen Minh Hai</reporter>
                        <labels>
                    </labels>
                <created>Fri, 18 Nov 2011 02:08:08 +0000</created>
                <updated>Mon, 11 Jul 2016 18:34:32 +0000</updated>
                            <resolved>Fri, 18 Nov 2011 06:34:39 +0000</resolved>
                                    <version>1.8.0-rc0</version>
                                                    <component>Querying</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="67564" author="vnjp22" created="Fri, 18 Nov 2011 10:02:49 +0000"  >&lt;p&gt;Thanks Eliot!&lt;/p&gt;

&lt;p&gt;We will upgrade to 2.0.1 as soon as possible.&lt;/p&gt;</comment>
                            <comment id="67549" author="eliot" created="Fri, 18 Nov 2011 06:34:39 +0000"  >&lt;p&gt;this was fixed quite a while ago.&lt;/p&gt;

&lt;p&gt;you should definitely not be using 1.8.0-rc0 as it was a pre release of 1.8.0.&lt;/p&gt;

&lt;p&gt;You should upgrade to 1.8.4 or 2.0.1&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, 18 Nov 2011 06:34:39 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 13 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>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, 13 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="10020"><![CDATA[Linux]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>vnjp22</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrol9b:</customfieldvalue>

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

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

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