Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2146

Don't get exceptions from driver when Write concern not met.

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.2.0
    • Component/s: None
    • Labels:
      None

      Writing to a 3.2 Database - either a replica set or a sharded cluster.

      Where the write concern cannot be satisfied - for example 1 + Arbiter all that is remaining in 2 + A cluster and a write concern of 2 I get no exceptions thrown when calling MongoCollection.bulkWrite().

      If I have a hard error - such as no primary I get an exception - but anywhere I would expect that the BulkWriteException.WriteConcernError is populated - no exception is thrown.

      Also - when submitting a batch and where I have continueOnError enabled, and unordered operations - I would expect an exception to be thrown but to be able to see the failure reason for each operations - similar to this [ https://docs.mongodb.org/manual/reference/method/BulkWriteResult/ ] , how do I get similar functionality through he Java driver?

            Assignee:
            Unassigned Unassigned
            Reporter:
            john.page@mongodb.com John Page
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: