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

applyOps should work with a createIndexes command without a UUID

    • Fully Compatible
    • ALL
    • v4.0, v3.6
    • Storage NYC 2018-09-24

      applyOps should work with a createIndexes command without a UUID. It currently fails:

      > db.adminCommand({applyOps: [{op:"c", ns: "test.$cmd", o: {createIndexes: "test", key: {a:1}, name: "a_1"}}]})
      {
      	"applied" : 1,
      	"code" : 207,
      	"codeName" : "InvalidUUID",
      	"errmsg" : "uuid must be a 16-byte binary field with UUID (4) subtype",
      	"results" : [
      		false
      	],
      	"ok" : 0,
      	"operationTime" : Timestamp(1535666215, 1),
      	"$clusterTime" : ...
      }
      

            Assignee:
            dianna.hohensee@mongodb.com Dianna Hohensee (Inactive)
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: