Details
-
Bug
-
Resolution: Gone away
-
Critical - P2
-
None
-
None
-
None
-
None
Description
mongo-driver version: go.mongodb.org/mongo-driver v1.5.0
mongo server: sharded clusters with 2 shard, version: 4.2, WiredTiger engine
I use InsertMany API to insert 100000 documents (all documents will be hashed to the same shard), when context deadline exceed, it returned error, and part of the documents was inserted.
I expect that the InsertMany API is an atomic operation, but it is not.