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

applyOps should work with a createIndexes command without a UUID

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.6.9, 4.0.3, 4.1.4
    • Index Maintenance
    • None
    • Fully Compatible
    • ALL
    • v4.0, v3.6
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: