<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 03:40:02 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-16122] PRIMARY down on sharded cluster - downtime</title>
                <link>https://jira.mongodb.org/browse/SERVER-16122</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I&apos;ve got downtime (read queries cannot complete) when PRIMARY is down in sharded cluster.&lt;br/&gt;
It takes from about 20-30s (original mongo gem),&lt;br/&gt;
however original mongo gem is not a problem as I can&apos;t issue a query during that time while connecting to mongos directly with mongo client.&lt;br/&gt;
Upgrading to mongo 2.6 didn&apos;t improve downtime at all.&lt;/p&gt;</description>
                <environment></environment>
        <key id="168980">SERVER-16122</key>
            <summary>PRIMARY down on sharded cluster - downtime</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="ramon.fernandez@mongodb.com">Ramon Fernandez Marina</assignee>
                                    <reporter username="lowang">Przemek Wroblewski</reporter>
                        <labels>
                    </labels>
                <created>Thu, 13 Nov 2014 08:59:28 +0000</created>
                <updated>Fri, 10 Apr 2015 19:44:35 +0000</updated>
                            <resolved>Fri, 10 Apr 2015 19:44:35 +0000</resolved>
                                    <version>2.4.12</version>
                    <version>2.6.5</version>
                                                    <component>Sharding</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="870478" author="ramon.fernandez" created="Wed, 1 Apr 2015 18:07:28 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=lowang&quot; class=&quot;user-hover&quot; rel=&quot;lowang&quot;&gt;lowang&lt;/a&gt;, we haven&apos;t heard back from you for a while. Is this still an issue for you? If yes, can you please follow up on Randolph&apos;s questions above?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Ram&#243;n&lt;/p&gt;</comment>
                            <comment id="849019" author="renctan" created="Wed, 11 Mar 2015 17:04:17 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;What kind of query are you performing? Is it a slave ok read or does it have a read preference other than PRIMARY?&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;</comment>
                            <comment id="812991" author="lowang" created="Mon, 26 Jan 2015 14:30:18 +0000"  >&lt;p&gt;I&apos;ve uploaded logs to &lt;a href=&quot;https://gist.github.com/lowang/f47ff1372728efc356d6&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://gist.github.com/lowang/f47ff1372728efc356d6&lt;/a&gt;&lt;br/&gt;
Since I&apos;m running this experiment on local computer using:&lt;/p&gt;

&lt;p&gt;mongo -nodb&lt;br/&gt;
cluster = new ShardingTest({shards : 1, rs : {nodes : [{}, {}, &lt;/p&gt;
{arbiter: true}
&lt;p&gt;]} });&lt;/p&gt;

&lt;p&gt;all logs were redirected to stdout and merged together.&lt;br/&gt;
&quot;Failing instance&quot; was added from VM by connecting to existing primary:&lt;/p&gt;

&lt;p&gt;mongo Lowang-MacBook-Pro.local:31100&lt;br/&gt;
&amp;gt; rs.add({_id: 3, host: &quot;192.168.59.103:27017&quot;, priority: 2}); &lt;/p&gt;

&lt;p&gt;Higher priority made it primary after initialisation.&lt;/p&gt;

&lt;p&gt;Then I&apos;ve paused remote instance on 15:12:45, since then my test script was only getting:&lt;br/&gt;
Mongo::OperationTimeout: Timed out waiting on socket read.&lt;br/&gt;
On 15:13:16 my test script was able to successfully fetch data.&lt;/p&gt;</comment>
                            <comment id="812166" author="ramon.fernandez" created="Fri, 23 Jan 2015 20:37:10 +0000"  >&lt;p&gt;Can you please upload logs from the &lt;tt&gt;mongos&lt;/tt&gt; servers you&apos;re seeing this behavior from, as well as &lt;tt&gt;mongod&lt;/tt&gt; logs for all the shards that contain a PRIMARY that&apos;s down?&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="62795" name="logs" size="81289" author="ramon.fernandez@mongodb.com" created="Mon, 26 Jan 2015 15:57:46 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>4.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 23 Jan 2015 20:37:10 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        8 years, 46 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>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, 46 weeks 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>lowang</customfieldvalue>
            <customfieldvalue>ramon.fernandez@mongodb.com</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|hrlj1r:</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>147805</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;I can replicate this behaviour when running mongos on top of single replicaset (PRIMARY, SECONDARY, ARBITER), then I run simple ruby script (&lt;a href=&quot;https://gist.github.com/lowang/5fc24c6e40b03a613d2b&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://gist.github.com/lowang/5fc24c6e40b03a613d2b&lt;/a&gt; - using original mongo gem, with secondary_preferred) issuing 2 read queries per second to sharded collection.&lt;br/&gt;
Then I simulate PRIMARY server problem by issuing &quot;halt -n -f&quot; on it&apos;s virtual machine. After few seconds script cannot get results.&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|hrlgtb:</customfieldvalue>

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