<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:55:45 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-994] Geospatial Bounding box query giving point not in range error</title>
                <link>https://jira.mongodb.org/browse/SERVER-994</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I ran across the case where the bounding box query would sometimes give me a &quot;point not in range&quot; error with no discernible reason that I can find. You can recreate the issue with the following:&lt;/p&gt;

&lt;p&gt;db.foo.insert({ point : &lt;/p&gt;
{ x : -15000000, y : 10000000 }
&lt;p&gt; })&lt;br/&gt;
db.foo.ensureIndex( &lt;/p&gt;
{ point : &quot;2d&quot; }
&lt;p&gt; , &lt;/p&gt;
{ min : -21000000 , max : 21000000 }
&lt;p&gt; )&lt;br/&gt;
db.foo.find({point: {&quot;$within&quot;: &lt;/p&gt;
{&quot;$box&quot;: [[-20000000, 7000000], [0, 15000000]]}
&lt;p&gt; } })&lt;/p&gt;

&lt;p&gt;The console shows:&lt;br/&gt;
error: &lt;/p&gt;
{ &quot;$err&quot; : &quot;point not in range&quot; }

&lt;p&gt;The mongod log shows:&lt;br/&gt;
Sun Apr 11 00:50:35 User Exception 13027:point not in range&lt;br/&gt;
Sun Apr 11 00:50:35 Assertion: 10362:point not in range&lt;br/&gt;
0x505bb4 0x56219c 0x5fa2da 0x5feb2f 0x6a9a72 0x6bbde0 0x7f372ecb03ba 0x7f372e272fcd&lt;br/&gt;
 bin/mongod(_ZN5mongo11msgassertedEiPKc+0x204) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x505bb4&amp;#93;&lt;/span&gt;&lt;br/&gt;
 bin/mongod(_ZN5mongo8runQueryERNS_7MessageERNS_12QueryMessageERNS_5CurOpE+0x182c) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x56219c&amp;#93;&lt;/span&gt;&lt;br/&gt;
 bin/mongod &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5fa2da&amp;#93;&lt;/span&gt;&lt;br/&gt;
 bin/mongod(_ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERK11sockaddr_in+0x118f) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x5feb2f&amp;#93;&lt;/span&gt;&lt;br/&gt;
 bin/mongod(_ZN5mongo10connThreadEv+0x242) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6a9a72&amp;#93;&lt;/span&gt;&lt;br/&gt;
 bin/mongod(thread_proxy+0x80) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x6bbde0&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/libpthread.so.0 &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f372ecb03ba&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/libc.so.6(clone+0x6d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f372e272fcd&amp;#93;&lt;/span&gt;&lt;br/&gt;
Sun Apr 11 00:50:35    Caught Assertion in runQuery ns:test.foo massert:point not in range&lt;br/&gt;
Sun Apr 11 00:50:35   ntoskip:0 ntoreturn:0&lt;br/&gt;
Sun Apr 11 00:50:35   query:{ point: { $within: { $box: { 0: &lt;/p&gt;
{ 0: -20000000.0, 1: 7000000.0 }
&lt;p&gt;, 1: &lt;/p&gt;
{ 0: 0.0, 1: 15000000.0 }
&lt;p&gt; } } } }&lt;br/&gt;
Sun Apr 11 00:50:35 query test.foo ntoreturn:0 exception  1ms&lt;/p&gt;

&lt;p&gt;However running the query with a different bounding box like so:&lt;br/&gt;
db.foo.find({point: {&quot;$within&quot;: &lt;/p&gt;
{&quot;$box&quot;: [[-20000000, 0], [0, 15000000]]}
&lt;p&gt; } })&lt;br/&gt;
WIll find the point as expected.&lt;/p&gt;

&lt;p&gt;I&apos;ve run into quite a few of these that act the same way with various bounding boxes and data, any help will be greatly appreciated!&lt;/p&gt;


</description>
                <environment>linux x86-64</environment>
        <key id="11747">SERVER-994</key>
            <summary>Geospatial Bounding box query giving point not in range error</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="richard.kreuter">Richard Kreuter</assignee>
                                    <reporter username="ereptor">Gavin R.</reporter>
                        <labels>
                    </labels>
                <created>Sun, 11 Apr 2010 02:02:18 +0000</created>
                <updated>Tue, 12 Jul 2016 00:29:26 +0000</updated>
                            <resolved>Tue, 11 May 2010 17:13:52 +0000</resolved>
                                    <version>1.4.0</version>
                    <version>1.5.0</version>
                                    <fixVersion>1.5.2</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="38330" author="eliot" created="Mon, 20 Jun 2011 15:41:52 +0000"  >&lt;p&gt;@ken - can you try 1.8.2 and if still occurring there open a new ticket&lt;/p&gt;</comment>
                            <comment id="38326" author="jesterfred" created="Mon, 20 Jun 2011 15:30:04 +0000"  >&lt;p&gt;This is marked as closed.  However, I have another instance where &quot;point not in range occurs&quot; erroneously.&lt;/p&gt;

&lt;p&gt;The geo index is set with a max of 181 and a min of -181 in my collection.&lt;/p&gt;

&lt;p&gt;The following query produces the error:&lt;/p&gt;

&lt;p&gt;{ &quot;Placemark.Point.coordinates&quot; : { &quot;$within&quot; : &lt;/p&gt;
{ &quot;$box&quot; : [ [ 172.3265993445506 , 9.18637494622202] , [ 180.0 , 20.3450110477435]]}
&lt;p&gt;}}&lt;/p&gt;

&lt;p&gt;Both of these points are in range.&lt;/p&gt;

&lt;p&gt;I&apos;m using MongoDB version 1.6.3 running on Ubuntu 11.04 64 bit using latest Java driver.&lt;/p&gt;</comment>
                            <comment id="15841" author="auto" created="Thu, 15 Jul 2010 15:04:51 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;kreuter&apos;, &apos;name&apos;: &apos;Richard Kreuter&apos;, &apos;email&apos;: &apos;richard@10gen.com&apos;}
&lt;p&gt;Message: Use FP error term in a geo bounds check.  &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-994&quot; title=&quot;Geospatial Bounding box query giving point not in range error&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-994&quot;&gt;&lt;del&gt;SERVER-994&lt;/del&gt;&lt;/a&gt; strikes back (on x86).&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/0b89d09b4fb90004c7851f44239bb33efdf32737&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/0b89d09b4fb90004c7851f44239bb33efdf32737&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="14190" author="richard@10gen.com" created="Tue, 11 May 2010 17:13:52 +0000"  >&lt;p&gt;I think the bug here is fixed.&lt;/p&gt;</comment>
                            <comment id="14189" author="auto" created="Tue, 11 May 2010 17:13:20 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;kreuter&apos;, &apos;name&apos;: &apos;Richard Kreuter&apos;, &apos;email&apos;: &apos;richard@10gen.com&apos;}
&lt;p&gt;Message: Characterize and add tests for the flaw in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-994&quot; title=&quot;Geospatial Bounding box query giving point not in range error&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-994&quot;&gt;&lt;del&gt;SERVER-994&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/b0fa349d2eb222af8bd4aee8222128264e79b074&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/b0fa349d2eb222af8bd4aee8222128264e79b074&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="14179" author="auto" created="Tue, 11 May 2010 15:11:33 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;kreuter&apos;, &apos;name&apos;: &apos;Richard Kreuter&apos;, &apos;email&apos;: &apos;richard@10gen.com&apos;}
&lt;p&gt;Message: Fix test file for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-994&quot; title=&quot;Geospatial Bounding box query giving point not in range error&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-994&quot;&gt;&lt;del&gt;SERVER-994&lt;/del&gt;&lt;/a&gt;.&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/bf780fbbfff29af8030aa56ca19f41d20995f08c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/bf780fbbfff29af8030aa56ca19f41d20995f08c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="14174" author="auto" created="Tue, 11 May 2010 13:54:47 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;kreuter&apos;, &apos;name&apos;: &apos;Richard Kreuter&apos;, &apos;email&apos;: &apos;richard@10gen.com&apos;}
&lt;p&gt;Message: Squashed commit of the following:&lt;/p&gt;

&lt;p&gt;commit b639096a76de87adaf0e62e28e29b1155ba944a9&lt;br/&gt;
Author: Richard Kreuter &amp;lt;richard@10gen.com&amp;gt;&lt;br/&gt;
Date:   Tue May 11 13:53:26 2010 -0400&lt;/p&gt;

&lt;p&gt;    Replace sizeDiag calls w/sizeEdge; add a test. &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-994&quot; title=&quot;Geospatial Bounding box query giving point not in range error&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-994&quot;&gt;&lt;del&gt;SERVER-994&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;commit 75b0a08c96bfd6e1a7e7a6d002dd2391d0433575&lt;br/&gt;
Author: Richard Kreuter &amp;lt;richard@10gen.com&amp;gt;&lt;br/&gt;
Date:   Fri May 7 16:29:48 2010 -0400&lt;/p&gt;

&lt;p&gt;    Rename mongo::Geo2dType::size() to ::sizeDiag(); add a sizeEdge(). &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-994&quot; title=&quot;Geospatial Bounding box query giving point not in range error&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-994&quot;&gt;&lt;del&gt;SERVER-994&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/6845ac00e7fd391157b2c4efb14371d26de5f105&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/6845ac00e7fd391157b2c4efb14371d26de5f105&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="14173" author="auto" created="Tue, 11 May 2010 13:54:46 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;login&apos;: &apos;kreuter&apos;, &apos;name&apos;: &apos;Richard Kreuter&apos;, &apos;email&apos;: &apos;richard@10gen.com&apos;}
&lt;p&gt;Message: Squashed commit of the following:&lt;/p&gt;

&lt;p&gt;commit b639096a76de87adaf0e62e28e29b1155ba944a9&lt;br/&gt;
Author: Richard Kreuter &amp;lt;richard@10gen.com&amp;gt;&lt;br/&gt;
Date:   Tue May 11 13:53:26 2010 -0400&lt;/p&gt;

&lt;p&gt;    Replace sizeDiag calls w/sizeEdge; add a test. &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-994&quot; title=&quot;Geospatial Bounding box query giving point not in range error&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-994&quot;&gt;&lt;del&gt;SERVER-994&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;commit 75b0a08c96bfd6e1a7e7a6d002dd2391d0433575&lt;br/&gt;
Author: Richard Kreuter &amp;lt;richard@10gen.com&amp;gt;&lt;br/&gt;
Date:   Fri May 7 16:29:48 2010 -0400&lt;/p&gt;

&lt;p&gt;    Rename mongo::Geo2dType::size() to ::sizeDiag(); add a sizeEdge(). &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-994&quot; title=&quot;Geospatial Bounding box query giving point not in range error&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-994&quot;&gt;&lt;del&gt;SERVER-994&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/mongodb/mongo/commit/6845ac00e7fd391157b2c4efb14371d26de5f105&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://github.com/mongodb/mongo/commit/6845ac00e7fd391157b2c4efb14371d26de5f105&lt;/a&gt;&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>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 11 May 2010 13:54:46 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 35 weeks, 2 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, 35 weeks, 2 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_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>auto</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>ereptor</customfieldvalue>
            <customfieldvalue>jesterfred</customfieldvalue>
            <customfieldvalue>richard.kreuter</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrpntj:</customfieldvalue>

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

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

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