Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-2235

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Gone away
    • Icon: Critical - P2 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.

       

       

      Attachments

        Activity

          People

            benji.rewis@mongodb.com Benji Rewis (Inactive)
            liuwenzhe_neoye@163.com Liu Wenzhe
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: