<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:01:18 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-10757] Document MongoDB error codes</title>
                <link>https://jira.mongodb.org/browse/DOCS-10757</link>
                <project id="10380" key="DOCS">Documentation</project>
                    <description>&lt;p&gt;Using the github.com/go-mgo/mgo driver and the latest stable version of MongoDB, I observe the following error:&lt;/p&gt;

&lt;p&gt;	&amp;amp;QueryError&lt;/p&gt;
{
		Code:      17406,
		Message:   &quot;getMore executor error: CappedPositionLost: CollectionScan died due to failure to restore tailable cursor position. Last seen record id: RecordId(200138)&quot;,
		Assertion: false,
	}

&lt;p&gt;I cannot find information about error code 17406 anywhere. More broadly, I cannot find information about MongoDB error codes. This page contains a list of codes: &lt;a href=&quot;https://github.com/mongodb/mongo/blob/master/src/mongo/base/error_codes.err&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/master/src/mongo/base/error_codes.err&lt;/a&gt;. However, the highest error code in the file is 13000.&lt;/p&gt;

&lt;p&gt;This page contains exit codes: &lt;a href=&quot;https://docs.mongodb.com/manual/reference/exit-codes/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://docs.mongodb.com/manual/reference/exit-codes/&lt;/a&gt; However, the highest code provided is code 100.&lt;/p&gt;

&lt;p&gt;Searching Google for &apos;mongodb error codes&apos; yields the following Google Groups thread: &lt;a href=&quot;https://groups.google.com/forum/#!topic/mongodb-user/cKV3rJVRfqEhttps://groups.google.com/forum/#!topic/mongodb-user/cKV3rJVRfqE&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://groups.google.com/forum/#!topic/mongodb-user/cKV3rJVRfqEhttps://groups.google.com/forum/#!topic/mongodb-user/cKV3rJVRfqE&lt;/a&gt;. One of the links (&lt;a href=&quot;https://github.com/mongodb/mongo/blob/master/docs/errors.md&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/master/docs/errors.md&lt;/a&gt;) returns a page not found.&lt;/p&gt;

&lt;p&gt;A list of PostgreSQL error codes is the top result when searching for &quot;Postgres error codes&quot; and can be found here: &lt;a href=&quot;https://www.postgresql.org/docs/9.6/static/errcodes-appendix.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://www.postgresql.org/docs/9.6/static/errcodes-appendix.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;A list of MySQL error codes is the top result when searching for &quot;MySQL error codes&quot; and can be found here: &lt;a href=&quot;https://dev.mysql.com/doc/refman/5.5/en/error-messages-server.html&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://dev.mysql.com/doc/refman/5.5/en/error-messages-server.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I am curious if a similar list exists for MongoDB. I attempted to ask a question about this on StackOverflow, however it will probably be closed by the time you read this.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://stackoverflow.com/q/46064684/329700&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://stackoverflow.com/q/46064684/329700&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="423832">DOCS-10757</key>
            <summary>Document MongoDB error codes</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="2" iconUrl="https://jira.mongodb.org/images/icons/priorities/critical.svg">Critical - P2</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="caleb.thompson@mongodb.com">Caleb Thompson</assignee>
                                    <reporter username="kevinburke">Kevin Burke</reporter>
                        <labels>
                            <label>query</label>
                            <label>security</label>
                            <label>server-docs-bug-bash</label>
                            <label>snp</label>
                    </labels>
                <created>Tue, 5 Sep 2017 23:57:33 +0000</created>
                <updated>Wed, 6 Dec 2023 15:35:19 +0000</updated>
                            <resolved>Wed, 15 Nov 2023 17:37:15 +0000</resolved>
                                    <version>4.0 Core Server</version>
                                    <fixVersion>Server_Docs_20231120</fixVersion>
                                    <component>Server</component>
                        <due></due>
                            <votes>12</votes>
                                    <watches>29</watches>
                                                                                                                <comments>
                            <comment id="5882525" author="caleb.thompson" created="Wed, 15 Nov 2023 16:48:30 +0000"  >&lt;p&gt;Merged into v7.0. &lt;a href=&quot;https://github.com/10gen/docs-mongodb-internal/pull/3820&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/docs-mongodb-internal/pull/3820&lt;/a&gt; to merge into master.&lt;/p&gt;</comment>
                            <comment id="5880324" author="nicholas.cottrell" created="Tue, 14 Nov 2023 21:34:39 +0000"  >&lt;p&gt;Reviewed and approved via Github. Thanks all!&lt;/p&gt;</comment>
                            <comment id="5872422" author="caleb.thompson" created="Fri, 10 Nov 2023 21:38:00 +0000"  >&lt;p&gt;Asking &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=nicholas.cottrell%40mongodb.com&quot; class=&quot;user-hover&quot; rel=&quot;nicholas.cottrell@mongodb.com&quot;&gt;nicholas.cottrell@mongodb.com&lt;/a&gt; for tech review on this.&lt;/p&gt;</comment>
                            <comment id="5561575" author="caleb.thompson" created="Wed, 12 Jul 2023 19:03:46 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/10gen/docs-mongodb-internal/pull/3820&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/10gen/docs-mongodb-internal/pull/3820&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="5300122" author="JIRAUSER1264463" created="Fri, 24 Mar 2023 21:25:57 +0000"  >&lt;p&gt;I&apos;m putting this into Ready for Work, for the following reasons:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;There are three customer cases associated with this ticket.&lt;/li&gt;
	&lt;li&gt;There is significant interest based on watchers.&lt;/li&gt;
	&lt;li&gt;We have resources available in Nic&apos;s comment above.&lt;/li&gt;
&lt;/ul&gt;
</comment>
                            <comment id="3575215" author="nicholas.cottrell" created="Thu, 21 Jan 2021 09:01:27 +0000"  >&lt;p&gt;There&apos;s a bunch of base error codes available at &lt;a href=&quot;https://github.com/mongodb/mongo/blob/34228dcee8b2961fb3f5d84e726210d6faf2ef4f/src/mongo/base/error_codes.yml&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/34228dcee8b2961fb3f5d84e726210d6faf2ef4f/src/mongo/base/error_codes.yml&lt;/a&gt;&#160;&lt;/p&gt;

&lt;p&gt;And WiredTiger errors: &lt;a href=&quot;https://github.com/mongodb/mongo/blob/19579e36f0d5a3905fb8b0101f43a776b3ac1944/src/third_party/wiredtiger/src/docs/error-handling.dox&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/19579e36f0d5a3905fb8b0101f43a776b3ac1944/src/third_party/wiredtiger/src/docs/error-handling.dox&lt;/a&gt;&#160;&lt;/p&gt;</comment>
                            <comment id="3369343" author="JIRAUSER1254330" created="Tue, 1 Sep 2020 09:07:35 +0000"  >&lt;p&gt;Are there any plans to create a documenation for developers, which errors could occour?&lt;/p&gt;</comment>
                            <comment id="2099561" author="zammit.andrew@gmail.com" created="Mon, 24 Dec 2018 08:54:17 +0000"  >&lt;p&gt;I agree this should be documented in the open. Hang on, wait... it was!&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-16197&quot; title=&quot;&amp;quot;scons install&amp;quot; broken since tools rewrite&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-16197&quot;&gt;&lt;del&gt;SERVER-16197&lt;/del&gt;&lt;/a&gt; removed the generated &lt;tt&gt;error.md&lt;/tt&gt; file which was available prior to v2.8.0: &lt;a href=&quot;https://github.com/mongodb/mongo/blob/35079a95ebc591dee47ecca5e0f22eb7a7381fd0/docs/errors.md&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/35079a95ebc591dee47ecca5e0f22eb7a7381fd0/docs/errors.md&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;In here, you can see error code 17406 corresponds to &quot;getMore runner error&quot; during plan execution. This error code is present in server versions less than or equal to v3.6.3; it was removed in v3.6.4.&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;3.6.3 source: &lt;a href=&quot;https://github.com/mongodb/mongo/blob/r3.6.3/src/mongo/db/query/find.cpp#L207&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/r3.6.3/src/mongo/db/query/find.cpp#L207&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;3.6.4 source: &lt;a href=&quot;https://github.com/mongodb/mongo/blob/r3.6.4/src/mongo/db/query/find.cpp#L206-L208&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/blob/r3.6.4/src/mongo/db/query/find.cpp#L206-L208&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;Specific change: &lt;a href=&quot;https://github.com/mongodb/mongo/commit/332f23a46c9f28e2c60cac7c19a93abac0c8359c#diff-0abb2520ba57f95c17ca9b9a7fab75cd&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/332f23a46c9f28e2c60cac7c19a93abac0c8359c#diff-0abb2520ba57f95c17ca9b9a7fab75cd&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;Ticket that prompted the change:&#160;&lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-33542&quot; title=&quot;Using maxTime() on MongoDB 3.4 and 3.6 does not yield the same error code&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-33542&quot;&gt;&lt;del&gt;SERVER-33542&lt;/del&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Aside: Thanks to MongoDB for keeping JIRA and the source code open! Gold star for you!&#160;&lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/star_yellow.png&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="1842357">GODRIVER-2116</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1847967">CDRIVER-4126</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </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_13552" key="com.go2group.jira.plugin.crm:crm_generic_field">
                        <customfieldname>Case</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[[5002K00000s19v8QAA, 5002K00000xkmx8QAA, 5002K000012RL4hQAG]]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Tue, 11 Sep 2018 20:30:19 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        12 weeks 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_14876" key="com.atlassian.jira.plugin.system.customfieldtypes:userpicker">
                        <customfieldname>Docs Reviewer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>ashley.brown@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>xgen-internal-githook</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            12 weeks ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>zammit.andrew@gmail.com</customfieldvalue>
            <customfieldvalue>caleb.thompson@mongodb.com</customfieldvalue>
            <customfieldvalue>ckue@d-velop.de</customfieldvalue>
            <customfieldvalue>kevinburke</customfieldvalue>
            <customfieldvalue>nicholas.cottrell@mongodb.com</customfieldvalue>
            <customfieldvalue>sarah.olson@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hte8sf:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hvkf0f:</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_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|htduvb:</customfieldvalue>

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