<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:40: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>[CSHARP-1663]  MongoDB.Driver.Core.Clusters.Cluster.ThrowTimeoutException</title>
                <link>https://jira.mongodb.org/browse/CSHARP-1663</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;In this scenario, there are two computers with a 1Gbps private link.&lt;br/&gt;
MongoDB runs on one and the application having problems on the other one.&lt;/p&gt;

&lt;p&gt;After a few days of running with roughly 10-15 transactions / seconds, I am getting Timeout errors.&lt;/p&gt;

&lt;p&gt;The database replies properly on its host.&lt;br/&gt;
The link between the two machine is working properly.&lt;/p&gt;

&lt;p&gt;There is no replica set, etc, just a single database.&lt;br/&gt;
CPU usage is low, there is plenty of memory; that on both computers&lt;br/&gt;
I can&apos;t figure out what causes this problem; here is the log:&lt;/p&gt;

&lt;p&gt;Exception Info: System.TimeoutException&lt;br/&gt;
   at MongoDB.Driver.Core.Clusters.Cluster.ThrowTimeoutException(MongoDB.Driver.Core.Clusters.ServerSelectors.IServerSelector, MongoDB.Driver.Core.Clusters.ClusterDescription)&lt;br/&gt;
   at MongoDB.Driver.Core.Clusters.Cluster+WaitForDescriptionChangedHelper.HandleCompletedTask(System.Threading.Tasks.Task)&lt;br/&gt;
   at MongoDB.Driver.Core.Clusters.Cluster+&amp;lt;WaitForDescriptionChangedAsync&amp;gt;d__44.MoveNext()&lt;br/&gt;
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)&lt;br/&gt;
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)&lt;br/&gt;
   at MongoDB.Driver.Core.Clusters.Cluster+&amp;lt;SelectServerAsync&amp;gt;d__37.MoveNext()&lt;br/&gt;
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)&lt;br/&gt;
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)&lt;br/&gt;
   at MongoDB.Driver.Core.Bindings.WritableServerBinding+&amp;lt;GetWriteChannelSourceAsync&amp;gt;d__8.MoveNext()&lt;br/&gt;
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)&lt;br/&gt;
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)&lt;br/&gt;
   at MongoDB.Driver.Core.Operations.CreateIndexesOperation+&amp;lt;ExecuteAsync&amp;gt;d__15.MoveNext()&lt;br/&gt;
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)&lt;br/&gt;
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)&lt;br/&gt;
   at MongoDB.Driver.OperationExecutor+&amp;lt;ExecuteWriteOperationAsync&amp;gt;d__3`1[&lt;span class=&quot;error&quot;&gt;&amp;#91;System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&amp;#93;&lt;/span&gt;].MoveNext()&lt;br/&gt;
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)&lt;br/&gt;
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)&lt;br/&gt;
   at MongoDB.Driver.MongoCollectionImpl`1+&amp;lt;ExecuteWriteOperationAsync&amp;gt;d__61`1[&lt;span class=&quot;error&quot;&gt;&amp;#91;System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&amp;#93;&lt;/span&gt;,&lt;span class=&quot;error&quot;&gt;&amp;#91;System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&amp;#93;&lt;/span&gt;].MoveNext()&lt;br/&gt;
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)&lt;br/&gt;
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)&lt;br/&gt;
   at MongoDB.Driver.MongoCollectionImpl`1+MongoIndexManager+&amp;lt;CreateManyAsync&amp;gt;d__9[&lt;span class=&quot;error&quot;&gt;&amp;#91;System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&amp;#93;&lt;/span&gt;].MoveNext()&lt;br/&gt;
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(System.Threading.Tasks.Task)&lt;br/&gt;
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(System.Threading.Tasks.Task)&lt;br/&gt;
   at MongoDB.Driver.MongoIndexManagerBase`1+&amp;lt;CreateOneAsync&amp;gt;d__7[&lt;span class=&quot;error&quot;&gt;&amp;#91;System.__Canon, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&amp;#93;&lt;/span&gt;].MoveNext()&lt;/p&gt;
</description>
                <environment>Windows / C# / .NET 4.0.30319</environment>
        <key id="286192">CSHARP-1663</key>
            <summary> MongoDB.Driver.Core.Clusters.Cluster.ThrowTimeoutException</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</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="5">Cannot Reproduce</resolution>
                                        <assignee username="robert@mongodb.com">Robert Stam</assignee>
                                    <reporter username="ThomasD3">TD [X]</reporter>
                        <labels>
                            <label>question</label>
                    </labels>
                <created>Thu, 12 May 2016 00:00:55 +0000</created>
                <updated>Fri, 5 Apr 2019 13:58:43 +0000</updated>
                            <resolved>Mon, 22 Jan 2018 14:09:14 +0000</resolved>
                                    <version>2.2.3</version>
                                                    <component>Connectivity</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="1780557" author="rstam" created="Mon, 22 Jan 2018 14:09:04 +0000"  >&lt;p&gt;Linking to &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-2147&quot; title=&quot;Add logging of heartbeat information and SDAM state transitions&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-2147&quot;&gt;&lt;del&gt;CSHARP-2147&lt;/del&gt;&lt;/a&gt; as additional logging would have helped troubleshoot the potential issue.&lt;/p&gt;</comment>
                            <comment id="1263416" author="thomasd3" created="Fri, 13 May 2016 08:59:49 +0000"  >&lt;p&gt;Hi Craig,&lt;/p&gt;

&lt;p&gt;I don&apos;t have the logs with the exception anymore; unfortunately this one happens after a few days, so I will have to wait for the next instance.&lt;/p&gt;

&lt;p&gt;On the same system, I also get a queue full exception regularly;I wonder if it is possible that both are related as multiple services talk to the DB; possibly one times out if the queue is full causing the error from above.&lt;/p&gt;

&lt;p&gt;This is what I get regularly:&lt;br/&gt;
Inner Exception System.AggregateException: One or more errors occurred. ---&amp;gt; MongoDB.Driver.MongoWaitQueueFullException: The wait queue for acquiring a connection to server brain:27017 is full.&lt;br/&gt;
   at MongoDB.Driver.Core.ConnectionPools.ExclusiveConnectionPool.AcquireConnectionHelper.CheckingOutConnection()&lt;br/&gt;
   at MongoDB.Driver.Core.ConnectionPools.ExclusiveConnectionPool.&amp;lt;AcquireConnectionAsync&amp;gt;d__35.MoveNext()&lt;/p&gt;

&lt;p&gt;I have this in the connection string: ?maxPoolSize=10000 so I am assuming the queue is large enough.&lt;/p&gt;

&lt;p&gt;As the API has now been async for a while, the code just throws requests whenever it needs them.&lt;/p&gt;</comment>
                            <comment id="1262802" author="craiggwilson" created="Thu, 12 May 2016 14:43:22 +0000"  >&lt;p&gt;Hi TD,&lt;/p&gt;

&lt;p&gt;Sorry you are having some trouble. Could you provide the exception message, not just the exception stacktrace? The message contains some valuable information about the state of the current cluster. Also, if you could provide the client.Cluster.ClusterDescription.ToString() value at the time you are getting the exception, that could be helpful as well.&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
Craig&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="481662">CSHARP-2147</issuekey>
        </issuelink>
                            </outwardlinks>
                                                        </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hslcun:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>