-
Type: Task
-
Resolution: Done
-
Priority: 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?