<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:01:47 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-2997] limits do not seem to work correctly in shell when count()&apos;ing $near queries</title>
                <link>https://jira.mongodb.org/browse/SERVER-2997</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;find( $near ) queries can be used correctly in the shell when returning results via a cursor, but using count() seems to ignore any limits set, defaulting the $near query to 100 objects.&lt;/p&gt;

&lt;p&gt;To reproduce:&lt;/p&gt;

&lt;p&gt;assert.eq( 200, find( { loc : { $near : &lt;/p&gt;
{ ... }
&lt;p&gt; } } ).limit( 200 ).count() ), where 200 docs should be returned. &lt;/p&gt;

&lt;p&gt;Stack trace on entry to geo code:&lt;br/&gt;
command sent:&lt;br/&gt;
{&lt;br/&gt;
	&quot;count&quot; : &quot;testAllGeo&quot;,&lt;br/&gt;
	&quot;query&quot; : {&lt;br/&gt;
		&quot;locs.loc&quot; : &lt;/p&gt;
{
			&quot;$near&quot; : [
				120.45922357589006,
				-70.7542346790433
			],
			&quot;$maxDistance&quot; : 239.56330362707376
		}
&lt;p&gt;	},&lt;br/&gt;
	&quot;fields&quot; : {&lt;/p&gt;

&lt;p&gt;	},&lt;br/&gt;
	&quot;limit&quot; : 3000&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;0x73d712 0x717da9 0x618645 0x71aaef 0x71ad23 0x71e0e3 0x721a5b 0x722977 0x723366 0x60fc31 0x75ca58 0x75a0c4 0x75a705 0x610088 0x61266d 0x6ec978 0x81a784 0x595d40 0x7f43f5d11230 0x7f43f642c971 &lt;br/&gt;
 /home/greg/Workspaces/Mongo Workspace/mongo/mongod(_ZNK5mongo9Geo2dType9newCursorERKNS_7BSONObjES3_i+0x52) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x73d712&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/greg/Workspaces/Mongo Workspace/mongo/mongod(_ZNK5mongo9QueryPlan9newCursorERKNS_7DiskLocEi+0x49) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x717da9&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/greg/Workspaces/Mongo Workspace/mongo/mongod(_ZN5mongo7CountOp5_initEv+0x35) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x618645&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/greg/Workspaces/Mongo Workspace/mongo/mongod(_ZN5mongo7QueryOp4initEv+0x11f) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x71aaef&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/greg/Workspaces/Mongo Workspace/mongo/mongod(_ZN5mongo12QueryPlanSet6Runner6initOpERNS_7QueryOpE+0x23) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x71ad23&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/greg/Workspaces/Mongo Workspace/mongo/mongod(_ZN5mongo12QueryPlanSet6Runner3runEv+0x3c3) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x71e0e3&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/greg/Workspaces/Mongo Workspace/mongo/mongod(_ZN5mongo12QueryPlanSet5runOpERNS_7QueryOpE+0x5b) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x721a5b&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/greg/Workspaces/Mongo Workspace/mongo/mongod(_ZN5mongo16MultiPlanScanner9runOpOnceERNS_7QueryOpE+0x537) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x722977&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/greg/Workspaces/Mongo Workspace/mongo/mongod(_ZN5mongo16MultiPlanScanner5runOpERNS_7QueryOpE+0x26) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x723366&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/greg/Workspaces/Mongo Workspace/mongo/mongod(_ZN5mongo8runCountEPKcRKNS_7BSONObjERSs+0x241) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x60fc31&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/greg/Workspaces/Mongo Workspace/mongo/mongod(_ZN5mongo8CmdCount3runERKSsRNS_7BSONObjERSsRNS_14BSONObjBuilderEb+0xc8) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x75ca58&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/greg/Workspaces/Mongo Workspace/mongo/mongod(_ZN5mongo11execCommandEPNS_7CommandERNS_6ClientEiPKcRNS_7BSONObjERNS_14BSONObjBuilderEb+0x894) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x75a0c4&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/greg/Workspaces/Mongo Workspace/mongo/mongod(_ZN5mongo12_runCommandsEPKcRNS_7BSONObjERNS_10BufBuilderERNS_14BSONObjBuilderEbi+0x345) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x75a705&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/greg/Workspaces/Mongo Workspace/mongo/mongod(_ZN5mongo11runCommandsEPKcRNS_7BSONObjERNS_5CurOpERNS_10BufBuilderERNS_14BSONObjBuilderEbi+0x38) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x610088&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/greg/Workspaces/Mongo Workspace/mongo/mongod(&lt;em&gt;ZN5mongo8runQueryERNS_7MessageERNS_12QueryMessageERNS_5CurOpES1&lt;/em&gt;+0x61d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x61266d&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/greg/Workspaces/Mongo Workspace/mongo/mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_11HostAndPortE+0xd58) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6ec978&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/greg/Workspaces/Mongo Workspace/mongo/mongod(_ZN5mongo16MyMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0xd4) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x81a784&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /home/greg/Workspaces/Mongo Workspace/mongo/mongod(_ZN5mongo3pms9threadRunEPNS_13MessagingPortE+0x480) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x595d40&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/lib/libboost_thread.so.1.42.0(thread_proxy+0x60) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f43f5d11230&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/libpthread.so.0(+0x7971) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f43f642c971&amp;#93;&lt;/span&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="16331">SERVER-2997</key>
            <summary>limits do not seem to work correctly in shell when count()&apos;ing $near queries</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="backlog-server-query">Backlog - Query Team</assignee>
                                    <reporter username="greg_10gen">Greg Studer</reporter>
                        <labels>
                    </labels>
                <created>Mon, 25 Apr 2011 21:18:42 +0000</created>
                <updated>Tue, 6 Dec 2022 05:44:07 +0000</updated>
                            <resolved>Wed, 15 Mar 2017 19:27:18 +0000</resolved>
                                    <version>1.9.1</version>
                                                    <component>Geo</component>
                                        <votes>3</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="1525076" author="david.storch" created="Wed, 15 Mar 2017 19:27:18 +0000"  >&lt;p&gt;This issue no longer reproduces against a recent build of the master branch. I&apos;m resolving as Gone Away. I believe, but have not confirmed, that this was fixed under &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-14515&quot; title=&quot;Remove default limit from geoNear operations&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-14515&quot;&gt;&lt;del&gt;SERVER-14515&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="39587" author="greg_10gen" created="Tue, 28 Jun 2011 20:57:47 +0000"  >&lt;p&gt;Check at same time&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="11657">SERVER-856</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="32434">SERVER-5236</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="146301">SERVER-14515</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25143"><![CDATA[Query]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 15 Mar 2017 19:27:18 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 48 weeks 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>backlog-server-query</customfieldvalue>
            <customfieldvalue>david.storch@mongodb.com</customfieldvalue>
            <customfieldvalue>greg_10gen</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrp0wv:</customfieldvalue>

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

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

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