Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Regression: Bulk execution with failure throws DuplicateKey instead of BulkWriteException #328
Seems like a regression of #135
I'm doing this:
As in that issue, when I run this test against mongo, I hit the
However, when I run against Fongo, I see a different exception entirely:
The stack isn't identical to #135 but I'm chalking that up to different versions of mongo. It looks like the same error to me.
I'm using Fongo 2.1.0, mongo-java-driver 3.4.2, and morphia 0.108.
The fix for #135 only fixed it in the case of collection.bulkWrite. If I execute() via the BulkWriteOperation class it fails.
See a failing test I created from your added test in fea1abc