<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:09:06 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>[DOCS-13941] collstats command not giving error as per documentation </title>
                <link>https://jira.mongodb.org/browse/DOCS-13941</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;Using these versions&lt;/p&gt;

&lt;p&gt;pymongo &apos;3.11.0&apos;&lt;/p&gt;

&lt;p&gt;mongo&#160;&apos;4.2.6&apos;&lt;/p&gt;

&lt;p&gt;&#160;when i run this i get back a couple of collections as expected&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;collections = client.core.list_collection_names()&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;when i run this for a collection name that doesn&apos;t exist in the database i get the below output.&#160;&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;tats = client.core.command(&lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&quot;collstats&quot;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;color: blue; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;&apos;idontexist&apos;&lt;/span&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;)&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;&#160;&lt;/p&gt;
&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;{{ &apos;sharded&apos;: False, &apos;primary&apos;: &apos;rs2&apos;, &apos;indexDetails&apos;: {}, &apos;ns&apos;: &apos;core.idontexist&apos;, &apos;count&apos;: 0, &apos;size&apos;: 0, &apos;storageSize&apos;: 0, &apos;totalIndexSize&apos;: 0, &apos;indexSizes&apos;: {}, &apos;avgObjSize&apos;: 0.0, &apos;maxSize&apos;: 0, &apos;nindexes&apos;: 0, &apos;nchunks&apos;: 1, &apos;shards&apos;: { &apos;rs2&apos;: { &apos;ns&apos;: &apos;core.idontexist&apos;, &apos;size&apos;: 0, &apos;count&apos;: 0, &apos;storageSize&apos;: 0, &apos;nindexes&apos;: 0, &apos;totalIndexSize&apos;: 0, &apos;indexDetails&apos;: {}, &apos;indexSizes&apos;: {}, &apos;scaleFactor&apos;: 1, &apos;ok&apos;: 1.0, &apos;$gleStats&apos;: { &apos;lastOpTime&apos;: Timestamp(0, 0), &apos;electionId&apos;: ObjectId(&apos;7fffffff0000000000000001&apos;) }, &apos;lastCommittedOpTime&apos;: Timestamp(1599457270, 1), &apos;$configServerState&apos;: { &apos;opTime&apos;: { &apos;ts&apos;: Timestamp(1599457268, 2), &apos;t&apos;: 2 } }, &apos;$clusterTime&apos;: { &apos;clusterTime&apos;: Timestamp(1599457270, 1), &apos;signature&apos;: { &apos;hash&apos;: b &apos;\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00&apos;, &apos;keyId&apos;: 0 } }, &apos;operationTime&apos;: Timestamp(1599457270, 1) } }, &apos;ok&apos;: 1.0, &apos;operationTime&apos;: Timestamp(1599457270, 1), &apos;$clusterTime&apos;: { &apos;clusterTime&apos;: Timestamp(1599457270, 1), &apos;signature&apos;: { &apos;hash&apos;: b &apos;m\xa5e_]#\x97\xb6\x8a\xdd\x16}\xc8 \xaas\x90\x8e\xaf\xeb&apos;, &apos;keyId&apos;: 6833584828143632415 } }}&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;
&lt;p&gt;which is odd because the documentation says:&lt;br/&gt;
 &quot;&lt;b&gt;If the collection does not exist, collStats returns an error message.&lt;/b&gt;&quot;&lt;/p&gt;

&lt;p&gt;Just curious if this is expected behaviour ? Shouldn&apos;t pymongo have returned an error ?&lt;/p&gt;

&lt;p&gt;Thanks.&#160;&lt;/p&gt;</description>
                <environment></environment>
        <key id="1463964">DOCS-13941</key>
            <summary>collstats command not giving error as per documentation </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="jason.price@mongodb.com">Jason Price</assignee>
                                    <reporter username="scott.mcgillivray@ubisoft.com">Scott McGillivray</reporter>
                        <labels>
                    </labels>
                <created>Mon, 7 Sep 2020 05:49:04 +0000</created>
                <updated>Tue, 12 Dec 2023 14:27:14 +0000</updated>
                            <resolved>Fri, 28 Jan 2022 01:05:14 +0000</resolved>
                                                    <fixVersion>4.4.0</fixVersion>
                    <fixVersion>4.2.6</fixVersion>
                    <fixVersion>5.0.0</fixVersion>
                    <fixVersion>5.2.0</fixVersion>
                    <fixVersion>5.3.0</fixVersion>
                    <fixVersion>Server_Docs_20231030</fixVersion>
                    <fixVersion>Server_Docs_20231106</fixVersion>
                    <fixVersion>Server_Docs_20231105</fixVersion>
                    <fixVersion>Server_Docs_20231113</fixVersion>
                                    <component>manual</component>
                    <component>Server</component>
                        <due></due>
                            <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="4320046" author="xgen-internal-githook" created="Fri, 28 Jan 2022 00:24:46 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;jason-price-mongodb&apos;, &apos;email&apos;: &apos;69260375+jason-price-mongodb@users.noreply.github.com&apos;, &apos;username&apos;: &apos;jason-price-mongodb&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-13941&quot; title=&quot;collstats command not giving error as per documentation &quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-13941&quot;&gt;&lt;del&gt;DOCS-13941&lt;/del&gt;&lt;/a&gt;-collstats-error (#433) (#442)&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-13941&quot; title=&quot;collstats command not giving error as per documentation &quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-13941&quot;&gt;&lt;del&gt;DOCS-13941&lt;/del&gt;&lt;/a&gt;-collstats-error&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-13941&quot; title=&quot;collstats command not giving error as per documentation &quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-13941&quot;&gt;&lt;del&gt;DOCS-13941&lt;/del&gt;&lt;/a&gt;-collstats-error&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Co-authored-by: jason-price-mongodb &amp;lt;jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com&amp;gt;&lt;/p&gt;

&lt;p&gt;Co-authored-by: jason-price-mongodb &amp;lt;jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com&amp;gt;&lt;br/&gt;
Branch: v4.4&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/docs-mongodb-internal/commit/96e4667b8f33d2eeb67808509a7237d9d830b174&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/docs-mongodb-internal/commit/96e4667b8f33d2eeb67808509a7237d9d830b174&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4320027" author="xgen-internal-githook" created="Fri, 28 Jan 2022 00:11:19 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;jason-price-mongodb&apos;, &apos;email&apos;: &apos;69260375+jason-price-mongodb@users.noreply.github.com&apos;, &apos;username&apos;: &apos;jason-price-mongodb&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-13941&quot; title=&quot;collstats command not giving error as per documentation &quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-13941&quot;&gt;&lt;del&gt;DOCS-13941&lt;/del&gt;&lt;/a&gt;-collstats-error (#433) (#441)&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-13941&quot; title=&quot;collstats command not giving error as per documentation &quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-13941&quot;&gt;&lt;del&gt;DOCS-13941&lt;/del&gt;&lt;/a&gt;-collstats-error&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-13941&quot; title=&quot;collstats command not giving error as per documentation &quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-13941&quot;&gt;&lt;del&gt;DOCS-13941&lt;/del&gt;&lt;/a&gt;-collstats-error&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Co-authored-by: jason-price-mongodb &amp;lt;jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com&amp;gt;&lt;/p&gt;

&lt;p&gt;Co-authored-by: jason-price-mongodb &amp;lt;jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com&amp;gt;&lt;br/&gt;
Branch: v5.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/docs-mongodb-internal/commit/34b41007355476fa5f332484066529f550c62471&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/docs-mongodb-internal/commit/34b41007355476fa5f332484066529f550c62471&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4320023" author="xgen-internal-githook" created="Fri, 28 Jan 2022 00:09:34 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;jason-price-mongodb&apos;, &apos;email&apos;: &apos;69260375+jason-price-mongodb@users.noreply.github.com&apos;, &apos;username&apos;: &apos;jason-price-mongodb&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-13941&quot; title=&quot;collstats command not giving error as per documentation &quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-13941&quot;&gt;&lt;del&gt;DOCS-13941&lt;/del&gt;&lt;/a&gt;-collstats-error (#433) (#440)&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-13941&quot; title=&quot;collstats command not giving error as per documentation &quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-13941&quot;&gt;&lt;del&gt;DOCS-13941&lt;/del&gt;&lt;/a&gt;-collstats-error&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-13941&quot; title=&quot;collstats command not giving error as per documentation &quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-13941&quot;&gt;&lt;del&gt;DOCS-13941&lt;/del&gt;&lt;/a&gt;-collstats-error&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Co-authored-by: jason-price-mongodb &amp;lt;jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com&amp;gt;&lt;/p&gt;

&lt;p&gt;Co-authored-by: jason-price-mongodb &amp;lt;jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com&amp;gt;&lt;br/&gt;
Branch: v5.2&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/docs-mongodb-internal/commit/66b36074b42ee4a0badb26d54b5667431b4f2824&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/docs-mongodb-internal/commit/66b36074b42ee4a0badb26d54b5667431b4f2824&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4319641" author="xgen-internal-githook" created="Thu, 27 Jan 2022 21:45:20 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;jason-price-mongodb&apos;, &apos;email&apos;: &apos;69260375+jason-price-mongodb@users.noreply.github.com&apos;, &apos;username&apos;: &apos;jason-price-mongodb&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-13941&quot; title=&quot;collstats command not giving error as per documentation &quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-13941&quot;&gt;&lt;del&gt;DOCS-13941&lt;/del&gt;&lt;/a&gt;-collstats-error (#433)&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-13941&quot; title=&quot;collstats command not giving error as per documentation &quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-13941&quot;&gt;&lt;del&gt;DOCS-13941&lt;/del&gt;&lt;/a&gt;-collstats-error&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/DOCS-13941&quot; title=&quot;collstats command not giving error as per documentation &quot; class=&quot;issue-link&quot; data-issue-key=&quot;DOCS-13941&quot;&gt;&lt;del&gt;DOCS-13941&lt;/del&gt;&lt;/a&gt;-collstats-error&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Co-authored-by: jason-price-mongodb &amp;lt;jshfjghsdfgjsdjh@aolsdjfhkjsdhfkjsdf.com&amp;gt;&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/10gen/docs-mongodb-internal/commit/47c899655306a28de82af8669839449d467ba198&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/docs-mongodb-internal/commit/47c899655306a28de82af8669839449d467ba198&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="3457235" author="shane.harvey" created="Wed, 21 Oct 2020 19:08:42 +0000"  >&lt;p&gt;Moving this to the DOCS project because this appears to be a bug in the &lt;a href=&quot;https://docs.mongodb.com/manual/reference/command/collStats/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;server documentation for collStats&lt;/a&gt;. In particular, it says:&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;If the collection does not exist, collStats returns an error message.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;But this is not always the case on recent server versions, see &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-29678&quot; title=&quot;collStats should return ok:1 and all fields when the namespace does not exist &quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-29678&quot;&gt;&lt;del&gt;SERVER-29678&lt;/del&gt;&lt;/a&gt; and &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-51206&quot; title=&quot;collStats command does not return an error when the collection does not exist on sharded clusters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-51206&quot;&gt;&lt;del&gt;SERVER-51206&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="3416948" author="shane.harvey" created="Tue, 29 Sep 2020 18:42:20 +0000"  >&lt;p&gt;Upon further investigation, it looks like the &lt;a href=&quot;https://docs.mongodb.com/manual/reference/command/collStats/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;server documentation for collStats is incorrect&lt;/a&gt;. &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-29678&quot; title=&quot;collStats should return ok:1 and all fields when the namespace does not exist &quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-29678&quot;&gt;&lt;del&gt;SERVER-29678&lt;/del&gt;&lt;/a&gt; changed collStats to not return an error when the collection does not exist in MongoDB 4.2 and up (at least on replica sets). The inconsistent behavior within sharded clusters should be addressed by &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-51206&quot; title=&quot;collStats command does not return an error when the collection does not exist on sharded clusters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-51206&quot;&gt;&lt;del&gt;SERVER-51206&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;We should update the documentation to be in line with the recent server behavior.&lt;/p&gt;</comment>
                            <comment id="3415526" author="shane.harvey" created="Tue, 29 Sep 2020 04:44:37 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-50070&quot; title=&quot;collStats does not return error code when asked to operate on a non-existent collection in an existing database&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-50070&quot;&gt;SERVER-50070&lt;/a&gt; is specifically only about MongoDB 3.6 whereas this ticket uses MongoDB 4.2. Nonetheless, Bernie is right that this is a server issue affecting 4.2 and 4.4, not a pymongo bug. I filed &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-51206&quot; title=&quot;collStats command does not return an error when the collection does not exist on sharded clusters&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-51206&quot;&gt;&lt;del&gt;SERVER-51206&lt;/del&gt;&lt;/a&gt; for the server team to address it.&lt;/p&gt;</comment>
                            <comment id="3377655" author="behackett" created="Mon, 7 Sep 2020 18:53:12 +0000"  >&lt;p&gt;This looks like the server bug reported in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-50070&quot; title=&quot;collStats does not return error code when asked to operate on a non-existent collection in an existing database&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-50070&quot;&gt;SERVER-50070&lt;/a&gt;. In most cases PyMongo relies on the server to return an error when necessary. We generally don&apos;t want to add custom error handling that would have to be removed or altered as the server changes over time.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="1494128">SERVER-51206</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10520">
                    <name>Problem/Incident</name>
                                                                <inwardlinks description="is caused by">
                                        <issuelink>
            <issuekey id="394600">SERVER-29678</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>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Mon, 7 Sep 2020 18:53:12 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        2 years, 1 week, 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/SERVER-51206'>SERVER-51206</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>DOCSP-11701</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_14873" key="com.atlassian.jira.plugin.system.customfieldtypes:multiuserpicker">
                        <customfieldname>External Reviewer</customfieldname>
                        <customfieldvalues>
                                    <customfieldvalue><![CDATA[shane.harvey@mongodb.com]]></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>dbeng-pm-bot</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            2 years, 1 week, 6 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>bernie@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>jason.price@mongodb.com</customfieldvalue>
            <customfieldvalue>scott.mcgillivray@ubisoft.com</customfieldvalue>
            <customfieldvalue>shane.harvey@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hy43r3:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hxkcw7:</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_22279" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Server Compat</customfieldname>
                        <customfieldvalues>
                                        <label>7.3</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="5641">ServerDocs2022: Jan25 - Feb1</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10555" key="com.atlassian.jira.plugin.system.customfieldtypes:float">
                        <customfieldname>Story Points</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.0</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_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hy3q0f:</customfieldvalue>

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