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

applyOps must ensure correct db for UUID

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.6.0-rc1
    • Storage
    • None
    • Fully Compatible
    • ALL
    • Hide

      db.runCommand({ applyOps: (uuid => ["test", "test2"].map(db => { return { op: "c", ns: db + ".$cmd", ui: uuid, o: {create: "foo"}}}))(UUID()) })
      

      Show
      db.runCommand({ applyOps: (uuid => ["test", "test2"].map(db => { return { op: "c", ns: db + ".$cmd", ui: uuid, o: {create: "foo"}}}))(UUID()) })
    • Storage 2017-10-23, Storage 2017-11-13

    Description

      Running the applyOps command with a known UUID but wrong database for that UUID can crash the server.

      Attachments

        Activity

          People

            geert.bosch@mongodb.com Geert Bosch
            geert.bosch@mongodb.com Geert Bosch
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: