<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:57:35 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-1629] Geospatial indexing Assertion error</title>
                <link>https://jira.mongodb.org/browse/SERVER-1629</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Server: running on a single local server node (mongod) &lt;/p&gt;

&lt;p&gt;To benchmark the geospatial indexing, I generated a collection containing 9M elements. The element contains randomly generated geo-coordinates (lat/long). &lt;br/&gt;
The collection structure is pretty simple:&lt;br/&gt;
&amp;gt; db.Content.find({},&lt;/p&gt;
{location:1}
&lt;p&gt;).limit(2)&lt;br/&gt;
{ &quot;_id&quot; : ObjectId(&quot;4c64edf60353f7d9181e21aa&quot;), &quot;location&quot; : &lt;/p&gt;
{ &quot;lat&quot; : -38.03453826904297, &quot;lon&quot; : -141.4888458251953, &quot;alt&quot; : 0 }
&lt;p&gt; }&lt;br/&gt;
{ &quot;_id&quot; : ObjectId(&quot;4c64edf60353f7d90f1e21aa&quot;), &quot;location&quot; : &lt;/p&gt;
{ &quot;lat&quot; : -21.978824615478516, &quot;lon&quot; : -151.79954528808594, &quot;alt&quot; : 0 }
&lt;p&gt; }&lt;br/&gt;
&amp;gt; db.Content.find().count()                &lt;br/&gt;
9000000&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;mrs.Content&quot;, &quot;key&quot; : &lt;/p&gt;
{ &quot;_id&quot; : 1 }
&lt;p&gt; }&lt;br/&gt;
&amp;gt; &lt;/p&gt;

&lt;p&gt;The error happens when issuing the indexing command at the shell:&lt;br/&gt;
&amp;gt; db.Content.ensureIndex(&lt;/p&gt;
{location:&quot;2d&quot;}
&lt;p&gt;)&lt;br/&gt;
in &amp;gt; 0&lt;br/&gt;
The log says:&lt;br/&gt;
Fri Aug 13 01:53:21 &lt;span class=&quot;error&quot;&gt;&amp;#91;initandlisten&amp;#93;&lt;/span&gt; connection accepted from 127.0.0.1:54010 #16&lt;br/&gt;
Fri Aug 13 01:53:32 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn16&amp;#93;&lt;/span&gt; building new index on &lt;/p&gt;
{ location: &quot;2d&quot; }
&lt;p&gt; for mrs.Content&lt;br/&gt;
Fri Aug 13 01:53:32 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn16&amp;#93;&lt;/span&gt; Buildindex mrs.Content idxNo:1 { _id: ObjectId(&apos;4c65080cd89977e27aa968f0&apos;), ns: &quot;mrs.Content&quot;, key: &lt;/p&gt;
{ location: &quot;2d&quot; }
&lt;p&gt;, name: &quot;location_&quot; }&lt;br/&gt;
Fri Aug 13 01:54:15 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn16&amp;#93;&lt;/span&gt;  mrs.system.indexes Assertion failure in &amp;gt; 0 db/geo/2d.cpp 199&lt;br/&gt;
Fri Aug 13 01:54:16 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn16&amp;#93;&lt;/span&gt;  Caught Assertion in insert , continuing&lt;br/&gt;
Fri Aug 13 01:54:16 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn16&amp;#93;&lt;/span&gt; insert mrs.system.indexes exception 0 assertion db/geo/2d.cpp:199 43983ms&lt;/p&gt;

</description>
                <environment>Ubuntu X86-64, 2.6.31-16-server</environment>
        <key id="12784">SERVER-1629</key>
            <summary>Geospatial indexing Assertion 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="3">Duplicate</resolution>
                                        <assignee username="greg_10gen">Greg Studer</assignee>
                                    <reporter username="yuyou">Yu You</reporter>
                        <labels>
                    </labels>
                <created>Fri, 13 Aug 2010 09:02:04 +0000</created>
                <updated>Fri, 30 Mar 2012 14:24:29 +0000</updated>
                            <resolved>Tue, 25 Jan 2011 21:13:33 +0000</resolved>
                                    <version>1.6.0</version>
                                                    <component>Index Maintenance</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="22676" author="greg_10gen" created="Tue, 25 Jan 2011 21:13:33 +0000"  >&lt;p&gt;See duplication comment above.&lt;/p&gt;</comment>
                            <comment id="22675" author="greg_10gen" created="Tue, 25 Jan 2011 21:08:42 +0000"  >&lt;p&gt;The default geospatial bounds are -180 to 180, and currently adding points at exactly the boundary limits is unsupported.  The error telling you this isn&apos;t very helpful, however, as seen in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-2388&quot; title=&quot;Cleanup of bounds-handling cases&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-2388&quot;&gt;&lt;del&gt;SERVER-2388&lt;/del&gt;&lt;/a&gt;.  I&apos;m guessing in the first case there is a point in the 6m which is exactly at the minimum boundary or below.&lt;/p&gt;</comment>
                            <comment id="22528" author="aditya_gaur" created="Thu, 20 Jan 2011 10:34:27 +0000"  >&lt;p&gt;I am running on Single server mode : mongod&lt;br/&gt;
I tried for Geospatial indexing and made the following collection:&lt;/p&gt;

&lt;p&gt;&amp;gt; db.locations.find()&lt;br/&gt;
{ &quot;_id&quot; : ObjectId(&quot;4d380966b8250000000068a6&quot;), &quot;name&quot; : &quot;Kundan Bagh&quot;, &quot;coordinates&quot; : &lt;/p&gt;
{ &quot;lat&quot; : 100, &quot;long&quot; : 100 }
&lt;p&gt; }&lt;br/&gt;
{ &quot;_id&quot; : ObjectId(&quot;4d380973b8250000000068a7&quot;), &quot;name&quot; : &quot;Pramati&quot;, &quot;coordinates&quot; : &lt;/p&gt;
{ &quot;lat&quot; : 120, &quot;long&quot; : 100 }
&lt;p&gt; }&lt;br/&gt;
{ &quot;_id&quot; : ObjectId(&quot;4d3809abb8250000000068a8&quot;), &quot;name&quot; : &quot;Hitec&quot;, &quot;coordinates&quot; : &lt;/p&gt;
{ &quot;lat&quot; : 150, &quot;long&quot; : 150 }
&lt;p&gt; }&lt;br/&gt;
{ &quot;_id&quot; : ObjectId(&quot;4d3809c4b8250000000068a9&quot;), &quot;name&quot; : &quot;allahabad&quot;, &quot;coordinates&quot; : &lt;/p&gt;
{ &quot;lat&quot; : -180, &quot;long&quot; : -100 }
&lt;p&gt; }&lt;br/&gt;
{ &quot;_id&quot; : ObjectId(&quot;4d380a12b8250000000068aa&quot;), &quot;name&quot; : &quot;Gandhinagar&quot;, &quot;coordinates&quot; : &lt;/p&gt;
{ &quot;lat&quot; : -100, &quot;long&quot; : -50 }
&lt;p&gt; }&lt;br/&gt;
{ &quot;_id&quot; : ObjectId(&quot;4d380afdb8250000000068ad&quot;), &quot;name&quot; : &quot;Gandhinagar&quot;, &quot;coordinates&quot; : &lt;/p&gt;
{ &quot;lat&quot; : -100, &quot;long&quot; : -500 }
&lt;p&gt; }&lt;/p&gt;

&lt;p&gt;and following was the result when I tried to index the collection:  &lt;br/&gt;
&amp;gt;db.locations.ensureIndex(&lt;/p&gt;
{&quot;coordinates&quot;:&quot;2d&quot;}
&lt;p&gt;)&lt;br/&gt;
in &amp;gt; 0&lt;/p&gt;

&lt;p&gt;The db.system.indexes also does not contain the entry for the created index and following was the log generated:&lt;/p&gt;

&lt;p&gt;Thu Jan 20 15:56:14 building new index on &lt;/p&gt;
{ coordinates: &quot;2d&quot; }
&lt;p&gt; for test.locations&lt;br/&gt;
Thu Jan 20 15:56:14 Buildindex test.locations idxNo:1 { _id: ObjId(4d380dc66a3a000000000abb), ns: &quot;test.locations&quot;, key: &lt;/p&gt;
{ coordinates:
 &quot;2d&quot; }
&lt;p&gt;, name: &quot;coordinates_&quot; }&lt;br/&gt;
Thu Jan 20 15:56:14  test.system.indexes Assertion failure in &amp;gt; 0 db\index_geo2d.cpp 441&lt;br/&gt;
Thu Jan 20 15:56:14 User Exception 10086:ns not found: test.locations.$coordinates_&lt;br/&gt;
Thu Jan 20 15:56:14    Caught Assertion in insert , continuing&lt;br/&gt;
Thu Jan 20 15:56:14 insert test.system.indexes exception assertion db\index_geo2d.cpp:441 46ms&lt;/p&gt;

&lt;p&gt;Has this issue been resolved  yet. If yes, please post the solution.&lt;/p&gt;

</comment>
                            <comment id="20733" author="squanderingtime" created="Fri, 26 Nov 2010 22:03:19 +0000"  >&lt;p&gt;I&apos;m also seeing this on the OS X build for 1.7.3&lt;/p&gt;

&lt;p&gt;Fri Nov 26 16:00:22 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; building new index on &lt;/p&gt;
{ geo: &quot;2d&quot; }
&lt;p&gt; for heater_development.points&lt;br/&gt;
Fri Nov 26 16:00:22 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt;  heater_development.system.indexes Assertion failure in &amp;gt; 0 db/geo/2d.cpp 211&lt;br/&gt;
0x1000717c2 0x10007f92e 0x1002dccad 0x1002e7258 0x1002ea871 0x10010b38e 0x100291d3c 0x100292f20 0x10029560d 0x10029759d 0x1002737b7 0x10027585f 0x1003c83fe 0x1003dd374 0x7fff880f6536 0x7fff880f63e9 &lt;br/&gt;
 0   mongod                              0x00000001000717c2 _ZN5mongo12sayDbContextEPKc + 178&lt;br/&gt;
 1   mongod                              0x000000010007f92e _ZN5mongo8assertedEPKcS1_j + 286&lt;br/&gt;
 2   mongod                              0x00000001002dccad _ZNK5mongo9Geo2dType4hashEdd + 413&lt;br/&gt;
 3   mongod                              0x00000001002e7258 _ZNK5mongo9Geo2dType5_hashERKNS_7BSONObjE + 520&lt;br/&gt;
 4   mongod                              0x00000001002ea871 _ZNK5mongo9Geo2dType7getKeysERKNS_7BSONObjERSt3setIS1_NS_22BSONObjCmpDefaultOrderESaIS1_EE + 785&lt;br/&gt;
 5   mongod                              0x000000010010b38e _ZNK5mongo9IndexSpec7getKeysERKNS_7BSONObjERSt3setIS1_NS_22BSONObjCmpDefaultOrderESaIS1_EE + 62&lt;br/&gt;
 6   mongod                              0x0000000100291d3c _ZN5mongo14fastBuildIndexEPKcPNS_16NamespaceDetailsERNS_12IndexDetailsEi + 1276&lt;br/&gt;
 7   mongod                              0x0000000100292f20 _ZN5mongo12buildAnIndexESsPNS_16NamespaceDetailsERNS_12IndexDetailsEib + 560&lt;br/&gt;
 8   mongod                              0x000000010029560d _ZN5mongo11DataFileMgr6insertEPKcPKvibRKNS_11BSONElementEb + 2125&lt;br/&gt;
 9   mongod                              0x000000010029759d _ZN5mongo11DataFileMgr16insertWithObjModEPKcRNS_7BSONObjEb + 77&lt;br/&gt;
 10  mongod                              0x00000001002737b7 _ZN5mongo14receivedInsertERNS_7MessageERNS_5CurOpE + 743&lt;br/&gt;
 11  mongod                              0x000000010027585f _ZN5mongo16assembleResponseERNS_7MessageERNS_10DbResponseERKNS_8SockAddrE + 5359&lt;br/&gt;
 12  mongod                              0x00000001003c83fe _ZN5mongo10connThreadEPNS_13MessagingPortE + 414&lt;br/&gt;
 13  mongod                              0x00000001003dd374 thread_proxy + 132&lt;br/&gt;
 14  libSystem.B.dylib                   0x00007fff880f6536 _pthread_start + 331&lt;br/&gt;
 15  libSystem.B.dylib                   0x00007fff880f63e9 thread_start + 13&lt;br/&gt;
Fri Nov 26 16:00:22 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1&amp;#93;&lt;/span&gt; insert heater_development.system.indexes exception 0 assertion db/geo/2d.cpp:211 60ms&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="14273">SERVER-2388</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <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>Fri, 26 Nov 2010 22:03:19 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>aditya_gaur</customfieldvalue>
            <customfieldvalue>squanderingtime</customfieldvalue>
            <customfieldvalue>greg_10gen</customfieldvalue>
            <customfieldvalue>yuyou</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrph67:</customfieldvalue>

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

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

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