Add test to ensure createIndexes prioritizes collectionUUID check

XMLWordPrintableJSON

    • 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
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Felipe Gasper
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: