<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 02:55:19 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-835] Down replica pair with persistent connection causes hang</title>
                <link>https://jira.mongodb.org/browse/SERVER-835</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;1) Connect to a replica pair setup using a persistent connection from PHP&lt;/p&gt;

&lt;p&gt;2) Take one of the pair instances down (in our case we took down the slave)&lt;/p&gt;

&lt;p&gt;3) All httpd connections hang for a period of time. I assume this is caused by the timeout on the connection?&lt;/p&gt;

&lt;p&gt;This seems to recur every few minutes, although the hang is not as long as the first time, the downed replica pair still causes connections to hang&lt;/p&gt;</description>
                <environment>PHP 5.2.13 Red Hat EL 5&lt;br/&gt;
Linux oxford.boxedice.net 2.6.18-164.11.1.el5 #1 SMP Wed Jan 6 13:26:04 EST 2010 x86_64 x86_64 x86_64 GNU/Linux&lt;br/&gt;
Mongo PHP module 1.0.3 (Git e70b8e5)</environment>
        <key id="11609">SERVER-835</key>
            <summary>Down replica pair with persistent connection causes hang</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="3">Duplicate</resolution>
                                        <assignee username="kristina">Kristina Chodorow</assignee>
                                    <reporter username="boxedice">David Mytton</reporter>
                        <labels>
                    </labels>
                <created>Wed, 24 Mar 2010 10:42:55 +0000</created>
                <updated>Mon, 26 Apr 2010 13:52:48 +0000</updated>
                            <resolved>Fri, 26 Mar 2010 16:13:39 +0000</resolved>
                                    <version>1.2.4</version>
                                                    <component>Replication</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="13201" author="eliot" created="Fri, 26 Mar 2010 16:13:39 +0000"  >&lt;p&gt;See &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-832&quot; title=&quot;set tcp timeout for pairing&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-832&quot;&gt;&lt;del&gt;SERVER-832&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="13200" author="kristina" created="Fri, 26 Mar 2010 15:35:15 +0000"  >&lt;p&gt;Taking down a slave should have 0 effect on the PHP driver, so moving this to SERVER.&lt;/p&gt;</comment>
                            <comment id="13181" author="boxedice" created="Thu, 25 Mar 2010 19:05:52 +0000"  >&lt;p&gt;I didn&apos;t have a chance to run nay commands from the shell during the lag.&lt;/p&gt;</comment>
                            <comment id="13180" author="kristina" created="Thu, 25 Mar 2010 17:36:14 +0000"  >&lt;p&gt;Makes sense!  Have you happened to notice if commands at the shell have the same lag?  &lt;/p&gt;</comment>
                            <comment id="13173" author="boxedice" created="Wed, 24 Mar 2010 16:43:59 +0000"  >&lt;p&gt;We&apos;re using Mongo 1.2.4. I think there&apos;s something going on when I kill the slave because all requests to httpd hang for 30 seconds or so, and then are continually slow after that initial hang. We&apos;re serving ~15 req/s but it&apos;s hard to replicate because it takes our app down, which I don&apos;t like doing &lt;img class=&quot;emoticon&quot; src=&quot;https://jira.mongodb.org/images/icons/emoticons/smile.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>
                            <comment id="13170" author="kristina" created="Wed, 24 Mar 2010 13:02:01 +0000"  >&lt;p&gt;I&apos;m having trouble reproducing this.  Can you tell me what, if anything, is different in what you&apos;re doing?&lt;/p&gt;

&lt;p&gt;I&apos;m starting two servers, no arbiter:&lt;/p&gt;

&lt;p&gt;$ ./mongod --pairwith localhost:27018 --dbpath ~/data1&lt;br/&gt;
$ ./mongod --port 27018 --pairwith localhost:27017 -dbpath ~/data2&lt;/p&gt;

&lt;p&gt;I&apos;m running the following PHP script and alternating killing the dbs:&lt;/p&gt;

&lt;p&gt;&amp;lt;?php&lt;/p&gt;

&lt;p&gt;$m = new Mongo(&quot;mongodb://localhost:27017,localhost:27018&quot;, array(&quot;persist&quot; =&amp;gt; &quot;foo&quot;));&lt;/p&gt;

&lt;p&gt;$c = $m-&amp;gt;foo-&amp;gt;bar;&lt;/p&gt;

&lt;p&gt;while (true) {&lt;br/&gt;
  echo &quot;finding... &quot;;&lt;br/&gt;
  try &lt;/p&gt;
{
    $c-&amp;gt;findOne();
  }
&lt;p&gt;  catch (Exception $e) &lt;/p&gt;
{
    echo $e-&amp;gt;getMessage();
  }
&lt;p&gt;  echo &quot;\n&quot;;&lt;/p&gt;

&lt;p&gt;  sleep(1);&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;?&amp;gt;&lt;/p&gt;

&lt;p&gt;Taking down a slave shouldn&apos;t affect the client at all, it should just be using the master.  What version of the DB are you using?&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>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, 24 Mar 2010 13:02:01 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        13 years, 47 weeks, 5 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>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, 47 weeks, 5 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>boxedice</customfieldvalue>
            <customfieldvalue>eliot</customfieldvalue>
            <customfieldvalue>kristina</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hrppsv:</customfieldvalue>

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

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

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