<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:59:32 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-2296] $OR queries with large numbers of attributes values cause memory allocation error and server shutdown</title>
                <link>https://jira.mongodb.org/browse/SERVER-2296</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Running an $OR query with a large number of attributes queried, like the one below, cause a c++ error  &apos; Uncaught std::exception: bad allocation, terminating&apos;.  I have seen this error with as few as 15 and as many as 300 queried $OR attributes.   This is using the 10GEN c# driver to create the query.  Below is the output from the mongod log.  In some cases the last thing logged on the connection will be &apos;running multiple plans&apos;, but not in all cases.  In the case below this is the exact output from the server with nothing filtered.&lt;/p&gt;

&lt;p&gt;Mon Dec 27 19:14:52 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; run command BtSearchCache.$cmd { count: &quot;Board_12&quot;, query: { g: &lt;/p&gt;
{ $lte: 200000 }
&lt;p&gt;, RN: &lt;/p&gt;
{ $ne: 1 }
&lt;p&gt;, CL: &lt;/p&gt;
{ $ne: 1 }
&lt;p&gt;, $or: [ &lt;/p&gt;
{ c: &quot;2362&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2343&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2333&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2388&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2302&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2353&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;1561&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2312&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2280&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;1438&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2255&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2254&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;1435&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;1407&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2262&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;1356&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2326&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2278&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2275&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2351&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2417&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;1484&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2266&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;41397&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2299&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2334&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;1276&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;41396&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2354&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2235&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2233&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;1363&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2425&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2376&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2366&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2258&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;1453&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;1475&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2358&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;1434&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;1476&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2345&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;1402&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2405&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2315&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2323&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2399&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2301&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;1334&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;1416&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2328&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2270&quot; }
&lt;p&gt;, &lt;/p&gt;
{ c: &quot;2352&quot; }
&lt;p&gt; ] } }&lt;br/&gt;
Mon Dec 27 19:15:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt;   Uncaught std::exception: bad allocation, terminating&lt;br/&gt;
Mon Dec 27 19:15:08 dbexit: &lt;br/&gt;
Mon Dec 27 19:15:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; shutdown: going to close listening sockets...&lt;br/&gt;
Mon Dec 27 19:15:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; closing listening socket: 224&lt;br/&gt;
Mon Dec 27 19:15:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; closing listening socket: 228&lt;br/&gt;
Mon Dec 27 19:15:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; closing listening socket: 240&lt;br/&gt;
Mon Dec 27 19:15:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; closing listening socket: 244&lt;br/&gt;
Mon Dec 27 19:15:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; shutdown: going to flush oplog...&lt;br/&gt;
Mon Dec 27 19:15:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; shutdown: going to close sockets...&lt;br/&gt;
Mon Dec 27 19:15:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; shutdown: waiting for fs preallocator...&lt;br/&gt;
Mon Dec 27 19:15:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn2&amp;#93;&lt;/span&gt; shutdown: closing all files...&lt;br/&gt;
Mon Dec 27 19:15:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn4&amp;#93;&lt;/span&gt; MessagingPort recv() errno:10053 An established connection was aborted by the software in your host machine. 192.168.100.187:62638&lt;br/&gt;
Mon Dec 27 19:15:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn4&amp;#93;&lt;/span&gt; SocketException: 9001 socket exception&lt;br/&gt;
Mon Dec 27 19:15:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn4&amp;#93;&lt;/span&gt; end connection 192.168.100.187:62638&lt;br/&gt;
Mon Dec 27 19:15:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn3&amp;#93;&lt;/span&gt; MessagingPort recv() errno:10053 An established connection was aborted by the software in your host machine. 192.168.100.187:62627&lt;br/&gt;
Mon Dec 27 19:15:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn3&amp;#93;&lt;/span&gt; SocketException: 9001 socket exception&lt;br/&gt;
Mon Dec 27 19:15:08 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn3&amp;#93;&lt;/span&gt; end connection 192.168.100.187:62627&lt;br/&gt;
Mon Dec 27 19:15:08     closeAllFiles() finished&lt;/p&gt;</description>
                <environment>Windows Server 2008 64</environment>
        <key id="14096">SERVER-2296</key>
            <summary>$OR queries with large numbers of attributes values cause memory allocation error and server shutdown</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="aaron">Aaron Staple</assignee>
                                    <reporter username="tdemille">Thomas DeMille</reporter>
                        <labels>
                    </labels>
                <created>Tue, 28 Dec 2010 16:17:44 +0000</created>
                <updated>Fri, 30 Mar 2012 14:24:32 +0000</updated>
                            <resolved>Tue, 28 Dec 2010 18:30:28 +0000</resolved>
                                    <version>1.6.5</version>
                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="21879" author="aaron" created="Tue, 28 Dec 2010 18:30:28 +0000"  >&lt;p&gt;I think this is &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2298&quot; title=&quot;$or query with many clauses results in memory allocation failure and crash&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2298&quot;&gt;&lt;del&gt;SERVER-2298&lt;/del&gt;&lt;/a&gt;, fixed in 1.7.&lt;/p&gt;

&lt;p&gt;It looks like your query can be written using the $in operator to avoid this issue in 1.6.&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>1.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 28 Dec 2010 18:30:28 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            13 years, 8 weeks, 1 day 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="10022"><![CDATA[Windows]]></customfieldvalue>

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

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

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

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