[CSHARP-25] Getting an error "bad recv() len: 53888928" when trying to bulk insert around 300,000 items Created: 10/Mar/10  Updated: 12/Mar/10  Resolved: 12/Mar/10

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

Type: Bug Priority: Major - P3
Reporter: Shachar Bar Assignee: Sam Corder
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

single threaded approach with one open connection (intel core2duo , 2.66GHz , 3.25GB Ram, win xp sp2, standard single HD)



 Description   

I am Getting an error "bad recv() len: 53888928" when trying to bulk insert around 300,000 items. I am using the github c# driver (latest version). I suspected it to be a 32bit issue but the error msg is not pointing to this direction.

this is the server startup msg:
Wed Mar 10 22:36:19 Mongo DB : starting : pid = 0 port = 27017 dbpath = D:\work\
NoSQL\MongoDB\data\db master = 0 slave = 0 32-bit

    • NOTE: when using MongoDB 32 bit, you are limited to about 2 gigabytes of data

Wed Mar 10 22:36:19 db version v1.2.4, pdfile version 4.5
Wed Mar 10 22:36:19 git version: 5cf582d3d96b882c400c33e7670b811ccd47f477
Wed Mar 10 22:36:19 sys info: windows (5, 1, 2600, 2, 'Service Pack 3') BOOST_LI
B_VERSION=1_35
Wed Mar 10 22:36:19 waiting for connections on port 27017

this is the error:
Wed Mar 10 21:37:34 bad recv() len: 53888928
Wed Mar 10 21:37:34 end connection 127.0.0.1:2795



 Comments   
Comment by Sam Corder [ 12/Mar/10 ]

Commited fix to the pool branch. It will be in the next release coming shortly.

Comment by Eliot Horowitz (Inactive) [ 10/Mar/10 ]

messages can't be more than 4MB (plus a little wiggle room for header)
when doing bulk inserts, need to do in batches of 4mb

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