<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:21:30 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-9810] Assertion in mongos when running a command via a query on $cmd collection with incorrect limit when auth is enabled</title>
                <link>https://jira.mongodb.org/browse/SERVER-9810</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;This is a sharded setup, 5 shards with 3 servers per replica set. &lt;/p&gt;

&lt;p&gt;Here&apos;s the mongo log:&lt;/p&gt;

&lt;p&gt;Wed May 29 21:51:23.305 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1730&amp;#93;&lt;/span&gt;   Assertion failure !namespaceString.isCommand() src/mongo/db/auth/authorization_manager.cpp 701&lt;br/&gt;
0xa7e461 0xa42bed 0x744499 0x9b9ec7 0x98e781 0x66b7d1 0xa6ac7e 0x7f8880c16e9a 0x7f887ff29ccd &lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo15printStackTraceERSo+0x21) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xa7e461&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo12verifyFailedEPKcS1_j+0xfd) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xa42bed&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo20AuthorizationManager17checkAuthForQueryERKSs+0x279) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x744499&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo13ShardStrategy7queryOpERNS_7RequestE+0x247) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x9b9ec7&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo7Request7processEi+0x1d1) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x98e781&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo21ShardedMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0x71) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x66b7d1&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo17PortMessageServer17handleIncomingMsgEPv+0x42e) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xa6ac7e&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f8880c16e9a&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f887ff29ccd&amp;#93;&lt;/span&gt;&lt;br/&gt;
Wed May 29 21:51:23.308 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1730&amp;#93;&lt;/span&gt; AssertionException while processing op type : 2004 to : admin.$cmd :: caused by :: 0 assertion src/mongo/db/auth/authorization_manager.cpp:701&lt;br/&gt;
Wed May 29 21:51:23.355 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; distributed lock &apos;balancer/ip-10-38-42-134:27020:1369817037:1804289383&apos; acquired, ts : 51a6785b082e244713019a57&lt;br/&gt;
Wed May 29 21:51:23.528 &lt;span class=&quot;error&quot;&gt;&amp;#91;Balancer&amp;#93;&lt;/span&gt; distributed lock &apos;balancer/ip-10-38-42-134:27020:1369817037:1804289383&apos; unlocked. &lt;br/&gt;
Wed May 29 21:51:26.346 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1732&amp;#93;&lt;/span&gt;   Assertion failure !namespaceString.isCommand() src/mongo/db/auth/authorization_manager.cpp 701&lt;br/&gt;
0xa7e461 0xa42bed 0x744499 0x9b9ec7 0x98e781 0x66b7d1 0xa6ac7e 0x7f8880c16e9a 0x7f887ff29ccd &lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo15printStackTraceERSo+0x21) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xa7e461&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo12verifyFailedEPKcS1_j+0xfd) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xa42bed&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo20AuthorizationManager17checkAuthForQueryERKSs+0x279) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x744499&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo13ShardStrategy7queryOpERNS_7RequestE+0x247) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x9b9ec7&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo7Request7processEi+0x1d1) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x98e781&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo21ShardedMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0x71) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x66b7d1&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo17PortMessageServer17handleIncomingMsgEPv+0x42e) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xa6ac7e&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f8880c16e9a&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f887ff29ccd&amp;#93;&lt;/span&gt;&lt;br/&gt;
Wed May 29 21:51:26.349 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1732&amp;#93;&lt;/span&gt; AssertionException while processing op type : 2004 to : admin.$cmd :: caused by :: 0 assertion src/mongo/db/auth/authorization_manager.cpp:701&lt;br/&gt;
Wed May 29 21:51:27.114 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1831&amp;#93;&lt;/span&gt;   Assertion failure !namespaceString.isCommand() src/mongo/db/auth/authorization_manager.cpp 701&lt;br/&gt;
0xa7e461 0xa42bed 0x744499 0x9b9ec7 0x98e781 0x66b7d1 0xa6ac7e 0x7f8880c16e9a 0x7f887ff29ccd &lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo15printStackTraceERSo+0x21) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xa7e461&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo12verifyFailedEPKcS1_j+0xfd) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xa42bed&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo20AuthorizationManager17checkAuthForQueryERKSs+0x279) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x744499&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo13ShardStrategy7queryOpERNS_7RequestE+0x247) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x9b9ec7&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo7Request7processEi+0x1d1) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x98e781&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo21ShardedMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0x71) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x66b7d1&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo17PortMessageServer17handleIncomingMsgEPv+0x42e) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xa6ac7e&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f8880c16e9a&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f887ff29ccd&amp;#93;&lt;/span&gt;&lt;br/&gt;
Wed May 29 21:51:27.117 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1831&amp;#93;&lt;/span&gt; AssertionException while processing op type : 2004 to : admin.$cmd :: caused by :: 0 assertion src/mongo/db/auth/authorization_manager.cpp:701&lt;br/&gt;
Wed May 29 21:51:27.551 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1831&amp;#93;&lt;/span&gt;  authenticate db: db1 &lt;/p&gt;
{ authenticate: 1, nonce: &quot;5f2f6b45a26b8361&quot;, user: &quot;xxx&quot;, key: &quot;eeaa0850c0e0e62e4eca0d47230174e3&quot; }
&lt;p&gt;Wed May 29 21:51:27.556 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1831&amp;#93;&lt;/span&gt;  authenticate db: db2 &lt;/p&gt;
{ authenticate: 1, nonce: &quot;2b340d06a947255&quot;, user: &quot;xxx&quot;, key: &quot;051e461b5d22c07afb5105a654c72ad9&quot; }
&lt;p&gt;Wed May 29 21:51:27.562 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1831&amp;#93;&lt;/span&gt;  authenticate db: staging_messages_archive_old &lt;/p&gt;
{ authenticate: 1, nonce: &quot;dca4f633bb029cac&quot;, user: &quot;xxx&quot;, key: &quot;c2089a81332e38ff51e3ffb565026b54&quot; }
&lt;p&gt;Wed May 29 21:51:28.497 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1776&amp;#93;&lt;/span&gt;   Assertion failure !namespaceString.isCommand() src/mongo/db/auth/authorization_manager.cpp 701&lt;br/&gt;
0xa7e461 0xa42bed 0x744499 0x9b9ec7 0x98e781 0x66b7d1 0xa6ac7e 0x7f8880c16e9a 0x7f887ff29ccd &lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo15printStackTraceERSo+0x21) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xa7e461&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo12verifyFailedEPKcS1_j+0xfd) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xa42bed&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo20AuthorizationManager17checkAuthForQueryERKSs+0x279) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x744499&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo13ShardStrategy7queryOpERNS_7RequestE+0x247) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x9b9ec7&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo7Request7processEi+0x1d1) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x98e781&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo21ShardedMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0x71) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x66b7d1&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo17PortMessageServer17handleIncomingMsgEPv+0x42e) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xa6ac7e&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f8880c16e9a&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f887ff29ccd&amp;#93;&lt;/span&gt;&lt;br/&gt;
Wed May 29 21:51:28.500 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1776&amp;#93;&lt;/span&gt; AssertionException while processing op type : 2004 to : admin.$cmd :: caused by :: 0 assertion src/mongo/db/auth/authorization_manager.cpp:701&lt;br/&gt;
Wed May 29 21:51:28.501 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1810&amp;#93;&lt;/span&gt;   Assertion failure !namespaceString.isCommand() src/mongo/db/auth/authorization_manager.cpp 701&lt;br/&gt;
0xa7e461 0xa42bed 0x744499 0x9b9ec7 0x98e781 0x66b7d1 0xa6ac7e 0x7f8880c16e9a 0x7f887ff29ccd &lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo15printStackTraceERSo+0x21) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xa7e461&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo12verifyFailedEPKcS1_j+0xfd) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xa42bed&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo20AuthorizationManager17checkAuthForQueryERKSs+0x279) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x744499&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo13ShardStrategy7queryOpERNS_7RequestE+0x247) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x9b9ec7&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo7Request7processEi+0x1d1) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x98e781&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo21ShardedMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0x71) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x66b7d1&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo17PortMessageServer17handleIncomingMsgEPv+0x42e) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xa6ac7e&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f8880c16e9a&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f887ff29ccd&amp;#93;&lt;/span&gt;&lt;br/&gt;
Wed May 29 21:51:28.504 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1810&amp;#93;&lt;/span&gt; AssertionException while processing op type : 2004 to : admin.$cmd :: caused by :: 0 assertion src/mongo/db/auth/authorization_manager.cpp:701&lt;br/&gt;
Wed May 29 21:51:28.529 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1988&amp;#93;&lt;/span&gt;   Assertion failure !namespaceString.isCommand() src/mongo/db/auth/authorization_manager.cpp 701&lt;br/&gt;
0xa7e461 0xa42bed 0x744499 0x9b9ec7 0x98e781 0x66b7d1 0xa6ac7e 0x7f8880c16e9a 0x7f887ff29ccd &lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo15printStackTraceERSo+0x21) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xa7e461&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo12verifyFailedEPKcS1_j+0xfd) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xa42bed&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo20AuthorizationManager17checkAuthForQueryERKSs+0x279) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x744499&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo13ShardStrategy7queryOpERNS_7RequestE+0x247) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x9b9ec7&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo7Request7processEi+0x1d1) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x98e781&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo21ShardedMessageHandler7processERNS_7MessageEPNS_21AbstractMessagingPortEPNS_9LastErrorE+0x71) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x66b7d1&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /usr/bin/mongos(_ZN5mongo17PortMessageServer17handleIncomingMsgEPv+0x42e) &lt;span class=&quot;error&quot;&gt;&amp;#91;0xa6ac7e&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/x86_64-linux-gnu/libpthread.so.0(+0x7e9a) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f8880c16e9a&amp;#93;&lt;/span&gt;&lt;br/&gt;
 /lib/x86_64-linux-gnu/libc.so.6(clone+0x6d) &lt;span class=&quot;error&quot;&gt;&amp;#91;0x7f887ff29ccd&amp;#93;&lt;/span&gt;&lt;br/&gt;
Wed May 29 21:51:28.532 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn1988&amp;#93;&lt;/span&gt; AssertionException while processing op type : 2004 to : admin.$cmd :: caused by :: 0 assertion src/mongo/db/auth/authorization_manager.cpp:701&lt;/p&gt;

&lt;p&gt;After this happens, it pretty much takes down the whole system for a while.  Here&apos;s what gets returned to client.&lt;/p&gt;

&lt;p&gt;May 29 15:18:03 23.20.172.143 ironmq_staging:  2013/05/29 22:18:03 ERROR &amp;#8211; internal server error not authorized for insert on staging_ironmq_handles.handles &lt;/p&gt;</description>
                <environment>Ubuntu 12.04</environment>
        <key id="77101">SERVER-9810</key>
            <summary>Assertion in mongos when running a command via a query on $cmd collection with incorrect limit when auth is enabled</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</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="spencer@mongodb.com">Spencer Brody</assignee>
                                    <reporter username="treeder">Travis Reeder</reporter>
                        <labels>
                    </labels>
                <created>Wed, 29 May 2013 22:21:34 +0000</created>
                <updated>Wed, 10 Dec 2014 23:18:49 +0000</updated>
                            <resolved>Mon, 3 Jun 2013 17:57:53 +0000</resolved>
                                    <version>2.4.3</version>
                                                    <component>Security</component>
                                        <votes>0</votes>
                                    <watches>6</watches>
                                                                                                                <comments>
                            <comment id="351766" author="spencer" created="Mon, 3 Jun 2013 17:57:53 +0000"  >&lt;p&gt;Per Gustavo&apos;s recommendation I am closing out this ticket.  The problem with mgo&apos;s background ping task setting the wrong limit has been fixed, and we have verified that using mgo&apos;s Run helper to run commands should do the right thing.&lt;/p&gt;

&lt;p&gt;If there turns out to be an additional problem beyond what was addressed here, please open a new ticket and link it to this one.&lt;/p&gt;</comment>
                            <comment id="351690" author="niemeyer" created="Mon, 3 Jun 2013 16:24:12 +0000"  >&lt;p&gt;As Evan Shaw reported Friday night, the ping command was being sent without an explicit limit (IOW, limit=0). This was fixed and pushed right then. This justifies the warnings in mongos, but it&apos;s really inoffensive otherwise. Even the logic relying on the pings actually works fine.&lt;/p&gt;

&lt;p&gt;This does not explain why mongos would report an error afterwards, though. Evan Shaw seemed unsure about whether things were actually related or it just happened as a coincidence.&lt;/p&gt;

&lt;p&gt;I suggesting closing this bug as fixed and opening another one if there&apos;s a different issue than the one found.&lt;/p&gt;</comment>
                            <comment id="348398" author="spencer" created="Wed, 29 May 2013 23:39:29 +0000"  >&lt;p&gt;In that case, you should check your code and make sure that every time you run a command you set a limit of 1 on the query.  Alternately you could try using mgo&apos;s command helper: &lt;a href=&quot;http://godoc.org/labix.org/v2/mgo#Database.Run&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;Run&lt;/a&gt;.&lt;/p&gt;</comment>
                            <comment id="348389" author="treeder" created="Wed, 29 May 2013 23:26:36 +0000"  >&lt;p&gt;And not using a runCommand helper, just the normal driver functions. &lt;/p&gt;</comment>
                            <comment id="348380" author="treeder" created="Wed, 29 May 2013 23:16:33 +0000"  >&lt;p&gt;We&apos;re using the golang mgo driver. &lt;/p&gt;</comment>
                            <comment id="348368" author="spencer" created="Wed, 29 May 2013 23:05:45 +0000"  >&lt;p&gt;Hi Travis,&lt;br/&gt;
We have reproduced the problem.  The issue is that running commands is done by issuing a query against the &quot;$cmd&quot; collection in a database.  That query is expected to have a limit of 1, this error can occur if a query on &amp;lt;dbname&amp;gt;.$cmd is received that has no limit set or a limit other than 1 or -1.&lt;br/&gt;
Can you please let us know which driver you are using and how you run commands?  Are you using a &quot;runCommand&quot; helper or something similar in the driver, or are you issuing queries against the $cmd namespace directly?&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="77103">SERVER-9811</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <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>6.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 2013 23:05:45 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 37 weeks, 2 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-9811'>SERVER-9811</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_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>ramon.fernandez@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            10 years, 37 weeks, 2 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_10000" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Old_Backport</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10000"><![CDATA[No]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10032" key="com.atlassian.jira.plugin.system.customfieldtypes:select">
                        <customfieldname>Operating System</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10026"><![CDATA[ALL]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>niemeyer</customfieldvalue>
            <customfieldvalue>spencer@mongodb.com</customfieldvalue>
            <customfieldvalue>treeder</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmrn3:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>70514</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_10750" key="com.atlassian.jira.plugin.system.customfieldtypes:textarea">
                        <customfieldname>Steps To Reproduce</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>&lt;p&gt;Happens when we apply high load, ~1000 concurrent processes. &lt;/p&gt;</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|hs9yw7:</customfieldvalue>

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