shell API does not validate write concern for empty batches

XMLWordPrintableJSON

    • 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}})
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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:
              DO NOT USE - Backlog - Platform Team
              Reporter:
              Andreas Nilsson (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: