Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-93558

Combining different types of operation into a single Bulkwoperation should throw error

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Trivial - P5 Trivial - P5
    • None
    • Affects Version/s: 6.3.2
    • Component/s: None
    • None
    • Server Triage
    • ALL

      Actual Behaviour

      Recently, I combined different types of operations, such as updateMany and deleteMany, into a single operation in the `bulkWrite` command, hoping it would work as I didn't find any warnings/tips in the [documentation|https://www.mongodb.com/docs/manual/reference/method/db.collection.bulkWrite/.]

       

      When I ran it via a MongoShell script, it ran successfully without any error. But after an hour, I realised that all the operation counts in the result were zero.

       

      When I consulted the MongoDB AI, it also clarified that it's not allowed.

      Expected Behaviour

       

      The `bulkWrite` operation should fail and throw some error.

       

            Assignee:
            backlog-server-triage [HELP ONLY] Backlog - Triage Team
            Reporter:
            shashank@letscooee.com Shashank Agrawal
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: