<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:58:17 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-1870] Strange dedlock on replica set</title>
                <link>https://jira.mongodb.org/browse/SERVER-1870</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;We have encountered strange behavior of MongoDB during a rapid increase in requests for data retrieval. Record queue and the number of connections begin to grow rapidly. The results of db.currentOp () are attached to the ticket. What else can we check and how to do this? What are the collections &quot;?&quot; in the list of operations for? And what is mean sign &quot;?&quot; in first position of namespace?&lt;/p&gt;</description>
                <environment>mongodb 1.6.3, php_mongo 1.0.7 &lt;br/&gt;
servers: &lt;br/&gt;
- srv1 = Debian Lenny. kernel 2.6.26-2-amd64 #1 SMP x86_64 GNU/Linux. CPU: Intel(R) Xeon(R) CPU E5520 @ 2.27GHz RAM: 16GB &lt;br/&gt;
- srv2 = Debian Lenny. kernel 2.6.26-2-openvz-amd64 #1 SMP x86_64 GNU/Linux under openvz 3.0.23-1dso1 with no limit. CPU: Intel(R) Xeon(R) CPU E5620 @ 2.40GHz RAM: 16GB &lt;br/&gt;
&lt;br/&gt;
replicaset: &lt;br/&gt;
- master on srv1:27017 &lt;br/&gt;
- arbiter on srv1:30001 &lt;br/&gt;
- slave on srv2</environment>
        <key id="13215">SERVER-1870</key>
            <summary>Strange dedlock on replica set</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="4">Incomplete</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="bladeofsteel">Oleg Lobach</reporter>
                        <labels>
                    </labels>
                <created>Wed, 29 Sep 2010 09:13:50 +0000</created>
                <updated>Tue, 29 May 2012 14:53:23 +0000</updated>
                            <resolved>Fri, 2 Sep 2011 04:41:59 +0000</resolved>
                                    <version>1.6.1</version>
                    <version>1.6.3</version>
                                                                        <votes>0</votes>
                                    <watches>3</watches>
                                                                                                                <comments>
                            <comment id="18674" author="eliot" created="Wed, 29 Sep 2010 20:11:13 +0000"  >&lt;p&gt;you might just be driving the disk/memory crazy&lt;/p&gt;

&lt;p&gt;can you try adding an index on { &lt;/p&gt;
{ inf : 1 , pos : 1 }
&lt;p&gt; )&lt;/p&gt;</comment>
                            <comment id="18662" author="bladeofsteel" created="Wed, 29 Sep 2010 13:03:13 +0000"  >&lt;p&gt;&amp;gt; Why do you think this is a deadlock? &lt;/p&gt;

&lt;p&gt;After the queue increases to several thousands of elements and the limit of connections is used up (16000) we switched srv1 to &quot;slave&quot; mode (with the command rs.stepDown()). srv1 switches to state 3 (according to the command rs.status()) and stays there until the instance is restarted. srv2 becomes master and continues working normally. The queue to srv1 either does not reduce (we waited for more than half an hour), or reduces for 1 element per several minutes. &lt;/p&gt;

&lt;p&gt;Apparently, there is some lock, but I can&apos;t find the reason why this happens.&lt;/p&gt;

&lt;p&gt;&amp;gt; What indexes do you have on the iii_patterns.patterns collection?&lt;/p&gt;

&lt;p&gt;db.patterns.stats()    &lt;br/&gt;
{&lt;br/&gt;
	&quot;ns&quot; : &quot;iii_patterns.patterns&quot;,&lt;br/&gt;
	&quot;count&quot; : 938573,&lt;br/&gt;
	&quot;size&quot; : 448177588,&lt;br/&gt;
	&quot;avgObjSize&quot; : 477.5095682488203,&lt;br/&gt;
	&quot;storageSize&quot; : 512674816,&lt;br/&gt;
	&quot;numExtents&quot; : 17,&lt;br/&gt;
	&quot;nindexes&quot; : 3,&lt;br/&gt;
	&quot;lastExtentSize&quot; : 95437056,&lt;br/&gt;
	&quot;paddingFactor&quot; : 1.0099999999996663,&lt;br/&gt;
	&quot;flags&quot; : 1,&lt;br/&gt;
	&quot;totalIndexSize&quot; : 142491648,&lt;br/&gt;
	&quot;indexSizes&quot; : &lt;/p&gt;
{
		&quot;_id_&quot; : 35241984,
		&quot;inf_1_id_1_anc_1_cat_1__ix.a_1&quot; : 61456384,
		&quot;pos_1&quot; : 45793280
	}
&lt;p&gt;,&lt;br/&gt;
	&quot;ok&quot; : 1&lt;br/&gt;
}&lt;/p&gt;</comment>
                            <comment id="18658" author="eliot" created="Wed, 29 Sep 2010 11:26:17 +0000"  >&lt;p&gt;Why do you think this is a deadlock?&lt;br/&gt;
What indexes do you have on the iii_patterns.patterns collection?&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="10481" name="op.json" size="1210207" author="bladeofsteel" created="Wed, 29 Sep 2010 09:13:50 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>3.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 Sep 2010 11:26:17 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 21 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_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>ian@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            13 years, 21 weeks 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="10020"><![CDATA[Linux]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>bladeofsteel</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hriiyv:</customfieldvalue>

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

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

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