[CSHARP-678] An existing connection was forcibly closed by the remote host Created: 11/Feb/13  Updated: 16/Nov/21  Resolved: 21/Mar/13

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: 1.7
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: David Verdejo Assignee: Unassigned
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Client: Webservice in Net Framework 4.0 over Windows 2003 Enterprixe SP2 x64. Driver 1.7
Server: Mongo 2.2.3 over Windows 2012 Datacenter x64


Issue Links:
Related
related to CSHARP-654 Client does not recover automatically... Closed

 Description   

We receive a burst of message on driver with the following message (we reviewed the network connection between server and client and it works fine):

Event Type: Error
Event Source: FligBookingEngine
Event Category: None
Event ID: 0
Date: 11/02/2013
Time: 9:17:46
User: N/A
Computer: LOG-20
Description:
2013-02-11 08:17:46.6180|"Critical"|"STATISTICS"|"Exception in Statistics MongoDB provider SaveToDatabase. LoB: 'Flights'; App: 'BookingEngine'; Collection: 'Statistics_FlightsBookingEngine'; Statement: 'sqlCommand'.Unable to connect to a member of the replica set matching the read preference Primary: Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host... at MongoDB.Driver.Internal.MultipleInstanceMongoServerProxy.ThrowConnectionException(ReadPreference readPreference) at MongoDB.Driver.Internal.MultipleInstanceMongoServerProxy.Connect(TimeSpan timeout, ReadPreference readPreference) at MongoDB.Driver.Internal.MultipleInstanceMongoServerProxy.ChooseServerInstance(ReadPreference readPreference) at MongoDB.Driver.MongoServer.AcquireConnection(MongoDatabase database, ReadPreference readPreference) at MongoDB.Driver.MongoCollection.InsertBatch(Type nominalType, IEnumerable documents, MongoInsertOptions options) at MongoDB.Driver.MongoCollection.Insert(Type nominalType, Object document, MongoInsertOptions options) at Toolfactory.Database.MongoDB.DB.Insert[T](String connectionString, String database, String collectionName, T item) at Toolfactory.Audit.Statistics.MongoDBProvider`1.saveToDatabase(String collectionName, TStatistics statisticsData)"|"00000000-0000-0000-0000-000000000000"|"[NO FLOW]"|"[NO PROCESS POINT]"||

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.



 Comments   
Comment by Craig Wilson [ 21/Mar/13 ]

This appears to be a normal networking error. It could have been caused by CSHARP-654 which has now been fixed.

Generated at Wed Feb 07 21:37:31 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.