<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:37:55 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-817] Randomly freezing</title>
                <link>https://jira.mongodb.org/browse/CSHARP-817</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;A SystemFileWatcher is running and delegate execution using reflection, the system perform multiple kind of actions,including data import into MongoDB since 2 years. The system suddenly start freezing when handling MongoDB import. This occurs after switching the project to .NET Framework 4.5 .&lt;br/&gt;
I never find any way to predict the freezing behavior and restarting the application allow to continue the processing.&lt;/p&gt;

&lt;p&gt;Please find hereafter the failing code: no exception triggered, only apps freezing.&lt;/p&gt;



&lt;p&gt;public bool Save(MongoCollection col, bool replace)&lt;br/&gt;
         {&lt;br/&gt;
             this.CountSet++;&lt;br/&gt;
            if (Id == ObjectId.Empty)&lt;/p&gt;
             {
                 MongoGridFSFileInfo gridFsInfo =
 col.Database.GridFS.Upload(LocalFilename, this.Name + this.Ext);
                 this.Id = gridFsInfo.Id.AsObjectId;
                 col.Save(this,WriteConcern.Acknowledged); 
             }
&lt;p&gt;             else&lt;br/&gt;
             {&lt;br/&gt;
                 if (replace)&lt;br/&gt;
                {&lt;br/&gt;
                    using (var fs = new FileStream(LocalFilename,&lt;br/&gt;
 FileMode.Open))&lt;/p&gt;
                     {
                         col.Database.GridFS.DeleteById(Id);
                         MongoGridFSCreateOptions opt = new
 MongoGridFSCreateOptions();
                         opt.Id = Id;
                         MongoGridFSFileInfo gridFsInfo =
 col.Database.GridFS.Upload(fs, this.Name + this.Ext, opt);
                    }
&lt;p&gt;                 }&lt;br/&gt;
                 col.Save(this, WriteConcern.Acknowledged); &lt;br/&gt;
             }&lt;br/&gt;
            return true;&lt;br/&gt;
         }&lt;/p&gt;</description>
                <environment>Server farm mongodb, replicaset + shard version 2.4.6 (64bit 2008R2)&lt;br/&gt;
Client app is running on .NET Framweork 4.5</environment>
        <key id="89256">CSHARP-817</key>
            <summary>Randomly freezing</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="5">Cannot Reproduce</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="abigate">John Smith</reporter>
                        <labels>
                            <label>freeze</label>
                    </labels>
                <created>Tue, 10 Sep 2013 19:33:25 +0000</created>
                <updated>Sat, 4 Apr 2015 22:51:43 +0000</updated>
                            <resolved>Sat, 4 Apr 2015 22:51:43 +0000</resolved>
                                    <version>1.8.2</version>
                                                                        <votes>0</votes>
                                    <watches>1</watches>
                                                                                                                <comments>
                            <comment id="518202" author="abigate" created="Tue, 18 Mar 2014 09:37:22 +0000"  >&lt;p&gt;Using procexplorer and remote debugger we finally identified the thread eating up the CPU resources.&lt;br/&gt;
The incriminated method seems to be MongoDB.Driver.MongoServerInstance.Ping&lt;/p&gt;


&lt;p&gt;MongoDB.Driver.dll!MongoDB.Driver.MongoServerInstance.Ping(MongoDB.Driver.Internal.MongoConnection connection) Line 756     &lt;br/&gt;
MongoDB.Driver.dll!MongoDB.Driver.MongoServerInstance.StateVerificationTimerCallback() Line 811             &lt;br/&gt;
MongoDB.Driver.dll!MongoDB.Driver.MongoServerInstance.Connect.AnonymousMethod__2(object o) Line 522       &lt;br/&gt;
mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx)          &lt;br/&gt;
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx)          &lt;br/&gt;
mscorlib.dll!System.Threading.TimerQueueTimer.CallCallback()             &lt;br/&gt;
mscorlib.dll!System.Threading.TimerQueueTimer.Fire()             &lt;br/&gt;
mscorlib.dll!System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()                &lt;br/&gt;
mscorlib.dll!System.Threading.ThreadPoolWorkQueue.Dispatch()        &lt;/p&gt;</comment>
                            <comment id="514067" author="abigate" created="Wed, 12 Mar 2014 10:42:43 +0000"  >&lt;p&gt;I&apos;ve now installed remote debugger 2013 in order to investigate further.&lt;/p&gt;

&lt;p&gt;I&apos;ve notice the following issue when apps is freezing and CPU peaking at 100%&lt;/p&gt;

&lt;p&gt;I&apos;ve multiple (1 up to 3) threads with a common stack trace reaching MongoDB.Bson.dll!MongoDB.Bson.IO.ByteBufferFactory.Create&lt;/p&gt;

&lt;p&gt;Releasing the apps and debugging few seconds later doesn&apos;t change a thing, the thread remains with same stack trace which can be found hereafter:&lt;/p&gt;

&lt;p&gt;MongoDB.Bson.dll!MongoDB.Bson.IO.ByteBufferFactory.Create&lt;br/&gt;
MongoDB.Bson.dll!MongoDB.Bson.IO.ByteBufferFactory.Create(MongoDB.Bson.IO.BsonChunkPool chunkPool, int fixedCapacity)&lt;br/&gt;
MongoDB.Bson.dll!MongoDB.Bson.IO.ByteBufferFactory.LoadFrom(System.IO.Stream stream)	 &lt;br/&gt;
MongoDB.Driver.dll!MongoDB.Driver.Internal.MongoConnection.ReceiveMessage&amp;lt;MongoDB.Driver.CommandResult&amp;gt;(MongoDB.Bson.IO.BsonBinaryReaderSettings readerSettings, MongoDB.Bson.Serialization.IBsonSerializer serializer, MongoDB.Bson.Serialization.IBsonSerializationOptions serializationOptions)&lt;br/&gt;
MongoDB.Driver.dll!MongoDB.Driver.Operations.CommandOperation&amp;lt;MongoDB.Driver.CommandResult&amp;gt;.Execute(MongoDB.Driver.Internal.MongoConnection connection)&lt;br/&gt;
MongoDB.Driver.dll!MongoDB.Driver.MongoServerInstance.RunCommandAs&amp;lt;MongoDB.Driver.CommandResult&amp;gt;(MongoDB.Driver.Internal.MongoConnection connection, string databaseName, MongoDB.Driver.IMongoCommand command)&lt;br/&gt;
MongoDB.Driver.dll!MongoDB.Driver.MongoServerInstance.Ping(MongoDB.Driver.Internal.MongoConnection connection)&lt;br/&gt;
MongoDB.Driver.dll!MongoDB.Driver.MongoServerInstance.StateVerificationTimerCallback()	 &lt;br/&gt;
MongoDB.Driver.dll!MongoDB.Driver.MongoServerInstance.Connect.AnonymousMethod__2(object o)	 &lt;br/&gt;
mscorlib.dll!System.Threading.ExecutionContext.RunInternal(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx)	 &lt;br/&gt;
mscorlib.dll!System.Threading.ExecutionContext.Run(System.Threading.ExecutionContext executionContext, System.Threading.ContextCallback callback, object state, bool preserveSyncCtx)	 &lt;br/&gt;
mscorlib.dll!System.Threading.TimerQueueTimer.CallCallback()	 &lt;br/&gt;
mscorlib.dll!System.Threading.TimerQueueTimer.Fire()	 &lt;br/&gt;
mscorlib.dll!System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()&lt;br/&gt;
mscorlib.dll!System.Threading.ThreadPoolWorkQueue.Dispatch()	 &lt;/p&gt;</comment>
                            <comment id="498375" author="abigate" created="Thu, 13 Feb 2014 08:40:35 +0000"  >&lt;p&gt;Debugging further, using procmon and then dumping the application I realized how the driver works( AcquireConnection), when freezing I&apos;ve obviously a dead lock with plenty of thread pending with WaitForSingleObject.&lt;/p&gt;

&lt;p&gt;I was wondering if we could change the drivers so the AcquireConnectionOptions are made public and can be set from the host application so I can play around and try different settings.&lt;br/&gt;
I&apos;m referring to MongoConnectionPool.cs:&lt;/p&gt;

&lt;p&gt;_defaultAcquireConnectionOptions = new AcquireConnectionOptions&lt;br/&gt;
            &lt;/p&gt;
{
                OkToAvoidWaitingByCreatingNewConnection = true,
                OkToExceedMaxConnectionPoolSize = false,
                OkToExceedWaitQueueSize = false,
                WaitQueueTimeout = _settings.WaitQueueTimeout
            }
&lt;p&gt;;&lt;/p&gt;
</comment>
                            <comment id="463255" author="abigate" created="Fri, 29 Nov 2013 07:10:33 +0000"  >&lt;p&gt;I&apos;ve finally added a logging before any GridFs upload in order to get a bit more information and cross-reference client side log with server log.&lt;/p&gt;

&lt;p&gt;I&apos;ve now added the following codeline:&lt;br/&gt;
WriteLog(col.Database.GetCurrentOp().ToString()); //write into a flat file&lt;br/&gt;
MongoGridFSFileInfo gridFsInfo = col.Database.GridFS.Upload(LocalFilename, this.Name + this.Ext);&lt;/p&gt;



&lt;p&gt;Last time the CPU freezed I get the following log result:&lt;/p&gt;

&lt;p&gt;File successfully uploaded:&lt;br/&gt;
28/11/13 16:46:37        { &quot;inprog&quot; : [{ &quot;opid&quot; : &quot;rs001:2633&quot;, &quot;active&quot; : false, &quot;op&quot; : &quot;none&quot;, &quot;ns&quot; : &quot;&quot;, &quot;query&quot; : { }, &quot;desc&quot; : &quot;repl writer worker 2&quot;, &quot;waitingForLock&quot; : false, &quot;numYields&quot; : 0, &quot;lockStats&quot; : { &quot;timeLockedMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(0), &quot;w&quot; : NumberLong(550) }
&lt;p&gt;, &quot;timeAcquiringMicros&quot; : { } } }, { &quot;opid&quot; : &quot;rs001:2631&quot;, &quot;active&quot; : false, &quot;op&quot; : &quot;none&quot;, &quot;ns&quot; : &quot;&quot;, &quot;query&quot; : { }, &quot;desc&quot; : &quot;repl writer worker 1&quot;, &quot;waitingForLock&quot; : false, &quot;numYields&quot; : 0, &quot;lockStats&quot; : { &quot;timeLockedMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(0), &quot;w&quot; : NumberLong(522) }
&lt;p&gt;, &quot;timeAcquiringMicros&quot; : { } } }, { &quot;opid&quot; : &quot;rs001:12208193&quot;, &quot;active&quot; : true, &quot;secs_running&quot; : 0, &quot;op&quot; : &quot;getmore&quot;, &quot;ns&quot; : &quot;local.oplog.rs&quot;, &quot;query&quot; : { &quot;ts&quot; : { &quot;$gte&quot; : &lt;/p&gt;
{ &quot;$timestamp&quot; : NumberLong(&quot;5951332716581486601&quot;) }
&lt;p&gt; } }, &quot;client_s&quot; : &quot;172.16.12.213:52732&quot;, &quot;desc&quot; : &quot;conn193287&quot;, &quot;connectionId&quot; : 193287, &quot;waitingForLock&quot; : false, &quot;numYields&quot; : 0, &quot;lockStats&quot; : { &quot;timeLockedMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(8), &quot;w&quot; : NumberLong(0) }
&lt;p&gt;, &quot;timeAcquiringMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(1), &quot;w&quot; : NumberLong(0) }
&lt;p&gt; } }, { &quot;opid&quot; : &quot;rs001:12208192&quot;, &quot;active&quot; : true, &quot;secs_running&quot; : 0, &quot;op&quot; : &quot;getmore&quot;, &quot;ns&quot; : &quot;local.oplog.rs&quot;, &quot;query&quot; : { &quot;ts&quot; : { &quot;$gte&quot; : &lt;/p&gt;
{ &quot;$timestamp&quot; : NumberLong(&quot;5951201419431247878&quot;) }
&lt;p&gt; } }, &quot;client_s&quot; : &quot;172.16.12.211:61086&quot;, &quot;desc&quot; : &quot;conn188986&quot;, &quot;connectionId&quot; : 188986, &quot;waitingForLock&quot; : false, &quot;numYields&quot; : 0, &quot;lockStats&quot; : { &quot;timeLockedMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(10), &quot;w&quot; : NumberLong(0) }
&lt;p&gt;, &quot;timeAcquiringMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(1), &quot;w&quot; : NumberLong(0) }
&lt;p&gt; } }, { &quot;opid&quot; : &quot;rs002:11497523&quot;, &quot;active&quot; : true, &quot;secs_running&quot; : 0, &quot;op&quot; : &quot;getmore&quot;, &quot;ns&quot; : &quot;local.oplog.rs&quot;, &quot;query&quot; : { &quot;ts&quot; : { &quot;$gte&quot; : &lt;/p&gt;
{ &quot;$timestamp&quot; : NumberLong(&quot;5951332858315407363&quot;) }
&lt;p&gt; } }, &quot;client_s&quot; : &quot;172.16.12.213:53145&quot;, &quot;desc&quot; : &quot;conn174791&quot;, &quot;connectionId&quot; : 174791, &quot;waitingForLock&quot; : false, &quot;numYields&quot; : 0, &quot;lockStats&quot; : { &quot;timeLockedMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(8), &quot;w&quot; : NumberLong(0) }
&lt;p&gt;, &quot;timeAcquiringMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(1), &quot;w&quot; : NumberLong(0) }
&lt;p&gt; } }, { &quot;opid&quot; : &quot;rs002:11497522&quot;, &quot;active&quot; : true, &quot;secs_running&quot; : 0, &quot;op&quot; : &quot;getmore&quot;, &quot;ns&quot; : &quot;local.oplog.rs&quot;, &quot;query&quot; : { &quot;ts&quot; : { &quot;$gte&quot; : &lt;/p&gt;
{ &quot;$timestamp&quot; : NumberLong(&quot;5951332858315407363&quot;) }
&lt;p&gt; } }, &quot;client_s&quot; : &quot;172.16.12.211:52278&quot;, &quot;desc&quot; : &quot;conn174424&quot;, &quot;connectionId&quot; : 174424, &quot;waitingForLock&quot; : false, &quot;numYields&quot; : 0, &quot;lockStats&quot; : { &quot;timeLockedMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(8), &quot;w&quot; : NumberLong(0) }
&lt;p&gt;, &quot;timeAcquiringMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(1), &quot;w&quot; : NumberLong(0) }
&lt;p&gt; } }, { &quot;opid&quot; : &quot;rs002:11497525&quot;, &quot;active&quot; : true, &quot;secs_running&quot; : 0, &quot;op&quot; : &quot;getmore&quot;, &quot;ns&quot; : &quot;local.oplog.rs&quot;, &quot;query&quot; : { &quot;ts&quot; : { &quot;$gte&quot; : &lt;/p&gt;
{ &quot;$timestamp&quot; : NumberLong(&quot;5951331969257177089&quot;) }
&lt;p&gt; } }, &quot;client_s&quot; : &quot;172.16.12.211:59754&quot;, &quot;desc&quot; : &quot;conn136&quot;, &quot;connectionId&quot; : 136, &quot;waitingForLock&quot; : false, &quot;numYields&quot; : 0, &quot;lockStats&quot; : { &quot;timeLockedMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(18), &quot;w&quot; : NumberLong(0) }
&lt;p&gt;, &quot;timeAcquiringMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(2), &quot;w&quot; : NumberLong(0) }
&lt;p&gt; } }, { &quot;opid&quot; : &quot;rs002:2924&quot;, &quot;active&quot; : false, &quot;op&quot; : &quot;none&quot;, &quot;ns&quot; : &quot;&quot;, &quot;query&quot; : { }, &quot;desc&quot; : &quot;repl writer worker 1&quot;, &quot;waitingForLock&quot; : false, &quot;numYields&quot; : 0, &quot;lockStats&quot; : { &quot;timeLockedMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(0), &quot;w&quot; : NumberLong(301) }
&lt;p&gt;, &quot;timeAcquiringMicros&quot; : { } } }, { &quot;opid&quot; : &quot;rs002:11497524&quot;, &quot;active&quot; : true, &quot;secs_running&quot; : 0, &quot;op&quot; : &quot;getmore&quot;, &quot;ns&quot; : &quot;local.oplog.rs&quot;, &quot;query&quot; : { &quot;ts&quot; : { &quot;$gte&quot; : &lt;/p&gt;
{ &quot;$timestamp&quot; : NumberLong(&quot;5951331969257177089&quot;) }
&lt;p&gt; } }, &quot;client_s&quot; : &quot;172.16.12.213:64220&quot;, &quot;desc&quot; : &quot;conn174&quot;, &quot;connectionId&quot; : 174, &quot;waitingForLock&quot; : false, &quot;numYields&quot; : 0, &quot;lockStats&quot; : { &quot;timeLockedMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(14), &quot;w&quot; : NumberLong(0) }
&lt;p&gt;, &quot;timeAcquiringMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(1), &quot;w&quot; : NumberLong(0) }
&lt;p&gt; } }, { &quot;opid&quot; : &quot;rs003:11207241&quot;, &quot;active&quot; : true, &quot;secs_running&quot; : 0, &quot;op&quot; : &quot;getmore&quot;, &quot;ns&quot; : &quot;local.oplog.rs&quot;, &quot;query&quot; : { &quot;ts&quot; : { &quot;$gte&quot; : &lt;/p&gt;
{ &quot;$timestamp&quot; : NumberLong(&quot;5897057270696509441&quot;) }
&lt;p&gt; } }, &quot;client_s&quot; : &quot;172.16.12.213:63993&quot;, &quot;desc&quot; : &quot;conn128&quot;, &quot;connectionId&quot; : 128, &quot;waitingForLock&quot; : false, &quot;numYields&quot; : 0, &quot;lockStats&quot; : { &quot;timeLockedMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(11), &quot;w&quot; : NumberLong(0) }
&lt;p&gt;, &quot;timeAcquiringMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(1), &quot;w&quot; : NumberLong(0) }
&lt;p&gt; } }, { &quot;opid&quot; : &quot;rs003:11207236&quot;, &quot;active&quot; : true, &quot;secs_running&quot; : 2, &quot;op&quot; : &quot;getmore&quot;, &quot;ns&quot; : &quot;local.oplog.rs&quot;, &quot;query&quot; : { &quot;ts&quot; : { &quot;$gte&quot; : &lt;/p&gt;
{ &quot;$timestamp&quot; : NumberLong(&quot;5897057270696509441&quot;) }
&lt;p&gt; } }, &quot;client_s&quot; : &quot;172.16.12.211:59753&quot;, &quot;desc&quot; : &quot;conn134&quot;, &quot;connectionId&quot; : 134, &quot;waitingForLock&quot; : false, &quot;numYields&quot; : 0, &quot;lockStats&quot; : { &quot;timeLockedMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(47), &quot;w&quot; : NumberLong(0) }
&lt;p&gt;, &quot;timeAcquiringMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(5), &quot;w&quot; : NumberLong(0) }
&lt;p&gt; } }] }&lt;/p&gt;


&lt;p&gt;File never uploaded ... application had freezed:&lt;br/&gt;
28/11/13 16:49:41        { &quot;inprog&quot; : [{ &quot;opid&quot; : &quot;rs001:2633&quot;, &quot;active&quot; : false, &quot;op&quot; : &quot;none&quot;, &quot;ns&quot; : &quot;&quot;, &quot;query&quot; : { }, &quot;desc&quot; : &quot;repl writer worker 2&quot;, &quot;waitingForLock&quot; : false, &quot;numYields&quot; : 0, &quot;lockStats&quot; : { &quot;timeLockedMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(0), &quot;w&quot; : NumberLong(550) }
&lt;p&gt;, &quot;timeAcquiringMicros&quot; : { } } }, { &quot;opid&quot; : &quot;rs001:2631&quot;, &quot;active&quot; : false, &quot;op&quot; : &quot;none&quot;, &quot;ns&quot; : &quot;&quot;, &quot;query&quot; : { }, &quot;desc&quot; : &quot;repl writer worker 1&quot;, &quot;waitingForLock&quot; : false, &quot;numYields&quot; : 0, &quot;lockStats&quot; : { &quot;timeLockedMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(0), &quot;w&quot; : NumberLong(522) }
&lt;p&gt;, &quot;timeAcquiringMicros&quot; : { } } }, { &quot;opid&quot; : &quot;rs001:12209002&quot;, &quot;active&quot; : true, &quot;secs_running&quot; : 3, &quot;op&quot; : &quot;getmore&quot;, &quot;ns&quot; : &quot;local.oplog.rs&quot;, &quot;query&quot; : { &quot;ts&quot; : { &quot;$gte&quot; : &lt;/p&gt;
{ &quot;$timestamp&quot; : NumberLong(&quot;5951332716581486601&quot;) }
&lt;p&gt; } }, &quot;client_s&quot; : &quot;172.16.12.213:52732&quot;, &quot;desc&quot; : &quot;conn193287&quot;, &quot;connectionId&quot; : 193287, &quot;waitingForLock&quot; : false, &quot;numYields&quot; : 0, &quot;lockStats&quot; : { &quot;timeLockedMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(57), &quot;w&quot; : NumberLong(0) }
&lt;p&gt;, &quot;timeAcquiringMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(25), &quot;w&quot; : NumberLong(0) }
&lt;p&gt; } }, { &quot;opid&quot; : &quot;rs001:12209001&quot;, &quot;active&quot; : true, &quot;secs_running&quot; : 3, &quot;op&quot; : &quot;getmore&quot;, &quot;ns&quot; : &quot;local.oplog.rs&quot;, &quot;query&quot; : { &quot;ts&quot; : { &quot;$gte&quot; : &lt;/p&gt;
{ &quot;$timestamp&quot; : NumberLong(&quot;5951201419431247878&quot;) }
&lt;p&gt; } }, &quot;client_s&quot; : &quot;172.16.12.211:61086&quot;, &quot;desc&quot; : &quot;conn188986&quot;, &quot;connectionId&quot; : 188986, &quot;waitingForLock&quot; : false, &quot;numYields&quot; : 0, &quot;lockStats&quot; : { &quot;timeLockedMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(54), &quot;w&quot; : NumberLong(0) }
&lt;p&gt;, &quot;timeAcquiringMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(6), &quot;w&quot; : NumberLong(0) }
&lt;p&gt; } }, { &quot;opid&quot; : &quot;rs002:11501031&quot;, &quot;active&quot; : true, &quot;secs_running&quot; : 1, &quot;op&quot; : &quot;getmore&quot;, &quot;ns&quot; : &quot;local.oplog.rs&quot;, &quot;query&quot; : { &quot;ts&quot; : { &quot;$gte&quot; : &lt;/p&gt;
{ &quot;$timestamp&quot; : NumberLong(&quot;5951336886994731014&quot;) }
&lt;p&gt; } }, &quot;client_s&quot; : &quot;172.16.12.213:54016&quot;, &quot;desc&quot; : &quot;conn175528&quot;, &quot;connectionId&quot; : 175528, &quot;waitingForLock&quot; : false, &quot;numYields&quot; : 0, &quot;lockStats&quot; : { &quot;timeLockedMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(28), &quot;w&quot; : NumberLong(0) }
&lt;p&gt;, &quot;timeAcquiringMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(4), &quot;w&quot; : NumberLong(0) }
&lt;p&gt; } }, { &quot;opid&quot; : &quot;rs002:11501028&quot;, &quot;active&quot; : true, &quot;secs_running&quot; : 2, &quot;op&quot; : &quot;getmore&quot;, &quot;ns&quot; : &quot;local.oplog.rs&quot;, &quot;query&quot; : { &quot;ts&quot; : { &quot;$gte&quot; : &lt;/p&gt;
{ &quot;$timestamp&quot; : NumberLong(&quot;5951332858315407363&quot;) }
&lt;p&gt; } }, &quot;client_s&quot; : &quot;172.16.12.211:52278&quot;, &quot;desc&quot; : &quot;conn174424&quot;, &quot;connectionId&quot; : 174424, &quot;waitingForLock&quot; : false, &quot;numYields&quot; : 0, &quot;lockStats&quot; : { &quot;timeLockedMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(46), &quot;w&quot; : NumberLong(0) }
&lt;p&gt;, &quot;timeAcquiringMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(7), &quot;w&quot; : NumberLong(0) }
&lt;p&gt; } }, { &quot;opid&quot; : &quot;rs002:2924&quot;, &quot;active&quot; : false, &quot;op&quot; : &quot;none&quot;, &quot;ns&quot; : &quot;&quot;, &quot;query&quot; : { }, &quot;desc&quot; : &quot;repl writer worker 1&quot;, &quot;waitingForLock&quot; : false, &quot;numYields&quot; : 0, &quot;lockStats&quot; : { &quot;timeLockedMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(0), &quot;w&quot; : NumberLong(301) }
&lt;p&gt;, &quot;timeAcquiringMicros&quot; : { } } }, { &quot;opid&quot; : &quot;rs003:11208053&quot;, &quot;active&quot; : true, &quot;secs_running&quot; : 3, &quot;op&quot; : &quot;getmore&quot;, &quot;ns&quot; : &quot;local.oplog.rs&quot;, &quot;query&quot; : { &quot;ts&quot; : { &quot;$gte&quot; : &lt;/p&gt;
{ &quot;$timestamp&quot; : NumberLong(&quot;5897057270696509441&quot;) }
&lt;p&gt; } }, &quot;client_s&quot; : &quot;172.16.12.213:63993&quot;, &quot;desc&quot; : &quot;conn128&quot;, &quot;connectionId&quot; : 128, &quot;waitingForLock&quot; : false, &quot;numYields&quot; : 0, &quot;lockStats&quot; : { &quot;timeLockedMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(65), &quot;w&quot; : NumberLong(0) }
&lt;p&gt;, &quot;timeAcquiringMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(9), &quot;w&quot; : NumberLong(0) }
&lt;p&gt; } }, { &quot;opid&quot; : &quot;rs003:11208060&quot;, &quot;active&quot; : true, &quot;secs_running&quot; : 0, &quot;op&quot; : &quot;getmore&quot;, &quot;ns&quot; : &quot;local.oplog.rs&quot;, &quot;query&quot; : { &quot;ts&quot; : { &quot;$gte&quot; : &lt;/p&gt;
{ &quot;$timestamp&quot; : NumberLong(&quot;5897057270696509441&quot;) }
&lt;p&gt; } }, &quot;client_s&quot; : &quot;172.16.12.211:59753&quot;, &quot;desc&quot; : &quot;conn134&quot;, &quot;connectionId&quot; : 134, &quot;waitingForLock&quot; : false, &quot;numYields&quot; : 0, &quot;lockStats&quot; : { &quot;timeLockedMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(11), &quot;w&quot; : NumberLong(0) }
&lt;p&gt;, &quot;timeAcquiringMicros&quot; : &lt;/p&gt;
{ &quot;r&quot; : NumberLong(1), &quot;w&quot; : NumberLong(0) }
&lt;p&gt; } }] }&lt;/p&gt;</comment>
                            <comment id="457562" author="abigate" created="Sun, 17 Nov 2013 21:30:38 +0000"  >&lt;p&gt;C# Driver version upgraded to 1.8.3 and server upgraded to 2.4.7&lt;/p&gt;

&lt;p&gt;The problem still occurred randomly, in such case the execution never pass the following code &quot;col.Database.GridFS.Upload(LocalFilename, this.Name + this.Ext);&quot;&lt;/p&gt;</comment>
                            <comment id="435637" author="abigate" created="Fri, 4 Oct 2013 07:27:58 +0000"  >&lt;p&gt;Hello, I&apos;ve recently been able to catch the following exception (not leading immediately to high CPU usage) which might be associated to my problem. It directly refer to my &quot;Save&quot; method&lt;/p&gt;


&lt;p&gt;Message = &quot;Unable to read data from the transport connection: 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.&quot;&lt;/p&gt;


&lt;p&gt;   at System.Net.Sockets.NetworkStream.Read(Byte[] buffer, Int32 offset, Int32 size)&lt;br/&gt;
   at MongoDB.Bson.IO.ByteBufferFactory.LoadFrom(Stream stream)&lt;br/&gt;
   at MongoDB.Driver.Internal.MongoConnection.ReceiveMessage&lt;span class=&quot;error&quot;&gt;&amp;#91;TDocument&amp;#93;&lt;/span&gt;(BsonBinaryReaderSettings readerSettings, IBsonSerializer serializer, IBsonSerializationOptions serializationOptions)&lt;br/&gt;
   at MongoDB.Driver.Operations.WriteOperation.SendMessageWithWriteConcern(MongoConnection connection, BsonBuffer buffer, Int32 requestId, BsonBinaryReaderSettings readerSettings, BsonBinaryWriterSettings writerSettings, WriteConcern writeConcern)&lt;br/&gt;
   at MongoDB.Driver.Operations.InsertOperation.Execute(MongoConnection connection)&lt;br/&gt;
   at MongoDB.Driver.MongoCollection.InsertBatch(Type nominalType, IEnumerable documents, MongoInsertOptions options)&lt;br/&gt;
   at MongoDB.Driver.MongoCollection.Insert(Type nominalType, Object document, MongoInsertOptions options)&lt;br/&gt;
   at MongoDB.Driver.MongoCollection.Insert(Type nominalType, Object document, WriteConcern writeConcern)&lt;br/&gt;
   at MongoDB.Driver.MongoCollection.Insert&lt;span class=&quot;error&quot;&gt;&amp;#91;TNominalType&amp;#93;&lt;/span&gt;(TNominalType document, WriteConcern writeConcern)&lt;br/&gt;
   at MongoDB.Driver.MongoCollection`1.Insert(TDefaultDocument document, WriteConcern writeConcern)&lt;br/&gt;
   at MongoDB.Driver.GridFS.MongoGridFS.Upload(Stream stream, String remoteFileName, MongoGridFSCreateOptions createOptions)&lt;br/&gt;
   at MongoDB.Driver.GridFS.MongoGridFS.Upload(Stream stream, String remoteFileName)&lt;br/&gt;
   at MongoDB.Driver.GridFS.MongoGridFS.Upload(String localFileName, String remoteFileName)&lt;br/&gt;
   at &quot;xxx.xxxx.xxxx.xxxx.Save(MongoCollection col, Boolean replace)&lt;/p&gt;</comment>
                            <comment id="422499" author="abigate" created="Wed, 11 Sep 2013 09:06:12 +0000"  >&lt;p&gt;Good morning Craig,&lt;/p&gt;

&lt;p&gt;We only moved the target Framework of our project from 3.5 to 4.5 without upgrading the driver.&lt;br/&gt;
The app support extended logging to a log file (which thread is handling what and when with all reflection steps).&lt;br/&gt;
The freezing occurred from an identified method Save from class ArchivedFile and always into this method but randomly.&lt;/p&gt;

&lt;p&gt;We have from 1 up to 3 freezing per day, they occured at any time whatever the stream of file is loaded or not.&lt;/p&gt;

&lt;p&gt;This method is only called after empty result from query checking md5 value.&lt;/p&gt;



&lt;p&gt;The way we use MongoDB might be important and it is why I added the code.&lt;br/&gt;
We enforce a same ObjectId value between our main collection and the fs.files collection.&lt;/p&gt;
</comment>
                            <comment id="422099" author="craiggwilson" created="Tue, 10 Sep 2013 19:48:06 +0000"  >&lt;p&gt;I assume you are using version 1.8.2 as that is the affects version.  What framework were you on before upgrading to .NET 4.5?  Did you upgrade your driver version when you upgraded to .NET 4.5 and, if so, what did you upgrade from?&lt;/p&gt;

&lt;p&gt;If the app is freezing without an exception or stacktrace, how do you know where the app is freezing?  Could you pinpoint the line so we can attempt to reproduce?  Is there anyway you could create a small little sample app that has this problem.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="91354">CSHARP-829</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|hrfdl3:</customfieldvalue>

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