<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:57:31 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-41365] Improve unhelpful error &quot;ns not found&quot;</title>
                <link>https://jira.mongodb.org/browse/SERVER-41365</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/questions/37136204/mongoerror-ns-not-found-when-try-to-drop-collection&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://stackoverflow.com/questions/37136204/mongoerror-ns-not-found-when-try-to-drop-collection&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Mongo should say &lt;b&gt;WHICH&lt;/b&gt; collection was not found.&lt;/p&gt;</description>
                <environment></environment>
        <key id="779036">SERVER-41365</key>
            <summary>Improve unhelpful error &quot;ns not found&quot;</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="12300">Won&apos;t Do</resolution>
                                        <assignee username="dianna.hohensee@mongodb.com">Dianna Hohensee</assignee>
                                    <reporter username="dandv">Dan Dascalescu</reporter>
                        <labels>
                            <label>neweng</label>
                            <label>pull-request</label>
                    </labels>
                <created>Tue, 28 May 2019 22:52:46 +0000</created>
                <updated>Thu, 21 May 2020 14:07:07 +0000</updated>
                            <resolved>Wed, 20 May 2020 20:33:40 +0000</resolved>
                                                                    <component>Storage</component>
                    <component>Usability</component>
                                        <votes>0</votes>
                                    <watches>17</watches>
                                                                                                                <comments>
                            <comment id="3102150" author="matt.broadstone" created="Thu, 21 May 2020 14:06:57 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=dandv&quot; class=&quot;user-hover&quot; rel=&quot;dandv&quot;&gt;dandv&lt;/a&gt;, &lt;br/&gt;
We&apos;re going to fix this issue in the Node.js driver, so you will likely never see the message again once that version is released. The goal of swallowing this error client-side is to provide parity with the server&apos;s behavior of automatically creating collections if you try to insert data into one which doesn&apos;t exist; you don&apos;t see an &lt;tt&gt;ns `foo` not found&lt;/tt&gt; error when you try to do that. Hopefully this will be a non-issue for you and people on stack overflow soon. &lt;/p&gt;</comment>
                            <comment id="3098375" author="dandv" created="Wed, 20 May 2020 21:23:21 +0000"  >&lt;p&gt;Understandable, but sad to see that due to &lt;em&gt;some&lt;/em&gt; unreliably designed &lt;b&gt;old&lt;/b&gt; drivers, &lt;em&gt;all&lt;/em&gt; &lt;b&gt;current&lt;/b&gt; developers have to get confused by this error.&lt;/p&gt;</comment>
                            <comment id="3098261" author="dianna.hohensee" created="Wed, 20 May 2020 20:33:41 +0000"  >&lt;p&gt;Closing this as Won&apos;t Do. Discussed via email with the Drivers team, and they will take on the work to surface an improved error message to the end user. Server will not be making any changes to the error message because it would break compatibility with old driver versions that depend upon an exact string match. It was agreed that &lt;a href=&quot;https://jira.mongodb.org/browse/DRIVERS-745&quot; title=&quot;Specify how drivers handle &amp;quot;ns not found&amp;quot; errors&quot; class=&quot;issue-link&quot; data-issue-key=&quot;DRIVERS-745&quot;&gt;&lt;del&gt;DRIVERS-745&lt;/del&gt;&lt;/a&gt; will be re-tasked for the relevant work.&lt;/p&gt;</comment>
                            <comment id="3088738" author="dianna.hohensee" created="Thu, 14 May 2020 21:05:52 +0000"  >&lt;p&gt;Our commit hook didn&apos;t fire for some reason. Writing it myself&lt;br/&gt;
--------------------------------------&lt;br/&gt;
Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Dianna Hohensee&apos;, &apos;email&apos;: &apos;dianna.hohensee@mongodb.com&apos;, &apos;username&apos;: &apos;dianna.hohensee&apos;}
&lt;p&gt;Message: Revert &quot;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-41365&quot; title=&quot;Improve unhelpful error &amp;quot;ns not found&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-41365&quot;&gt;&lt;del&gt;SERVER-41365&lt;/del&gt;&lt;/a&gt; include the particular namespace in &apos;ns not found&apos; error messages&quot;&lt;/p&gt;

&lt;p&gt;This reverts commit 485fdf001d39c7f809ead645d5d892b5094e9431.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/4ad639d67072c0dfa0e25289b7b938c2c72b209e&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/4ad639d67072c0dfa0e25289b7b938c2c72b209e&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3088737" author="dianna.hohensee" created="Thu, 14 May 2020 21:05:45 +0000"  >&lt;p&gt;It turns out errInfo does not get returned in the relevant command responses. Reverting the change that breaks downstream for now.&lt;/p&gt;</comment>
                            <comment id="3073989" author="milkie" created="Thu, 7 May 2020 15:04:14 +0000"  >&lt;p&gt;Let&apos;s consider using errInfo instead of changing the error message itself for this, to avoid breaking drivers.&lt;/p&gt;</comment>
                            <comment id="3068572" author="xgen-internal-githook" created="Tue, 5 May 2020 03:24:13 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;William Reiske&apos;, &apos;email&apos;: &apos;wreiske@mieweb.com&apos;, &apos;username&apos;: &apos;wreiske&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-41365&quot; title=&quot;Improve unhelpful error &amp;quot;ns not found&amp;quot;&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-41365&quot;&gt;&lt;del&gt;SERVER-41365&lt;/del&gt;&lt;/a&gt; include the particular namespace in &apos;ns not found&apos; error messages&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/485fdf001d39c7f809ead645d5d892b5094e9431&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/485fdf001d39c7f809ead645d5d892b5094e9431&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2472165" author="oleg.pudeyev" created="Tue, 8 Oct 2019 18:50:22 +0000"  >&lt;p&gt;FYI, Ruby and potentially other drivers perform substring matches looking for the phrase &quot;ns not found&quot; to handle these errors specially (such as ignoring them when trying to drop collections). As long as dropping a nonexistent collection is an error (but I filed &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-43894&quot; title=&quot;Make dropping a nonexistent collection a noop&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-43894&quot;&gt;&lt;del&gt;SERVER-43894&lt;/del&gt;&lt;/a&gt; to potentially change this), for backwards compatibility it will be good if the server maintained the string &quot;ns not found&quot; in the error message in addition to the helpful diagnostics such as &quot;collection foo does not exist&quot;.&lt;/p&gt;</comment>
                            <comment id="2263842" author="dandv" created="Wed, 29 May 2019 15:49:43 +0000"  >&lt;p&gt;While it wasn&apos;t extremely difficult to determine which collection the error was about, it&apos;s a matter of Writing Good Error Messages 101 to make errors as helpful as possible.&lt;/p&gt;

&lt;p&gt;First off, I had no idea what &quot;ns&quot; meant. I had to Google the error. This is a sign of failure on the part of the error.&lt;br/&gt;
 &lt;em&gt;A good error message does not force the developer to Google it.&lt;/em&gt;&#160;&lt;br/&gt;
Collection &lt;b&gt;foo&lt;/b&gt; does not exist&quot;, would have saved me and thousands* of &lt;a href=&quot;https://stackoverflow.com/questions/37136204/mongoerror-ns-not-found-when-try-to-drop-collection&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;StackOverflow users&lt;/a&gt; quite a bit of time.&lt;/p&gt;

&lt;p&gt;Second, &lt;a href=&quot;https://stackoverflow.com/questions/56351191/how-can-i-get-a-stack-trace-into-client-code-with-the-mongodb-node-js-driver&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;there&apos;s no stack trace&lt;/a&gt;&#160;pointing to client code. This makes it harder to pinpoint the line that caused the error.&lt;/p&gt;

&lt;p&gt;&#160;Apologies for filing the ticket under the Node Driver. Please move to the appropriate SERVER component.&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;That SO question has 29 upvotes and the answer has 43 upvotes. The &lt;a href=&quot;https://en.wikipedia.org/wiki/1%25_rule_(Internet_culture)&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;1% Internet rule&lt;/a&gt; suggests that 100x as many people may have searched for it without upvoting.&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="2263800" author="matt.broadstone" created="Wed, 29 May 2019 15:28:06 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=dandv&quot; class=&quot;user-hover&quot; rel=&quot;dandv&quot;&gt;dandv&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;Thanks for your report. The error you&apos;re running into is actually from the server, and it&apos;s one of our drivers mantras to &lt;a href=&quot;https://github.com/mongodb/specifications#where-possible-depend-on-server-to-return-errors&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;depend on relaying server message when possible&lt;/a&gt;. Was it difficult to determine which collection failed from the backtrace of the error? I would recommend opening a SERVER ticket if you feel there would be value to displaying the failed namespace in the error.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                                        </outwardlinks>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="962828">DRIVERS-745</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1156726">DRIVERS-1253</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1341919">CDRIVER-3655</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="964819">SERVER-43894</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="1040762">DOCS-13268</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>10.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</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>Wed, 29 May 2019 15:28:06 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        3 years, 37 weeks, 6 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<s><a href='https://jira.mongodb.org/browse/EVG-6863'>EVG-6863</a></s>]]></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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-1726</customfieldvalue>
                        </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>matt.broadstone@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            3 years, 37 weeks, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>0.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>dandv</customfieldvalue>
            <customfieldvalue>dianna.hohensee@mongodb.com</customfieldvalue>
            <customfieldvalue>milkie@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>matt.broadstone@mongodb.com</customfieldvalue>
            <customfieldvalue>oleg.pudeyev@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hv1dmf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hx8p0f:</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_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="3635">Execution Team 2020-05-04</customfieldvalue>
    <customfieldvalue id="3876">Execution Team 2020-05-18</customfieldvalue>
    <customfieldvalue id="3877">Execution Team 2020-06-01</customfieldvalue>

                        </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|hv0zvr:</customfieldvalue>

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