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

applyOps should work with a createIndexes command without a UUID

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6.9, 4.0.3, 4.1.4
    • Component/s: Indexing
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.0, v3.6
    • Sprint:
      Storage NYC 2018-09-24

      Description

      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" : ...
      }
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: