<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:50:42 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-19360] Out of connections when building an index</title>
                <link>https://jira.mongodb.org/browse/SERVER-19360</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;We don&apos;t have much data on this one, or reproduction steps. However, we&apos;re looking for insight on where to look to debug. Maybe you also saw something similar before.&lt;/p&gt;

&lt;p&gt;We had an issue with one of our primary nodes where a background index build caused mongod to run out of connections. In the log we saw lines like &quot;refusing connection because we already have 20.000 connections&quot;. We couldn&apos;t even connect to mongod via a shell, which made it much harder to debug (feature request: make sure we can access mongod even when max number of connections is reached. maybe always allow an one extra connection from localhost?). &lt;/p&gt;

&lt;p&gt;Here&apos;s an interesting part from the mongodb.log: &lt;a href=&quot;https://gist.github.com/igorcanadi/9182e6f1a49af989642f&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://gist.github.com/igorcanadi/9182e6f1a49af989642f&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It looks like bunch of operations spent a lot of times waiting for an exclusive write lock. Is this expected?&lt;/p&gt;

&lt;p&gt;Any insight would be helpful.&lt;/p&gt;</description>
                <environment></environment>
        <key id="216200">SERVER-19360</key>
            <summary>Out of connections when building an index</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="sam.kleinman">Sam Kleinman</assignee>
                                    <reporter username="igor">Igor Canadi</reporter>
                        <labels>
                    </labels>
                <created>Fri, 10 Jul 2015 18:25:53 +0000</created>
                <updated>Thu, 29 Oct 2015 19:57:31 +0000</updated>
                            <resolved>Thu, 29 Oct 2015 19:57:31 +0000</resolved>
                                    <version>3.0.4</version>
                                                    <component>Index Maintenance</component>
                                        <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="1074574" author="ramon.fernandez" created="Thu, 29 Oct 2015 19:57:23 +0000"  >&lt;p&gt;Thanks &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=igor&quot; class=&quot;user-hover&quot; rel=&quot;igor&quot;&gt;igor&lt;/a&gt;, closing ticket. If you see this again and are able to gather more data just ping us here and we&apos;ll reopen.&lt;/p&gt;</comment>
                            <comment id="1073327" author="igor" created="Wed, 28 Oct 2015 20:37:00 +0000"  >&lt;p&gt;Unfortunately (or, well, fortunately), this issue hasn&apos;t happened since. &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-19365&quot; title=&quot;Allow one extra connection from localhost even if mongod is out of connections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-19365&quot;&gt;&lt;del&gt;SERVER-19365&lt;/del&gt;&lt;/a&gt; would still be good to address, but we can close this ticket I think.&lt;/p&gt;</comment>
                            <comment id="1073003" author="ramon.fernandez" created="Wed, 28 Oct 2015 17:00:14 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=igor&quot; class=&quot;user-hover&quot; rel=&quot;igor&quot;&gt;igor&lt;/a&gt;, do you have any more data that can help us diagnose this ticket?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Ram&#243;n.&lt;/p&gt;</comment>
                            <comment id="963747" author="igor" created="Fri, 10 Jul 2015 22:55:49 +0000"  >&lt;p&gt;Thanks Sam. I created &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-19365&quot; title=&quot;Allow one extra connection from localhost even if mongod is out of connections&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-19365&quot;&gt;&lt;del&gt;SERVER-19365&lt;/del&gt;&lt;/a&gt; to track the extra connection.&lt;/p&gt;

&lt;p&gt;We&apos;ll get back to you with more data soon.&lt;/p&gt;</comment>
                            <comment id="963732" author="samk" created="Fri, 10 Jul 2015 22:25:55 +0000"  >&lt;p&gt;We should track the request for the ability to open one more connection on localhost separately from this issue. &lt;/p&gt;

&lt;p&gt;It doesn&apos;t look like the operations should back up on the index builds like this. A few questions: &lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;Do you have insight into what kind of operations are waiting? Are they operations that you can time out more aggressively?&lt;/li&gt;
	&lt;li&gt;Are you building TTL indexes in the background? TTL deletions will begin before the background index build completes, and there may be some interaction there.&lt;/li&gt;
	&lt;li&gt;Is this happening consistently for these kinds of index builds, or is there something special about the index builds or MongoDB instances where these errors are happening?&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Sorry for the frustration, please keep us posted if you find more information or a possible reproduction.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
sam&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="216253">SERVER-19365</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>5.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 10 Jul 2015 22:25:55 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        8 years, 15 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>
                            8 years, 15 weeks, 6 days ago
                        </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>igor</customfieldvalue>
            <customfieldvalue>ramon.fernandez@mongodb.com</customfieldvalue>
            <customfieldvalue>sam.kleinman</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrl0x3:</customfieldvalue>

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

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