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

Operation failures unrelated to a write error are not raised by a BulkWrite operation

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1.0
    • Affects Version/s: None
    • Component/s: None
    • None

      client = Mongo::Client.new(["localhost:27017"], write: { w: 10 } )
      client[:test].insert_many([{x: 1}, {y: 2}])
      => #<Mongo::BulkWrite::Result:0x007fc2cb984a00
       @results={"n_inserted"=>0, "inserted_ids"=>[<BSON::ObjectId:...>, <BSON::ObjectId:...6>]}>
      

      should raise an error.

      This bug is only present in 2.1.0.beta

            Assignee:
            emily.stolfo Emily Stolfo
            Reporter:
            emily.stolfo Emily Stolfo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: