<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:21:51 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-9935] occasionally timeout when use mongos</title>
                <link>https://jira.mongodb.org/browse/SERVER-9935</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;when use mongos , 2 shard (each has 2 mongod , 1 arbiter),&lt;/p&gt;

&lt;p&gt;we set timeout 300ms , use php mongo 1.3.5&lt;/p&gt;

&lt;p&gt;somtimes timeout , 5000 times one day  with 1,000,000 queries.&lt;/p&gt;

&lt;p&gt;I set loglevel 5 on mongos , then get log&lt;/p&gt;

&lt;p&gt;Fri Jun 14 12:43:05 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn131878&amp;#93;&lt;/span&gt; Request::process begin ns: database.collection msg id: 288 op: 2004 attempt: 0&lt;br/&gt;
Fri Jun 14 12:43:05 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn131878&amp;#93;&lt;/span&gt; shard query: database.collection  &lt;/p&gt;
{ _id: &quot;the_key_to_be_found&quot; }
&lt;p&gt;Fri Jun 14 12:43:05 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn131878&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;pcursor&amp;#93;&lt;/span&gt; creating pcursor over QSpec { ns: &quot;database.collection&quot;, n2skip: 0, n2return: -1, options: 0, query: &lt;/p&gt;
{ _id: &quot;the_key_to_be_found&quot; }
&lt;p&gt;, fields: {} } and CInfo { v_ns: &quot;&quot;, filter: {} }&lt;br/&gt;
Fri Jun 14 12:43:05 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn131878&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;pcursor&amp;#93;&lt;/span&gt; initializing over 1 shards required by &lt;span class=&quot;error&quot;&gt;&amp;#91;database.collection @ 604|27||512470419a06f4a9452a082e&amp;#93;&lt;/span&gt;Fri Jun 14 12:43:05 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn131878&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;pcursor&amp;#93;&lt;/span&gt; initializing on shard shard0001:shard0001/mongod_server1,mongod_server2, current connection state is { state: {}, retryNext: false, init: false, finish: false, errored: false }Fri Jun 14 12:43:05 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn131878&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;pcursor&amp;#93;&lt;/span&gt; initialized query (lazily) on shard shard0001:shard0001/mongod_server1,mongod_server2, current connection state is { state: &lt;/p&gt;
{ conn: &quot;shard0001/mongod_server1,mongod_server2&quot;, vinfo: &quot;database.collection @ 604|27||512470419a06f4a9452a082e&quot;, cursor: &quot;(empty)&quot;, count: 0, done: false }
&lt;p&gt;, retryNext: false, init: true, finish: false, errored: false }Fri Jun 14 12:43:05 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn131878&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;pcursor&amp;#93;&lt;/span&gt; finishing over 1 shardsFri Jun 14 12:43:05 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn131878&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;pcursor&amp;#93;&lt;/span&gt; finishing on shard shard0001:shard0001/mongod_server1,mongod_server2, current connection state is { state: &lt;/p&gt;
{ conn: &quot;shard0001/mongod_server1,mongod_server2&quot;, vinfo: &quot;database.collection @ 604|27||512470419a06f4a9452a082e&quot;, cursor: &quot;(empty)&quot;, count: 0, done: false }
&lt;p&gt;, retryNext: false, init: true, finish: false, errored: false }Fri Jun 14 12:43:06 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn131878&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;pcursor&amp;#93;&lt;/span&gt; finished on shard shard0001:shard0001/mongod_server1,mongod_server2, current connection state is { state: &lt;/p&gt;
{ conn: &quot;(done)&quot;, vinfo: &quot;database.collection @ 604|27||512470419a06f4a9452a082e&quot;, cursor: &quot;(empty)&quot;, count: 0, done: false }
&lt;p&gt;, retryNext: false, init: true, finish: true, errored: false }&lt;br/&gt;
Fri Jun 14 12:43:06 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn131878&amp;#93;&lt;/span&gt;    cursor type: ParallelSort&lt;br/&gt;
Fri Jun 14 12:43:06 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn131878&amp;#93;&lt;/span&gt;     hasMore: 0 sendMore: 0 cursorMore: 0 ntoreturn: 1 num: 0 wouldSendMoreIfHad: 0 id:4637175563515114743 totalSent: 0&lt;br/&gt;
Fri Jun 14 12:43:06 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn131878&amp;#93;&lt;/span&gt; Request::process end ns: database.collection msg id: 288 op: 2004 attempt: 0 903ms&lt;/p&gt;


&lt;p&gt;query used 903ms on mongos, but on mongod&lt;/p&gt;


&lt;p&gt;Fri Jun 14 12:43:05 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn42608&amp;#93;&lt;/span&gt; runQuery called onebox_storage_main.onebox_data &lt;/p&gt;
{ _id: &quot;the_key_to_be_found&quot; }
&lt;p&gt;Fri Jun 14 12:43:06 &lt;span class=&quot;error&quot;&gt;&amp;#91;conn42608&amp;#93;&lt;/span&gt; query onebox_storage_main.onebox_data query: &lt;/p&gt;
{ _id: &quot;the_key_to_be_found&quot; }
&lt;p&gt; ntoreturn:1 idhack:1 keyUpdates:0 locks(micros) r:58 reslen:20 0ms&lt;/p&gt;


&lt;p&gt;it took 0ms.&lt;/p&gt;


&lt;p&gt;why mongos slow ?&lt;/p&gt;


</description>
                <environment>linux, mongo php 1.3.5 mongod 2.2</environment>
        <key id="79047">SERVER-9935</key>
            <summary>occasionally timeout when use mongos</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</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="4">Incomplete</resolution>
                                        <assignee username="randolph@mongodb.com">Randolph Tan</assignee>
                                    <reporter username="peanutgyz">peanutgyz</reporter>
                        <labels>
                    </labels>
                <created>Fri, 14 Jun 2013 06:59:47 +0000</created>
                <updated>Wed, 10 Dec 2014 23:19:18 +0000</updated>
                            <resolved>Thu, 17 Oct 2013 14:45:52 +0000</resolved>
                                    <version>2.2.3</version>
                                                    <component>Performance</component>
                    <component>Querying</component>
                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="378971" author="renctan" created="Thu, 11 Jul 2013 15:37:12 +0000"  >&lt;p&gt;The time displayed in the logs is the time when the thread becomes active and started processing the message. This means that it does not include the time between the message sitting in the network buffer and the time the thread gets its time slice and consumes the message from the buffer. How many concurrent connections do you have on the mongod?&lt;/p&gt;</comment>
                            <comment id="361707" author="peanutgyz" created="Mon, 17 Jun 2013 12:58:16 +0000"  >&lt;p&gt;tcpdump show that&lt;/p&gt;

&lt;p&gt;mongod receive packet, then send ack packet.&lt;/p&gt;

&lt;p&gt;and after 700ms, mongod send the first response packet out.&lt;/p&gt;

&lt;p&gt;but , in mongod log , show that the query only took 0ms.&lt;/p&gt;
</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Thu, 11 Jul 2013 15:37:12 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        10 years, 31 weeks, 6 days 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_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, 31 weeks, 6 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_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>peanutgyz</customfieldvalue>
            <customfieldvalue>randolph@mongodb.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrmq6n:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>72232</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_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|ht00gf:</customfieldvalue>

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