<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:37:44 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-754] Driver could not reconnect to the server after socket exception, had to recycle application pool.</title>
                <link>https://jira.mongodb.org/browse/CSHARP-754</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;After a network error occurred between one of our web servers and Mongo (&quot;SocketException: No such host is known&quot;) all subsequent requests to the replica set from that particular web server failed with the same error, while other web servers worked perfectly fine. After recycling the IIS application pool no more connection errors have been reported. &lt;/p&gt;


&lt;p&gt;Our database object is a singleton. We did a quick test pointing to a single-instance server (no replica set) and we were not able to reproduce the issue after stopping and restarting the mongo server (after mongo restarted the drivers were able to contact Mongo again without recycling the application pool). We think this &lt;b&gt;might&lt;/b&gt; have something to do with the replica set.&lt;/p&gt;


&lt;p&gt;Stack trace:&lt;/p&gt;

&lt;p&gt;2013-06-10 12:52:17,118 WARN  - &lt;br/&gt;
 MongoDB.Driver.MongoConnectionException: Unable to connect to a member of the replica set matching the read preference Primary: No such host is known. ---&amp;gt; System.Net.Sockets.SocketException: No such host is known&lt;br/&gt;
   at System.Net.Dns.InternalGetHostByName(String hostName, Boolean includeIPv6)&lt;br/&gt;
   at System.Net.Dns.GetHostAddresses(String hostNameOrAddress)&lt;br/&gt;
   at MongoDB.Driver.MongoServerAddress.ToIPEndPoint(AddressFamily addressFamily) in C:\build\mongo-csharp-driver\Driver\Core\MongoServerAddress.cs:line 196&lt;br/&gt;
   at MongoDB.Driver.MongoServerInstance.GetIPEndPoint() in C:\build\mongo-csharp-driver\Driver\Core\MongoServerInstance.cs:line 339&lt;br/&gt;
   at MongoDB.Driver.Internal.MongoConnection.Open() in C:\build\mongo-csharp-driver\Driver\Internal\MongoConnection.cs:line 368&lt;br/&gt;
   at MongoDB.Driver.Internal.MongoConnection.SendMessage(MongoRequestMessage message, WriteConcern writeConcern, String databaseName) in C:\build\mongo-csharp-driver\Driver\Internal\MongoConnection.cs:line 559&lt;br/&gt;
   at MongoDB.Driver.Internal.MongoConnection.RunCommand(String databaseName, QueryFlags queryFlags, CommandDocument command, Boolean throwOnError) in C:\build\mongo-csharp-driver\Driver\Internal\MongoConnection.cs:line 425&lt;br/&gt;
   at MongoDB.Driver.MongoServerInstance.Ping(MongoConnection connection) in C:\build\mongo-csharp-driver\Driver\Core\MongoServerInstance.cs:line 695&lt;br/&gt;
   at MongoDB.Driver.MongoServerInstance.Connect() in C:\build\mongo-csharp-driver\Driver\Core\MongoServerInstance.cs:line 480&lt;br/&gt;
   at MongoDB.Driver.Internal.MultipleInstanceMongoServerProxy.&amp;lt;&amp;gt;c_&lt;em&gt;DisplayClassd.&amp;lt;ConnectInstance&amp;gt;b&lt;/em&gt;_c(Object _) in C:\build\mongo-csharp-driver\Driver\Internal\MultipleInstanceMongoServerProxy.cs:line 415&lt;br/&gt;
   &amp;#8212; End of inner exception stack trace &amp;#8212;&lt;br/&gt;
   at MongoDB.Driver.Internal.MultipleInstanceMongoServerProxy.ThrowConnectionException(ReadPreference readPreference) in C:\build\mongo-csharp-driver\Driver\Internal\MultipleInstanceMongoServerProxy.cs:line 509&lt;br/&gt;
   at MongoDB.Driver.Internal.MultipleInstanceMongoServerProxy.Connect(TimeSpan timeout, ReadPreference readPreference) in C:\build\mongo-csharp-driver\Driver\Internal\MultipleInstanceMongoServerProxy.cs:line 224&lt;br/&gt;
   at MongoDB.Driver.Internal.MultipleInstanceMongoServerProxy.ChooseServerInstance(ReadPreference readPreference) in C:\build\mongo-csharp-driver\Driver\Internal\MultipleInstanceMongoServerProxy.cs:line 159&lt;br/&gt;
   at MongoDB.Driver.MongoServer.AcquireConnection(MongoDatabase database, ReadPreference readPreference) in C:\build\mongo-csharp-driver\Driver\Core\MongoServer.cs:line 1058&lt;br/&gt;
   at MongoDB.Driver.MongoCursorEnumerator`1.AcquireConnection() in C:\build\mongo-csharp-driver\Driver\Core\MongoCursorEnumerator.cs:line 299&lt;br/&gt;
   at MongoDB.Driver.MongoCursorEnumerator`1.GetFirst() in C:\build\mongo-csharp-driver\Driver\Core\MongoCursorEnumerator.cs:line 312&lt;br/&gt;
   at MongoDB.Driver.MongoCursorEnumerator`1.MoveNext() in C:\build\mongo-csharp-driver\Driver\Core\MongoCursorEnumerator.cs:line 230&lt;br/&gt;
   at System.Linq.Enumerable.FirstOrDefault&lt;span class=&quot;error&quot;&gt;&amp;#91;TSource&amp;#93;&lt;/span&gt;(IEnumerable`1 source)&lt;/p&gt;</description>
                <environment>Client: Windows .NET 4, Server: Linux (CentOS).</environment>
        <key id="78467">CSHARP-754</key>
            <summary>Driver could not reconnect to the server after socket exception, had to recycle application pool.</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="-1">Unassigned</assignee>
                                    <reporter username="stefanoric">Stefano Ricciardi</reporter>
                        <labels>
                    </labels>
                <created>Mon, 10 Jun 2013 16:08:03 +0000</created>
                <updated>Thu, 20 Mar 2014 14:37:04 +0000</updated>
                            <resolved>Mon, 10 Jun 2013 17:06:32 +0000</resolved>
                                    <version>1.7</version>
                                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="356918" author="craiggwilson" created="Mon, 10 Jun 2013 17:06:32 +0000"  >&lt;p&gt;Hi Stefano,&lt;br/&gt;
  This is a known issue with versions 1.6 - 1.7 (&lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-654&quot; title=&quot;Client does not recover automatically from certain failures&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-654&quot;&gt;&lt;del&gt;CSHARP-654&lt;/del&gt;&lt;/a&gt;).  It has been fixed in the 1.8 version.  Upgrading your driver version will fix this problem.&lt;/p&gt;

&lt;p&gt;Sorry about the trouble.&lt;br/&gt;
Craig&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                        <issuelink>
            <issuekey id="60310">CSHARP-654</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|hrr28v:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>71721</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>