[SERVER-13971] Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host. Created: 16/May/14  Updated: 10/Dec/14  Resolved: 16/May/14

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Pankaj Jain Assignee: Unassigned
Resolution: Done Votes: 0
Labels: crash
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

C#, .NET 4.5.


Attachments: File IS_Batches.json     File mongod.2014-05-13T17-22-33.mdmp     File mongod.2014-05-16T16-55-51.mdmp    
Operating System: Windows
Participants:

 Description   

I am having a document containing 13+ array of embedded documents. while updating the document in the array using "Update.Set("Tasks.$.TaskMangerPID", aTaskManagerPID);" make crash MongoDB 2.6.0. and giving error "Unable to read data from the transport connection: An existing connection was forcibly closed by the remote host."
MongoDB shell creates the dump file( 2 of them) which I am uploading and I am also uploading the document on which I was updating.

I am able get the crash all the time when I run the my own binary from command from. But from debugging from MS-Visual Studio 2012. I am able to run single set command. but crash all the time is I use two set command "var mUpdate = Update.Set("Tasks.$.TaskMangerPID", aTaskManagerPID).Set("Tasks.$.PID", aTaskPID); "

Advice, how to resolve this issue?



 Comments   
Comment by Pankaj Jain [ 16/May/14 ]

Craig,

All the issue said in my post have been fixed using MongoDB 2.6.1 and
taking new MongoDB C# driver.

Thanks you very much.

-Pankaj

Comment by Pankaj Jain [ 16/May/14 ]

Thanks Craig,

I would test it with 2.6.1 to let you know.

Thanks.
Pankaj

Comment by Craig Wilson [ 16/May/14 ]

Thanks Pankaj,
If this is the case, that mongod is crashing even when run from the shell, then this isn't a CSHARP driver ticket. I'll be moving it to the SERVER project and someone will work with you there. It's possible this has already been reported and may be a duplicate. A possible candidates is SERVER-13516. As this was fixed in server version 2.6.1, which is available now, would you mind pulling down the 2.6.1 binaries and testing with those? They can be downloaded from here: http://www.mongodb.org/downloads.

Craig

Comment by Pankaj Jain [ 16/May/14 ]

Hi Craig,

1. Yes, Mongod.exe also crash.
2. Yes. If I run double set command from shell also. But single update succeed. I felt that crash is related to size of the document. I was able to make this command successfully with 2 array elements from shell.
3. I am using .net framework 4.5.
Thanks,
Pankaj

Sent from my iPhone

Comment by Craig Wilson [ 16/May/14 ]

Hi Jain,
Sorry you are experiencing these issues. If you wouldn't mind, could you clarify a couple of things.

1) Are you saying the mongod binaries crash? As in, the mongodb server is no longer running after you run this command?
2) Does this happen when you run these updates from the shell as well?
3) What version of the .NET driver are you using?

Craig

Generated at Thu Feb 08 03:33:27 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.