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

shell API does not validate write concern for empty batches

    • ALL
    • Hide
      // The following should return an invalid write concern error
      var bulkOp = db.coll.initializeOrderedBulkOp();
      bulkOp.execute({w:{a:1}})
      
      Show
      // The following should return an invalid write concern error var bulkOp = db.coll.initializeOrderedBulkOp(); bulkOp.execute({w:{a:1}})

      If you create a bulk operation with an empty batch and execute it, the API returns a valid BulkWriteResult but there is no validation of the argument to execute.

      We should be consistent with parameter validation regardless of backend execution.

            Assignee:
            backlog-server-platform DO NOT USE - Backlog - Platform Team
            Reporter:
            andreas.nilsson Andreas Nilsson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: