<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:01:04 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-2746] Geo-indexing + Max fails when max is very large</title>
                <link>https://jira.mongodb.org/browse/SERVER-2746</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;To repro run the following commands against an empty db.&lt;/p&gt;

&lt;p&gt;&amp;gt; db.tri.ensureIndex(&lt;/p&gt;
{ c: &apos;2d&apos;, t: 1 }
&lt;p&gt;, &lt;/p&gt;
{ min: 0, max: Math.pow(2, 40) }
&lt;p&gt;)&lt;br/&gt;
&amp;gt; db.tri.insert(&lt;/p&gt;
{ c : [1,1], t : 1}
&lt;p&gt;)&lt;br/&gt;
point not in range&lt;br/&gt;
&amp;gt; db.system.indexes.find()&lt;br/&gt;
{ &quot;name&quot; : &quot;&lt;em&gt;id&lt;/em&gt;&quot;, &quot;ns&quot; : &quot;localhost.tri&quot;, &quot;key&quot; : &lt;/p&gt;
{ &quot;_id&quot; : 1 }
&lt;p&gt;, &quot;v&quot; : 0 }&lt;br/&gt;
{ &quot;_id&quot; : ObjectId(&quot;4d796ffa3996d83589c67397&quot;), &quot;ns&quot; : &quot;localhost.tri&quot;, &quot;key&quot; : &lt;/p&gt;
{ &quot;c&quot; : &quot;2d&quot;, &quot;t&quot; : 1 }
&lt;p&gt;, &quot;name&quot; : &quot;c__t_1&quot;, &quot;min&quot; : 0, &quot;max&quot; : 1099511627776 }&lt;/p&gt;

&lt;p&gt;So we&apos;re creating a Geo index with a very large max. It&apos;s obviously not &lt;em&gt;too&lt;/em&gt; large as the index correctly saves / displays the number. However, when we insert data, that index throws the &quot;point not in range&quot; error.&lt;/p&gt;

&lt;p&gt;Math.pow(2,30) =&amp;gt; works correctly&lt;br/&gt;
Math.pow(2,31) =&amp;gt; breaks&lt;/p&gt;

&lt;p&gt;(integer vs numberlong issue?)&lt;/p&gt;</description>
                <environment>Ubuntu and Windows</environment>
        <key id="15095">SERVER-2746</key>
            <summary>Geo-indexing + Max fails when max is very large</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="greg_10gen">Greg Studer</assignee>
                                    <reporter username="gatesvp">Gaetan Voyer-Perrault</reporter>
                        <labels>
                    </labels>
                <created>Fri, 11 Mar 2011 22:29:51 +0000</created>
                <updated>Tue, 12 Jul 2016 00:18:13 +0000</updated>
                            <resolved>Tue, 15 Mar 2011 15:25:44 +0000</resolved>
                                    <version>1.8.0-rc2</version>
                                    <fixVersion>1.9.0</fixVersion>
                                                        <votes>1</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="25865" author="greg_10gen" created="Mon, 14 Mar 2011 17:03:42 +0000"  >&lt;p&gt;Updated to disallow index creation with very large/small bounds, higher-precision 2d indexing would be a new feature.&lt;/p&gt;</comment>
                            <comment id="25863" author="auto" created="Mon, 14 Mar 2011 16:58:41 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;gregstuder&apos;, u&apos;name&apos;: u&apos;gregs&apos;, u&apos;email&apos;: u&apos;greg@10gen.com&apos;}
&lt;p&gt;Message: Changes for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2746&quot; title=&quot;Geo-indexing + Max fails when max is very large&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2746&quot;&gt;&lt;del&gt;SERVER-2746&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/f027a8dbc746412ea4b45a3a6563d4f591059b06&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/f027a8dbc746412ea4b45a3a6563d4f591059b06&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="25862" author="auto" created="Mon, 14 Mar 2011 16:58:40 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;login&apos;: u&apos;gregstuder&apos;, u&apos;name&apos;: u&apos;gregs&apos;, u&apos;email&apos;: u&apos;greg@10gen.com&apos;}
&lt;p&gt;Message: New test for &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2746&quot; title=&quot;Geo-indexing + Max fails when max is very large&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2746&quot;&gt;&lt;del&gt;SERVER-2746&lt;/del&gt;&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/4b3f73ee93defb897a2dcea1696776be377544c8&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/4b3f73ee93defb897a2dcea1696776be377544c8&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="25858" author="greg_10gen" created="Mon, 14 Mar 2011 16:48:11 +0000"  >&lt;p&gt;Thanks for the helpful test, you are correct, the issue is that the maximum precision in the 2d indexing is 32 bits, and therefore uses integers for max and min bounds.  The index is actually not storing the large values correctly, they overflow, but the db.system.indexes collection stores the javascript data from the call itself.  &lt;/p&gt;

&lt;p&gt;There should be a more helpful error message provided, however, as it is not at all obvious what&apos;s going on otherwise.    &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>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 14 Mar 2011 16:48:11 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 years, 49 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, 49 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>gatesvp</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|hrp3rj:</customfieldvalue>

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

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

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