<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:08:28 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-45316] Missing expected error field &quot;errmsg&quot; when inserting an unordered bulk of GeoJSON</title>
                <link>https://jira.mongodb.org/browse/SERVER-45316</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;When inserting an unordered bulk of GeoJSON that are auto-intersecting, some of them (8609 of 10000) have an error instance that is containing an empty `errmsg` field.&lt;/p&gt;

&lt;p&gt;The database should have `2dsphere` geometry index activated.&lt;/p&gt;

&lt;p&gt;According to the documentation, every BulkWriteError must contain a message.&lt;/p&gt;

&lt;p&gt;We further did the check on MongoDB 3.6.16, 4.0.13, 4.2.2 with the same result.&lt;/p&gt;

&lt;p&gt;We checked on the Node.js client library 3.3.0 and 3.4.0.&lt;/p&gt;

&lt;p&gt;To be sure if this behavior is related to the Node.js binding or from the MongoDB server, we used Wireshark to see how many full error message we got against empty ones. And we found the same amount of incomplete error message as from the Node.js client library 3.3.0.&lt;/p&gt;

&lt;p&gt;We suspect there is some size limit to the number of error messages, because the amount of well-formed error message decrease as we insert a bigger GeoJSON, and vice-versa.&lt;/p&gt;

&lt;p&gt;The missing information on why the geometry is invalid is useful as we do processing to alter the geometry to get it compliant for MongoDB.&lt;/p&gt;

&lt;p&gt;The fact is we cannot do that in this case.&lt;/p&gt;

&lt;p&gt;We wrote a code example that highlights the issue: &lt;a href=&quot;https://github.com/sogelink/MongoDB-invalid-errmsg-test&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/sogelink/MongoDB-invalid-errmsg-test&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;The README.md describes four commands needed to: set up an empty MongoDB via Docker, set the geometry 2dsphere index, then run the test.&lt;/p&gt;

&lt;p&gt;Feel free to ask for any further information.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1070271">SERVER-45316</key>
            <summary>Missing expected error field &quot;errmsg&quot; when inserting an unordered bulk of GeoJSON</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="edwin.zhou@mongodb.com">Edwin Zhou</assignee>
                                    <reporter username="raphael.cazenave-leveque@sogelink.fr">Rapha&#235;l Cazenave Leveque</reporter>
                        <labels>
                    </labels>
                <created>Mon, 30 Dec 2019 08:37:31 +0000</created>
                <updated>Mon, 9 Aug 2021 17:23:58 +0000</updated>
                            <resolved>Mon, 9 Aug 2021 17:23:58 +0000</resolved>
                                    <version>3.6.16</version>
                    <version>4.0.13</version>
                    <version>4.2.2</version>
                                                    <component>Index Maintenance</component>
                    <component>Internal Code</component>
                    <component>Querying</component>
                                        <votes>0</votes>
                                    <watches>5</watches>
                                                                                                                <comments>
                            <comment id="3989054" author="JIRAUSER1257066" created="Mon, 9 Aug 2021 17:23:58 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=raphael.cazenave-leveque%40sogelink.fr&quot; class=&quot;user-hover&quot; rel=&quot;raphael.cazenave-leveque@sogelink.fr&quot;&gt;raphael.cazenave-leveque@sogelink.fr&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;We haven&#8217;t heard back from you for some time, so I&#8217;m going to close this ticket. If this is still an issue for you, please provide additional information and we will reopen the ticket.&lt;/p&gt;

&lt;p&gt;Best,&lt;br/&gt;
Edwin&lt;/p&gt;</comment>
                            <comment id="3960175" author="JIRAUSER1257066" created="Fri, 23 Jul 2021 16:26:48 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=raphael.cazenave-leveque%40sogelink.fr&quot; class=&quot;user-hover&quot; rel=&quot;raphael.cazenave-leveque@sogelink.fr&quot;&gt;raphael.cazenave-leveque@sogelink.fr&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;We still need additional information to diagnose the problem. If this is still an issue for you, would you please let us know if Danny&apos;s context has helped you work around this issue? Can you also please let us know if it is necessary for your business case to receive every error message regardless of size?&lt;/p&gt;

&lt;p&gt;Best,&lt;br/&gt;
Edwin&lt;/p&gt;</comment>
                            <comment id="2696960" author="daniel.hatcher" created="Tue, 31 Dec 2019 17:09:43 +0000"  >&lt;p&gt;In our docs for &lt;a href=&quot;https://docs.mongodb.com/manual/reference/method/db.collection.bulkWrite/index.html#execution-of-operations&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;bulk writes&lt;/a&gt;, we mention:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Starting in MongoDB 3.6, once the error report for a single batch grows too large, MongoDB truncates all remaining error messages to the empty string. Currently, begins once there are at least 2 error messages with total size greater than 1MB.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;As it was introduced in 3.6, that would explain why your test is reproducible across all of the versions that you tried. Unfortunately the values mentioned in the second sentence of the quote are currently hardcoded. Does this context help you work around the issue or is it necessary for your business case to receive every error message regardless of size?&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>3.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 31 Dec 2019 17:09:43 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            2 years, 26 weeks, 2 days ago
                        </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>daniel.hatcher@mongodb.com</customfieldvalue>
            <customfieldvalue>edwin.zhou@mongodb.com</customfieldvalue>
            <customfieldvalue>raphael.cazenave-leveque@sogelink.fr</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hwdvgf:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</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>
                                    <customfieldvalue><![CDATA[edwin.zhou@mongodb.com]]></customfieldvalue>
    

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hwdhpr:</customfieldvalue>

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