Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-331

System.IO.IOException: Unable to read data from the transport connection

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.3
    • Affects Version/s: 1.2
    • Component/s: None
    • Environment:
      Mongod 2.0 on windows 2008 (single node). C#.NET 3.5 driver 1.1/1.2 on windows 2008 service
    • Major Change

      We multiple web crawlers, dumping data into single node of mongod running on windows 2008. All crawlers are .net 3.5 on windows 2008 machines as well. I routinely get this error:

      System.IO.IOException: 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.

      Initially when the db size was smaller, it happened less frequently, but now was the size of the db grows (currently only at ~13gb), it is happening at a rate of once every 3-4 seconds and it slows everything down. This happens even if I turn off ALL crawlers, and only leave 1 instance running.

      I should note that the crawler is multithreaded. The thread pool on the crawler is usually kept between 32-64 and alot of data are flushed into mongod in batches of 200-500 items at a time, every 10-30 seconds (depending on collections).

      Attached are the full mongod log file, along with 1 of the service error logs (so you can see the full errors). I've also attached the mongo connection wrapper that we are using and a few cs file of interest so you can see how data are dumped into mongo.

      We also notice when used with driver v1.1, the error is a little less frequent than in v1.2. For the driver, we are setting the time out at 10s for requests.

        1. App.config
          10 kB
        2. CONST.cs
          4 kB
        3. CrawlRequestDB.cs
          14 kB
        4. Debug & Error Driver v1.2.zip
          10 kB
        5. Error.zip
          1.11 MB
        6. FlushableStore.cs
          4 kB
        7. mongo.zip
          2.44 MB
        8. MongoAccess.cs
          18 kB

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            huyn@docstoc.com Huy Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: