insertMany api successfully inserted part of the documents, when the context deadline exceeds

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Gone away
    • Priority: Critical - P2
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

       

       

            Assignee:
            Benji Rewis (Inactive)
            Reporter:
            Liu Wenzhe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: