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

Add test to ensure createIndexes prioritizes collectionUUID check

    • Storage Execution
    • Fully Compatible
    • ALL
    • v8.0, v7.0, v6.0
    • Hide

      See above.

      Show
      See above.
    • Execution Team 2024-08-05, Execution Team 2024-08-19
    • 200

      db.apple.insert({});
      db.createView("toApple", "apple", []);
      db.runCommand({createIndexes:"toApple", collectionUUID: new UUID(), indexes:[{name:"_id_hashed", key:{_id:"hashed"}}]});
      

      This will return a CommandNotSupportedOnView error, not CollectionUUIDMismatch.

      Mongosync depends on CollectionUUIDMismatch for handling certain rename cases, so we need the collectionUUID check prioritized over the is-view check.

            Assignee:
            daisy.kucharski@mongodb.com Daisy Kucharski
            Reporter:
            felipe.gasper@mongodb.com Felipe Gasper
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: