Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-878

db.collection.find(.......) returns BSONObj size ...... error

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Gone away
    • Affects Version/s: None
    • Fix Version/s: 12_01_17
    • Component/s: BSON, Public API
    • Labels:
      None
    • Environment:
      ubuntu linux image

      Description

      Attempting to query a single collection for rows with 1 field matching. The field to be matched on is a BSON::ObjectId

      Here is the code snippet:

      ./mongodataremove.rb -c Config.cfg
      Log File created for this test run is: mongodatadelete.log
      51aca5a06dedda916400002b
      /var/lib/gems/2.1.0/gems/mongo-1.12.0/lib/mongo/cursor.rb:160:in `next': BSONObj size: 1997030986 (0x7708464A) is invalid. Size must be between 0 and 16793600(16MB) First element: thingsF2014-01-28T15:21:43+00:0S?%????: ?type=105 (Mongo::OperationFailure)
      from /var/lib/gems/2.1.0/gems/mongo-1.12.0/lib/mongo/cursor.rb:342:in `each'
      from /home/admin/jhb/ProcessMongoRemoveData.rb:104:in `getUsers'
      from ./mongodataremove.rb:316:in `block in <main>'
      from ./mongodataremove.rb:312:in `each'
      from ./mongodataremove.rb:312:in `<main>'

      When I run the query from the Mongo client I receive no errors

        Attachments

          Activity

            People

            Assignee:
            emily.stolfo Emily Stolfo
            Reporter:
            jeff.brown@validic.com Jeff Brown
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: