<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:04:24 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-43894] Make dropping a nonexistent collection a noop</title>
                <link>https://jira.mongodb.org/browse/SERVER-43894</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Currently dropping a nonexistent collection is an error (&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;). I think that if the user wants to drop the collection and it happens to already not exist, the outcome is successful. Thus dropping a nonexistent collection should do nothing and return success to the client.&lt;/p&gt;</description>
                <environment></environment>
        <key id="964819">SERVER-43894</key>
            <summary>Make dropping a nonexistent collection a noop</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="13201">Fixed</resolution>
                                        <assignee username="dianna.hohensee@mongodb.com">Dianna Hohensee</assignee>
                                    <reporter username="oleg.pudeyev@mongodb.com">Oleg Pudeyev</reporter>
                        <labels>
                    </labels>
                <created>Tue, 8 Oct 2019 18:49:20 +0000</created>
                <updated>Sun, 29 Oct 2023 22:16:18 +0000</updated>
                            <resolved>Thu, 9 Feb 2023 14:24:32 +0000</resolved>
                                                    <fixVersion>7.0.0-rc0</fixVersion>
                                                        <votes>0</votes>
                                    <watches>13</watches>
                                                                                                                <comments>
                            <comment id="5197895" author="xgen-internal-githook" created="Tue, 14 Feb 2023 17:23:14 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Anna Henningsen&apos;, &apos;email&apos;: &apos;anna.henningsen@mongodb.com&apos;, &apos;username&apos;: &apos;addaleax&apos;}
&lt;p&gt;Message: fix(shell-api): adjust .drop() return value for server changes (#1406)&lt;/p&gt;

&lt;p&gt;See &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;, the server now returns no error when dropping&lt;br/&gt;
non-existent collections.&lt;br/&gt;
Branch: 1358-dev&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb-js/mongosh/commit/0725693d70f1811fc9bf4059f3fa292b57e8f650&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb-js/mongosh/commit/0725693d70f1811fc9bf4059f3fa292b57e8f650&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5186582" author="xgen-internal-githook" created="Fri, 10 Feb 2023 14:40:02 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Anna Henningsen&apos;, &apos;email&apos;: &apos;anna.henningsen@mongodb.com&apos;, &apos;username&apos;: &apos;addaleax&apos;}
&lt;p&gt;Message: fix(shell-api): adjust .drop() return value for server changes (#1406)&lt;/p&gt;

&lt;p&gt;See &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;, the server now returns no error when dropping&lt;br/&gt;
non-existent collections.&lt;br/&gt;
Branch: main&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb-js/mongosh/commit/0725693d70f1811fc9bf4059f3fa292b57e8f650&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb-js/mongosh/commit/0725693d70f1811fc9bf4059f3fa292b57e8f650&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5183876" author="xgen-internal-githook" created="Thu, 9 Feb 2023 18:08:05 +0000"  >&lt;p&gt;Author: &lt;/p&gt;
{&apos;name&apos;: &apos;Anna Henningsen&apos;, &apos;email&apos;: &apos;anna.henningsen@mongodb.com&apos;, &apos;username&apos;: &apos;addaleax&apos;}
&lt;p&gt;Message: fix(shell-api): adjust .drop() return value for server changes&lt;/p&gt;

&lt;p&gt;See &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;, the server now returns no error when dropping&lt;br/&gt;
non-existent collections.&lt;br/&gt;
Branch: server-43894-followup&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb-js/mongosh/commit/35933f220013a2811aeb453acd50d095557a1fe5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb-js/mongosh/commit/35933f220013a2811aeb453acd50d095557a1fe5&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5181122" author="xgen-internal-githook" created="Thu, 9 Feb 2023 02:09:24 +0000"  >&lt;p&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;DiannaHohensee&apos;}
&lt;p&gt;Message: &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; dropCollection should return success if the collection does not exist AND no UUID was specified&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/cbbd89e530107abb4fdf22cf02cf06665e52b53a&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/cbbd89e530107abb4fdf22cf02cf06665e52b53a&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2500898" author="daniel.gottlieb@10gen.com" created="Fri, 25 Oct 2019 13:56:26 +0000"  >&lt;blockquote&gt;
&lt;p&gt;if the server was to not return this error at all this would potentially save work across all drivers.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;I might be making a wrong assumption here. Suppose the spec mandates ignoring &lt;tt&gt;`ns not found`&lt;/tt&gt; errors and the next mongodb version contains a patch for this ticket. I agree that drivers talking to the new version would never need to handle an &lt;tt&gt;`ns not found`&lt;/tt&gt; error. But if a driver were talking to an older version of mongodb, wouldn&apos;t it be appropriate for the driver to explicitly ignore any &lt;tt&gt;`ns not found`&lt;/tt&gt; error? If that&apos;s true, doing this ticket won&apos;t actually save any driver work. Or would that state be considered good enough? Where the API provided by the driver for drop collection changes based on which server version an application is connected to.&lt;/p&gt;</comment>
                            <comment id="2476514" author="oleg.pudeyev" created="Thu, 10 Oct 2019 20:42:05 +0000"  >&lt;p&gt;To my knowledge there is no specification covering dropping collections. There was a survey of drivers recently as to how they handle the nonexisting ns error with the following results:&lt;/p&gt;

&lt;p&gt;Node - no special handling (error propagates to applications)&lt;br/&gt;
Swift - no handling, ticket open to suppress the error (&lt;a href=&quot;https://jira.mongodb.org/browse/SWIFT-204&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SWIFT-204&lt;/a&gt;)&lt;br/&gt;
Python - suppresses the error&lt;br/&gt;
C - no handling&lt;br/&gt;
Java - suppresses the error&lt;br/&gt;
PHP - suppresses the error&lt;br/&gt;
Ruby - sometimes suppresses the error&lt;/p&gt;

&lt;p&gt;There is an open spec ticket (&lt;a href=&quot;https://jira.mongodb.org/browse/SPEC-1053&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;https://jira.mongodb.org/browse/SPEC-1053&lt;/a&gt;) to specify collection dropping behavior, specifically what to do about &apos;ns not found&apos; error, in a consistent way across drivers.&lt;/p&gt;

&lt;p&gt;As far as existing driver behavior is concerned, if the server stopped producing errors in the case of nonexistent collections, the drivers&apos; behavior remains the same and backwards compatible, unless I am missing something.&lt;/p&gt;

&lt;p&gt;Given that the spec ticket above proposes to mandate ignoring &apos;ns not found&apos; errors, if the server was to not return this error at all this would potentially save work across all drivers.&lt;/p&gt;</comment>
                            <comment id="2476480" author="daniel.gottlieb@10gen.com" created="Thu, 10 Oct 2019 20:28:04 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=oleg.pudeyev&quot; class=&quot;user-hover&quot; rel=&quot;oleg.pudeyev&quot;&gt;oleg.pudeyev&lt;/a&gt;, I strongly agree with you that the server should treat dropping a non-existent collection a success. However, this behavior dates back for as long as I can remember and I&apos;m worried that the downstream impact would result in more work than the alternative; simply having drivers cope with the response as it is today.&lt;/p&gt;

&lt;p&gt;A change like this can only go into newer versions of MongoDB. I suspect drivers, in an effort to present a uniform API to clients, would still have to look for and transform drop &quot;failures&quot; because the collection does not exist into the successful variety. Otherwise, a driver may or may not report an error to the calling code with the only variable being the server version that it was talking with.&lt;/p&gt;

&lt;p&gt;That being said, if there&apos;s buy-in among driver API stakeholders, we can do this. There are some subtle bugs we&apos;d have to avoid (e.g: a &lt;tt&gt;WriteConcern: majority&lt;/tt&gt; dropCollection cannot simply return) but it&apos;s certainly doable.&lt;/p&gt;

&lt;p&gt;Would you like to raise this issue with the driver teams?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                                        </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                                                <inwardlinks description="is duplicated by">
                                        <issuelink>
            <issuekey id="478997">SERVER-32550</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                            <outwardlinks description="causes">
                                        <issuelink>
            <issuekey id="2417698">VSCODE-461</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="2401377">SERVER-79358</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1646508">SERVER-55145</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="516708">DRIVERS-2118</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="2262934">SERVER-73934</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="779036">SERVER-41365</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2260637">NODE-5059</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>7.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_12751" key="com.atlassian.jira.plugin.system.customfieldtypes:multiselect">
                        <customfieldname>Assigned Teams</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="25136"><![CDATA[Storage Execution]]></customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 10 Oct 2019 20:28:04 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        51 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_17052" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Downstream Changes Summary</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>FYI in case anything is depending upon dropCollection on a non-existent collection returning NamespaceNotFound. The mongod no longer returns this error, and the mongos already returned OK for non-existent collections.&lt;br/&gt;
&lt;br/&gt;
One exception: if a UUID is specified in dropCollection, mongod will continue to return a CollectionUUIDMismatch error even if the collection doesn&amp;#39;t exist.</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16942"><![CDATA[Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                    <customfield id="customfield_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>PM-2884</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>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            51 weeks, 1 day ago
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_16465" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Linked BF Score</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>100.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>daniel.gottlieb@mongodb.com</customfieldvalue>
            <customfieldvalue>dianna.hohensee@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</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|hvwoof:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i17ach:</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_22250" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Special Downgrade Instructions Required</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="23343"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="6594">Execution Team 2023-02-20</customfieldvalue>
    <customfieldvalue id="6685">Execution Team 2023-02-06</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                <customfield id="customfield_17051" key="com.atlassian.jira.plugin.system.customfieldtypes:multicheckboxes">
                        <customfieldname>Teams Impacted</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16943"><![CDATA[Cloud]]></customfieldvalue>
    <customfieldvalue key="16945"><![CDATA[Drivers]]></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|hvwaxr:</customfieldvalue>

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