<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:37:56 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-824] IIS AppPool crashing due to possible socket exception with MongoDB driver 1.3.1</title>
                <link>https://jira.mongodb.org/browse/CSHARP-824</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;IIS AppPool crashing with the following error. &lt;/p&gt;

&lt;p&gt;Exception: System.Net.Sockets.SocketException&lt;/p&gt;

&lt;p&gt;Message: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond&lt;/p&gt;

&lt;p&gt;StackTrace:    at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)&lt;br/&gt;
   at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)&lt;br/&gt;
   at System.Net.Sockets.TcpClient.Connect(IPEndPoint remoteEP)&lt;br/&gt;
   at MongoDB.Driver.Internal.MongoConnection.Open() in C:\work\10gen\mongodb\mongo-csharp-driver\Driver\Internal\MongoConnection.cs:line 315&lt;br/&gt;
   at MongoDB.Driver.Internal.MongoConnection.GetNetworkStream() in C:\work\10gen\mongodb\mongo-csharp-driver\Driver\Internal\MongoConnection.cs:line 462&lt;br/&gt;
   at MongoDB.Driver.Internal.MongoConnection.SendMessage(MongoRequestMessage message, SafeMode safeMode) in C:\work\10gen\mongodb\mongo-csharp-driver\Driver\Internal\MongoConnection.cs:line 430&lt;br/&gt;
   at MongoDB.Driver.MongoCursorEnumerator`1.GetReply(MongoConnection connection, MongoRequestMessage message) in C:\work\10gen\mongodb\mongo-csharp-driver\Driver\Core\MongoCursorEnumerator.cs:line 262&lt;br/&gt;
   at MongoDB.Driver.MongoCursorEnumerator`1.GetFirst() in C:\work\10gen\mongodb\mongo-csharp-driver\Driver\Core\MongoCursorEnumerator.cs:line 223&lt;br/&gt;
   at MongoDB.Driver.MongoCursorEnumerator`1.MoveNext() in C:\work\10gen\mongodb\mongo-csharp-driver\Driver\Core\MongoCursorEnumerator.cs:line 126&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;br/&gt;
   at MongoDB.Driver.MongoCollection.FindOneAs&lt;span class=&quot;error&quot;&gt;&amp;#91;TDocument&amp;#93;&lt;/span&gt;(IMongoQuery query) in C:\work\10gen\mongodb\mongo-csharp-driver\Driver\Core\MongoCollection.cs:line 498&lt;br/&gt;
   at MongoDB.Driver.MongoCollection`1.FindOne(IMongoQuery query) in C:\work\10gen\mongodb\mongo-csharp-driver\Driver\Core\MongoCollection.cs:line 1639&lt;br/&gt;
   at MongoDB.Driver.MongoDatabase.RunCommandAs(Type commandResultType, IMongoCommand command) in C:\work\10gen\mongodb\mongo-csharp-driver\Driver\Core\MongoDatabase.cs:line 891&lt;br/&gt;
   at MongoDB.Driver.MongoDatabase.RunCommandAs&lt;span class=&quot;error&quot;&gt;&amp;#91;TCommandResult&amp;#93;&lt;/span&gt;(IMongoCommand command) in C:\work\10gen\mongodb\mongo-csharp-driver\Driver\Core\MongoDatabase.cs:line 866&lt;br/&gt;
   at MongoDB.Driver.MongoDatabase.RunCommand(IMongoCommand command) in C:\work\10gen\mongodb\mongo-csharp-driver\Driver\Core\MongoDatabase.cs:line 843&lt;br/&gt;
   at MongoDB.Driver.MongoCollection.Count(IMongoQuery query) in C:\work\10gen\mongodb\mongo-csharp-driver\Driver\Core\MongoCollection.cs:line 112&lt;br/&gt;
   at MongoDB.Driver.MongoCollection.IndexExistsByName(String indexName) in C:\work\10gen\mongodb\mongo-csharp-driver\Driver\Core\MongoCollection.cs:line 847&lt;br/&gt;
   at MongoDB.Driver.MongoCollection.IndexExists(String[] keyNames) in C:\work\10gen\mongodb\mongo-csharp-driver\Driver\Core\MongoCollection.cs:line 831&lt;br/&gt;
   at Volusion.Core.Data.Logging.MongoDbBatchAppender.get_LogEventCollection()&lt;br/&gt;
   at Volusion.Core.Data.Logging.MongoDbBatchAppender.SendBuffer(LoggingEvent[] events)&lt;br/&gt;
   at log4net.Appender.BufferingAppenderSkeleton.SendFromBuffer(LoggingEvent firstLoggingEvent, CyclicBuffer buffer)&lt;br/&gt;
   at log4net.Appender.BufferingAppenderSkeleton.Flush(Boolean flushLossyBuffer)&lt;br/&gt;
   at Volusion.Core.Logging.AppenderFlushTimer.&amp;lt;.ctor&amp;gt;b__0(Object o)&lt;br/&gt;
   at System.Threading._TimerCallback.TimerCallback_Context(Object state)&lt;br/&gt;
   at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)&lt;br/&gt;
   at System.Threading._TimerCallback.PerformTimerCallback(Object state)&lt;/p&gt;</description>
                <environment>Windows 2008 R2, IIS 7.5</environment>
        <key id="90178">CSHARP-824</key>
            <summary>IIS AppPool crashing due to possible socket exception with MongoDB driver 1.3.1</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="aatkins79">Aaron Atkins</reporter>
                        <labels>
                    </labels>
                <created>Tue, 17 Sep 2013 00:28:07 +0000</created>
                <updated>Thu, 20 Mar 2014 14:37:31 +0000</updated>
                            <resolved>Thu, 19 Sep 2013 11:58:17 +0000</resolved>
                                    <version>1.3.1</version>
                                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="426653" author="craiggwilson" created="Tue, 17 Sep 2013 02:16:30 +0000"  >&lt;p&gt;1.3.1 is very old and a number of releases have happened since then.  If this is an actual bug, then there is a high probability that it has been fixed in more recent releases.  We are currently on version 1.8.2.&lt;/p&gt;

&lt;p&gt;In general regarding MongoDB, there are going to be exceptions and you need to be prepared to handle them.  If a primary goes down and you attempt a write, you&apos;re going to get an exception because there isn&apos;t anywhere to write to.  If this exception gets raised in a background thread (like a timer event as seen in your stacktrace) and isn&apos;t caught and handled, then your app pool is going to crash.  I&apos;d check into your MongoDbBatchAppender and ensure you are protecting yourself from exceptions.&lt;/p&gt;</comment>
                    </comments>
                    <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|hrsxlr:</customfieldvalue>

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