<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:24:49 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-30728] Low Azure socket timeout may cause initial sync failure</title>
                <link>https://jira.mongodb.org/browse/SERVER-30728</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Hi Team,&lt;/p&gt;

&lt;p&gt;We are running a MongoDB instance on Azure VM with default settings. We notice that Azure VM tends to close socket connection if it&apos;s not active in several minutes. When we are trying to initial sync from MongoDB on Azure VM to another replica set member, syncing always fails because the connection will be dropped when there&apos;s no network traffic for several minutes (e.g., when the startup instance is building an index), and initial sync will start all over.&lt;/p&gt;

&lt;p&gt;A sample log snippet:&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;building index here...&amp;#93;&lt;/span&gt;&lt;br/&gt;
2017-08-17T19:06:30.632+0800 I NETWORK  &lt;span class=&quot;error&quot;&gt;&amp;#91;rsSync&amp;#93;&lt;/span&gt; Socket recv() errno:10053 An established connection was aborted by the software in your host machine. &lt;span class=&quot;error&quot;&gt;&amp;#91;***.***.***.***:*****&amp;#93;&lt;/span&gt;&lt;br/&gt;
2017-08-17T19:06:30.632+0800 I NETWORK  &lt;span class=&quot;error&quot;&gt;&amp;#91;rsSync&amp;#93;&lt;/span&gt; SocketException: remote: (NONE):0 error: 9001 socket exception &lt;span class=&quot;error&quot;&gt;&amp;#91;RECV_ERROR&amp;#93;&lt;/span&gt; server &lt;span class=&quot;error&quot;&gt;&amp;#91;***.***.***.***:*****&amp;#93;&lt;/span&gt;&lt;br/&gt;
2017-08-17T19:06:30.632+0800 I NETWORK  &lt;span class=&quot;error&quot;&gt;&amp;#91;rsSync&amp;#93;&lt;/span&gt; DBClientCursor::init call() failed&lt;br/&gt;
2017-08-17T19:06:30.640+0800 E REPL     &lt;span class=&quot;error&quot;&gt;&amp;#91;rsSync&amp;#93;&lt;/span&gt; 13386 socket error for mapping query&lt;br/&gt;
2017-08-17T19:06:30.640+0800 E REPL     &lt;span class=&quot;error&quot;&gt;&amp;#91;rsSync&amp;#93;&lt;/span&gt; initial sync attempt failed, 9 attempts remaining&lt;br/&gt;
2017-08-17T19:06:35.641+0800 I REPL     &lt;span class=&quot;error&quot;&gt;&amp;#91;rsSync&amp;#93;&lt;/span&gt; initial sync pending&lt;br/&gt;
2017-08-17T19:06:35.643+0800 I REPL     &lt;span class=&quot;error&quot;&gt;&amp;#91;ReplicationExecutor&amp;#93;&lt;/span&gt; syncing from: &amp;lt;HOSTNAME&amp;gt;:*****&lt;br/&gt;
2017-08-17T19:06:36.454+0800 I REPL     &lt;span class=&quot;error&quot;&gt;&amp;#91;rsSync&amp;#93;&lt;/span&gt; initial sync drop all databases&lt;br/&gt;
2017-08-17T19:06:36.454+0800 I STORAGE  &lt;span class=&quot;error&quot;&gt;&amp;#91;rsSync&amp;#93;&lt;/span&gt; dropAllDatabasesExceptLocal 14&lt;br/&gt;
2017-08-17T19:06:43.928+0800 I REPL     &lt;span class=&quot;error&quot;&gt;&amp;#91;rsSync&amp;#93;&lt;/span&gt; initial sync clone all databases&lt;/p&gt;

&lt;p&gt;For MongoDB client, this can be resolved by set MaxConnectionIdleTime, but it seems there&apos;s no way to configure the same for replica sets, and hence Azure users (if not tweaking OS settings) will find it hard to sync data to another replica set out of Azure VM.&lt;/p&gt;

&lt;p&gt;Can we have an option to either specify max connection time for replica set, or make the initial sync not fail completely on a single connection failure?&lt;/p&gt;</description>
                <environment></environment>
        <key id="417804">SERVER-30728</key>
            <summary>Low Azure socket timeout may cause initial sync failure</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="9">Done</resolution>
                                        <assignee username="ramon.fernandez@mongodb.com">Ramon Fernandez Marina</assignee>
                                    <reporter username="wekurtz">WenniZ</reporter>
                        <labels>
                    </labels>
                <created>Fri, 18 Aug 2017 06:22:12 +0000</created>
                <updated>Fri, 27 Oct 2017 17:18:19 +0000</updated>
                            <resolved>Thu, 14 Sep 2017 21:03:49 +0000</resolved>
                                                                    <component>Admin</component>
                                        <votes>0</votes>
                                    <watches>9</watches>
                                                                                                                <comments>
                            <comment id="1673330" author="ramon.fernandez" created="Thu, 14 Sep 2017 21:03:39 +0000"  >&lt;p&gt;Thanks for the update &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=wekurtz&quot; class=&quot;user-hover&quot; rel=&quot;wekurtz&quot;&gt;wekurtz&lt;/a&gt;, and glad to hear you&apos;ve found a solution. I&apos;ve adjusted the issue summary to make it easier for others to find and I&apos;m going to close it.&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
Ram&#243;n.&lt;/p&gt;</comment>
                            <comment id="1656780" author="wekurtz" created="Fri, 25 Aug 2017 00:50:46 +0000"  >&lt;p&gt;Team - per solution above I&apos;m fine to close this issue. &lt;/p&gt;</comment>
                            <comment id="1652479" author="wekurtz" created="Mon, 21 Aug 2017 01:25:34 +0000"  >&lt;p&gt;This should relates to Azure TCP timeout setting which is only 4 minutes by default.&lt;/p&gt;

&lt;p&gt;A workaround is to increase Azure timeout to 30min in Azure Powershell:&lt;/p&gt;

&lt;p&gt;Add-AzureRmAccount&lt;br/&gt;
$p = Get-AzureRmPublicIpAddress&lt;br/&gt;
$p.IdleTimeoutInMinutes = 30&lt;br/&gt;
Set-AzureRmPublicIpAddress -PublicIpAddress $p&lt;/p&gt;

&lt;p&gt;By doing so I&apos;ve eliminated disconnections for my database.&lt;/p&gt;</comment>
                            <comment id="1651173" author="wekurtz" created="Fri, 18 Aug 2017 07:16:03 +0000"  >&lt;p&gt;Hi Ram&#243;n,&lt;/p&gt;

&lt;p&gt;Thank you for the prompt reply. I&apos;m on 3.2 currently.&lt;br/&gt;
Let me upgrade to 3.4.7 to see if I could replicate this error.&lt;/p&gt;</comment>
                            <comment id="1651169" author="ramon.fernandez" created="Fri, 18 Aug 2017 06:57:13 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=wekurtz&quot; class=&quot;user-hover&quot; rel=&quot;wekurtz&quot;&gt;wekurtz&lt;/a&gt;, what version of MongoDB are your running? It seems Azure may have some settings that account for the behavior you&apos;re seeing, and would be useful for us to know if the most recent production release (3.4.7) exhibits the behavior you describe.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Ram&#243;n.&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>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, 18 Aug 2017 06:53:46 +0000</customfieldvalue>

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

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            6 years, 21 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>ramon.fernandez@mongodb.com</customfieldvalue>
            <customfieldvalue>wekurtz</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|htd7wn:</customfieldvalue>

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

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